Conan.io package recipe for cairo.
Cairo is a 2D graphics library with support for multiple output devices
The packages generated with this conanfile can be found on Bintray.
$ conan install cairo/1.15.14@bincrafters/testing
If you handle multiple dependencies in your project is better to add a conanfile.txt
[requires]
cairo/1.15.14@bincrafters/testing
[generators]
txt
Complete the installation of requirements for your project running:
$ mkdir build && cd build && conan install ..
Note: It is recommended that you run conan install from a build directory and not the root of the project directory. This is because conan generates conanbuildinfo files specific to a single build configuration which by default comes from an autodetected default profile located in ~/.conan/profiles/default . If you pass different build configuration options to conan install, it will generate different conanbuildinfo files. Thus, they should not be added to the root of the project, nor committed to git.
The example below shows the commands used to publish to bincrafters conan repository. To publish to your own conan respository (for example, after forking this git repository), you will need to change the commands below accordingly.
The following command both runs all the steps of the conan file, and publishes the package to the local system cache. This includes downloading dependencies from "build_requires" and "requires" , and then running the build() method.
$ conan create bincrafters/testing
Option | Default | Possible Values |
---|---|---|
shared | False | [True, False] |
fPIC | True | [True, False] |
xcb | False | [True, False] |
Notice: xcb
option set to True
will pass --enable-xcb
to the configure
script of cairo. You will need to also link with xcb
(maybe even xcb-shm
, xcb-render
).
$ conan remote add bincrafters "https://api.bintray.com/conan/bincrafters/public-conan"
$ conan upload cairo/1.15.14@bincrafters/testing --all -r bincrafters
NOTE: The conan recipe license applies only to the files of this recipe, which can be used to build and package cairo. It does not in any way apply or is related to the actual software being packaged.
MIT