Platform | Build Status |
---|---|
Linux | |
Windows |
pip install conan
Add a requirement for caf/0.15.5@actor-framework/stable
to your conanfile.txt
or conanfile.py
.
There are a number of CAF-specific options which are activated
using caf:option=value
:
Option | Values | Default | Description |
---|---|---|---|
shared |
True , False |
False |
Build shared libraries |
static |
True , False |
True |
Build static libraries |
log_level |
ERROR , WARNING , INFO , DEBUG |
None | Build with logging |
For example, to use shared libraries and debug logging for CAF, use:
conan install -o caf:shared=True -o caf:log_level=DEBUG
Conan keeps track of the option values used and each built combination of options is a different package.
CAF compiles with the default C++ ABI.
Verify which version of the C++ ABI your compiler is using by default:
g++ --version -v 2>&1 | grep with-default-libstdcxx-abi
Edit ~/.conan/conan.conf
and change compiler.libcxx
depending on the
value of --with-default-libstdcxx-abi
:
ABI value | Conan compiler.libcxx |
---|---|
new |
libstdc++11 |
old |
libstdc++ |
You may need to run the conan
command once to generate it.
- Edit the following files and and change the version to the new
version number:
conanfile.py
.travis.yml
appveyor.yml
- Run
conan create
The syntax for conan create
is
conan create actor-framework/stable [-o caf:option=value]...
conan create
will build CAF and install the package in your local
Conan cache under ~/.conan/data
. It will also run a smoke test
against the package.
Travis and Appveyor are set up to build packages for a number of
configurations. See .travis.yml
, appveyor.yml
and build.py
for details.