From bfd0359354a89c7a7af49b5abdb417c7c37bfebd Mon Sep 17 00:00:00 2001 From: Eyck Jentzsch Date: Sat, 28 Oct 2017 17:26:01 +0200 Subject: [PATCH] Updated README.md --- README.md | 57 ++++++++++++++++++++++++++++++++++++++++++- Seasocks/build.py | 10 ++++++++ Seasocks/conanfile.py | 2 +- 3 files changed, 67 insertions(+), 2 deletions(-) create mode 100644 Seasocks/build.py diff --git a/README.md b/README.md index 1d4a84d..9d16ea8 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,57 @@ # conan-recipes -A bunch of conan recipes to package C++ libraries + +A bunch of conan recipes to package C++ libraries. The packages of those recipes can be found at https://bintray.com/minres/conan-repo + + +# How to build the packages on your own + +Install https://github.com/conan-io/conan-package-tools to build all needed combinations + +## Seasocks + +to build all variations run + +``` +cd Seasocks +CONAN_USER= CONAN_CHANNEL= python build.py +``` + +to build a specific variant run the following commands: + +``` +conan test_package Seasocks/1.3.2@/ -s build_type= -s compiler.libcxx= +``` + +## SystemC + +download the SystemC distribution from http://www.accellera.org/downloads/standards/systemc and unpack into the SystemC directory + +``` +cd SystemC +CONAN_USER= CONAN_CHANNEL= python build.py +``` + +to build a specific variant run the following command + +``` +conan test_package SystemC/2.3.2@minres/ -o SystemC:stdcxx= -s build_type= +``` + +where is one of 98, 11, or 14 + +## SystemC Verification library + +download the SystemC distribution from http://www.accellera.org/downloads/standards/systemc and unpack into the SystemCVerification directory and apply the patch scv4systemc-2.3.2.patch + +``` +cd SystemCVerification +CONAN_USER= CONAN_CHANNEL= python build.py +``` + +to build a specific variant run the following command + +``` +conan test_package SystemCVerification/2.0.0.a@minres/ -o SystemC:stdcxx= -s build_type= +``` + +where is one of 98, 11, or 14 diff --git a/Seasocks/build.py b/Seasocks/build.py new file mode 100644 index 0000000..5a172e1 --- /dev/null +++ b/Seasocks/build.py @@ -0,0 +1,10 @@ +from conan.packager import ConanMultiPackager + +if __name__ == "__main__": + builder = ConanMultiPackager() + libstd = ['libstdc++11', 'libstdc++'] + types = ['Debug','Release'] + configs = [[i,k] for i in libstd for k in types] + for triple in configs: + builder.add(settings={"build_type":triple[1], "compiler.libcxx":triple[0]}, options={}, env_vars={}, build_requires={}) + builder.run() diff --git a/Seasocks/conanfile.py b/Seasocks/conanfile.py index 18b2759..7063b6d 100644 --- a/Seasocks/conanfile.py +++ b/Seasocks/conanfile.py @@ -25,7 +25,7 @@ include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake) conan_basic_setup()''') def build(self): - cmake = CMake(self) + cmake = CMake(self, parallel=True) self.run('cmake seasocks %s' % cmake.command_line) self.run("cmake --build . --target install %s" % cmake.build_config)