Updated README.md

This commit is contained in:
Eyck Jentzsch 2017-10-28 17:26:01 +02:00
parent efc00d983f
commit bfd0359354
3 changed files with 67 additions and 2 deletions

View File

@ -1,2 +1,57 @@
# conan-recipes # 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=<username> CONAN_CHANNEL=<channel name> python build.py
```
to build a specific variant run the following commands:
```
conan test_package Seasocks/1.3.2@<username>/<channel name> -s build_type=<build type> -s compiler.libcxx=<libstdc++ variant>
```
## SystemC
download the SystemC distribution from http://www.accellera.org/downloads/standards/systemc and unpack into the SystemC directory
```
cd SystemC
CONAN_USER=<usernam> CONAN_CHANNEL=<channel name> python build.py
```
to build a specific variant run the following command
```
conan test_package SystemC/2.3.2@minres/<channel name> -o SystemC:stdcxx=<c++ std variant> -s build_type=<build type>
```
where <c++ std variant> 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=<usernam> CONAN_CHANNEL=<channel name> python build.py
```
to build a specific variant run the following command
```
conan test_package SystemCVerification/2.0.0.a@minres/<channel name> -o SystemC:stdcxx=<c++ std variant> -s build_type=<build type>
```
where <c++ std variant> is one of 98, 11, or 14

10
Seasocks/build.py Normal file
View File

@ -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()

View File

@ -25,7 +25,7 @@ include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake)
conan_basic_setup()''') conan_basic_setup()''')
def build(self): def build(self):
cmake = CMake(self) cmake = CMake(self, parallel=True)
self.run('cmake seasocks %s' % cmake.command_line) self.run('cmake seasocks %s' % cmake.command_line)
self.run("cmake --build . --target install %s" % cmake.build_config) self.run("cmake --build . --target install %s" % cmake.build_config)