Skip to content

Commit

Permalink
Release 1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
martinmoene committed Apr 25, 2019
1 parent 94e2844 commit d407405
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 13 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ cmake_minimum_required( VERSION 3.5 FATAL_ERROR )

project(
variant_lite
VERSION 1.1.0
VERSION 1.2.0
# DESCRIPTION "A C++17-like variant, a type-safe union for C++98, C++11 and later in a single-file header-only library"
# HOMEPAGE_URL "https://github.com/martinmoene/variant-lite"
LANGUAGES CXX )
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# variant lite: A single-file header-only version of a C++17-like variant, a type-safe union for C++98, C++11 and later

[![Language](https://img.shields.io/badge/C%2B%2B-98/11/14/17-blue.svg)](https://en.wikipedia.org/wiki/C%2B%2B#Standardization) [![License](https://img.shields.io/badge/license-BSL-blue.svg)](https://opensource.org/licenses/BSL-1.0) [![Build Status](https://travis-ci.org/martinmoene/variant-lite.svg?branch=master)](https://travis-ci.org/martinmoene/variant-lite) [![Build status](https://ci.appveyor.com/api/projects/status/w2dgn3fxyrd6vcq8?svg=true)](https://ci.appveyor.com/project/martinmoene/variant-lite) [![Version](https://badge.fury.io/gh/martinmoene%2Fvariant-lite.svg)](https://github.com/martinmoene/variant-lite/releases) [![Latest download](https://img.shields.io/badge/latest-download-blue.svg)](https://raw.githubusercontent.com/martinmoene/variant-lite/master/include/nonstd/variant.hpp) [![Conan](https://img.shields.io/badge/on-conan-blue.svg)](https://bintray.com/martinmoene/nonstd-lite/variant-lite%3Anonstd-lite/_latestVersion) [![Try it online](https://img.shields.io/badge/on-wandbox-blue.svg)](https://wandbox.org/permlink/TDg24BSSfesvjX3o)
[![Language](https://img.shields.io/badge/C%2B%2B-98/11/14/17-blue.svg)](https://en.wikipedia.org/wiki/C%2B%2B#Standardization) [![License](https://img.shields.io/badge/license-BSL-blue.svg)](https://opensource.org/licenses/BSL-1.0) [![Build Status](https://travis-ci.org/martinmoene/variant-lite.svg?branch=master)](https://travis-ci.org/martinmoene/variant-lite) [![Build status](https://ci.appveyor.com/api/projects/status/w2dgn3fxyrd6vcq8?svg=true)](https://ci.appveyor.com/project/martinmoene/variant-lite) [![Version](https://badge.fury.io/gh/martinmoene%2Fvariant-lite.svg)](https://github.com/martinmoene/variant-lite/releases) [![Latest download](https://img.shields.io/badge/latest-download-blue.svg)](https://raw.githubusercontent.com/martinmoene/variant-lite/master/include/nonstd/variant.hpp) [![Conan](https://img.shields.io/badge/on-conan-blue.svg)](https://bintray.com/martinmoene/nonstd-lite/variant-lite%3Anonstd-lite/_latestVersion) [![Try it online](https://img.shields.io/badge/on-wandbox-blue.svg)](https://wandbox.org/permlink/OyNSGFat1cRbEYxW)

**Contents**
- [Example usage](#example-usage)
Expand Down
14 changes: 9 additions & 5 deletions conanfile.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
from conans import ConanFile
from conans import ConanFile, CMake

class VariantLiteConan(ConanFile):
version = "1.1.0"
version = "1.2.0"
name = "variant-lite"
description = "A single-file header-only version of a C++17-like variant, a type-safe union for C++98, C++11 and later"
license = "Boost Software License - Version 1.0. http://www.boost.org/LICENSE_1_0.txt"
url = "https://github.com/martinmoene/variant-lite.git"
exports_sources = "include/nonstd/*", "LICENSE.txt"
exports_sources = "include/nonstd/*", "CMakeLists.txt", "cmake/*", "LICENSE.txt"
build_policy = "missing"
author = "Martin Moene"

Expand All @@ -15,8 +15,12 @@ def build(self):
pass

def package(self):
"""Provide pkg/include/nonstd/*.hpp"""
self.copy("*.hpp")
"""Run CMake install"""
cmake = CMake(self)
cmake.definitions["VARIANT_LITE__OPT_BUILD_TESTS"] = "OFF"
cmake.definitions["VARIANT_LITE__OPT_BUILD_EXAMPLES"] = "OFF"
cmake.configure()
cmake.install()

def package_info(self):
self.info.header_only()
2 changes: 1 addition & 1 deletion include/nonstd/variant.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#define NONSTD_VARIANT_LITE_HPP

#define variant_lite_MAJOR 1
#define variant_lite_MINOR 1
#define variant_lite_MINOR 2
#define variant_lite_PATCH 0

#define variant_lite_VERSION variant_STRINGIFY(variant_lite_MAJOR) "." variant_STRINGIFY(variant_lite_MINOR) "." variant_STRINGIFY(variant_lite_PATCH)
Expand Down
1 change: 1 addition & 0 deletions project/CodeBlocks/variant-lite.cbp
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
<Unit filename="../../LICENSE.txt" />
<Unit filename="../../README.md" />
<Unit filename="../../appveyor.yml" />
<Unit filename="../../cmake/variant-lite-config-version.cmake.in" />
<Unit filename="../../cmake/variant-lite-config.cmake.in" />
<Unit filename="../../conanfile.py" />
<Unit filename="../../example/01-basic.cpp" />
Expand Down
2 changes: 1 addition & 1 deletion template/variant.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#define NONSTD_VARIANT_LITE_HPP

#define variant_lite_MAJOR 1
#define variant_lite_MINOR 1
#define variant_lite_MINOR 2
#define variant_lite_PATCH 0

#define variant_lite_VERSION variant_STRINGIFY(variant_lite_MAJOR) "." variant_STRINGIFY(variant_lite_MINOR) "." variant_STRINGIFY(variant_lite_PATCH)
Expand Down
4 changes: 2 additions & 2 deletions test/t.bat
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ echo VC%version%: %args%
set UCAP=%unit%
call :toupper UCAP

set unit_select=-D%unit%_CONFIG_SELECT_%UCAP%=%unit%_%UCAP%_DEFAULT
::set unit_select=-D%unit%_CONFIG_SELECT_%UCAP%=%unit%_%UCAP%_NONSTD
::set unit_select=-D%unit%_CONFIG_SELECT_%UCAP%=%unit%_%UCAP%_DEFAULT
set unit_select=-D%unit%_CONFIG_SELECT_%UCAP%=%unit%_%UCAP%_NONSTD
::set unit_select=-D%unit%_CONFIG_SELECT_%UCAP%=%unit%_%UCAP%_STD

set unit_config=
Expand Down
4 changes: 2 additions & 2 deletions test/tg.bat
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ echo %gpp% %version%: %std% %args%
set UCAP=%unit%
call :toupper UCAP

set unit_select=-D%unit%_CONFIG_SELECT_%UCAP%=%unit%_%UCAP%_DEFAULT
::set unit_select=-D%unit%_CONFIG_SELECT_%UCAP%=%unit%_%UCAP%_NONSTD
::set unit_select=-D%unit%_CONFIG_SELECT_%UCAP%=%unit%_%UCAP%_DEFAULT
set unit_select=-D%unit%_CONFIG_SELECT_%UCAP%=%unit%_%UCAP%_NONSTD
::set unit_select=-D%unit%_CONFIG_SELECT_%UCAP%=%unit%_%UCAP%_STD

set unit_config=
Expand Down

0 comments on commit d407405

Please sign in to comment.