Created
September 17, 2018 03:26
-
-
Save solvingj/3b2dbc8436cbf5fd42f8c8df08b75382 to your computer and use it in GitHub Desktop.
derived class
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
from conans import python_requires | |
base = python_requires("boost_base/1.67.0@bincrafters/testing") | |
class BoostLocaleConan(base.BoostBaseConan): | |
name = "boost_locale" | |
url = "https://github.com/bincrafters/conan-boost_locale" | |
lib_short_names = ["locale"] | |
options = {"shared": [True, False], "use_icu": [True, False]} | |
default_options = "shared=False", "use_icu=False" | |
b2_options = { | |
"boost.locale.iconv" : "off", | |
"boost.locale.icu" : "on", | |
} | |
source_only_deps = [ | |
"chrono", | |
"date_time", | |
"numeric_conversion", | |
"ratio", | |
"thread", | |
"unordered" | |
] | |
requires = ( | |
"boost_assert/1.67.0@bincrafters/testing", | |
"boost_config/1.67.0@bincrafters/testing", | |
"boost_function/1.67.0@bincrafters/testing", | |
"boost_iterator/1.67.0@bincrafters/testing", | |
"boost_smart_ptr/1.67.0@bincrafters/testing", | |
"boost_static_assert/1.67.0@bincrafters/testing", | |
"boost_system/1.67.0@bincrafters/testing", | |
"boost_type_traits/1.67.0@bincrafters/testing" | |
) | |
def requirements(self): | |
if self.options.use_icu: | |
self.requires("icu/59.1@bincrafters/stable") | |
def package_info_additional(self): | |
if self.options.use_icu: | |
self.cpp_info.defines.append("BOOST_LOCALE_WITH_ICU=1") | |
elif self.settings.os == "Macos": | |
self.cpp_info.libs.append("iconv") | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment