|
1 |
| -[](https://travis-ci.org/lasote/conan-openssl) |
| 1 | +[ ](https://bintray.com/conan-community/conan/OpenSSL%3Aconan/_latestVersion) |
| 2 | +[](https://travis-ci.org/conan-community/conan-OpenSSL) |
| 3 | +[](https://ci.appveyor.com/project/ConanCIintegration/conan-OpenSSL) |
2 | 4 |
|
3 |
| -[](https://gitter.im/lasote/conan-openssl?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) |
| 5 | +## Conan package recipe for *OpenSSL* |
4 | 6 |
|
| 7 | +OpenSSL is an open source project that provides a robust, commercial-grade, and full-featured toolkit for the Transport Layer Security (TLS) and Secure Sockets Layer (SSL) protocols |
5 | 8 |
|
| 9 | +The packages generated with this **conanfile** can be found on [Bintray](https://bintray.com/conan-community/conan/OpenSSL%3Aconan). |
6 | 10 |
|
7 |
| -# conan-openssl |
8 | 11 |
|
9 |
| -[Conan.io](https://conan.io) package for OpenSSL library |
| 12 | +## Issues |
10 | 13 |
|
11 |
| -The packages generated with this **conanfile** can be found in the [conan-center on Bintray](https://bintray.com/conan/conan-center). |
| 14 | +If you wish to report an issue or make a request for a package, please do so here: |
12 | 15 |
|
13 |
| -## Build packages |
| 16 | +[Issues Tracker](https://github.com/conan-community/community/issues) |
14 | 17 |
|
15 |
| -Only necessary if you don't want to use the pre-compiled binaries, and you want to build your own packages from source. |
16 | 18 |
|
17 |
| -Download conan client from [Conan.io](https://conan.io) and run: |
18 |
| - |
19 |
| - $ conan test_package |
20 |
| - $ conan test_package # use different settings, options or profiles |
21 |
| - |
22 |
| -## Upload packages to server |
23 |
| - |
24 |
| - $ conan upload OpenSSL/1.0.2n@conan/stable --all |
25 |
| - |
26 |
| -## Reuse the packages |
| 19 | +## For Users |
27 | 20 |
|
28 | 21 | ### Basic setup
|
29 | 22 |
|
30 |
| - $ conan install OpenSSL/1.0.2n@conan/stable |
31 |
| - |
| 23 | + $ conan install OpenSSL/1.1.1a@conan/stable |
| 24 | + |
32 | 25 | ### Project setup
|
33 | 26 |
|
34 | 27 | If you handle multiple dependencies in your project is better to add a *conanfile.txt*
|
35 |
| - |
| 28 | + |
36 | 29 | [requires]
|
37 |
| - OpenSSL/1.0.2n@conan/stable |
| 30 | + OpenSSL/1.1.1a@conan/stable |
38 | 31 |
|
39 |
| - [options] |
40 |
| - OpenSSL:shared=false # true |
41 |
| - # Take a look for all available options in conanfile.py |
42 |
| - |
43 | 32 | [generators]
|
44 | 33 | txt
|
45 |
| - cmake |
46 | 34 |
|
47 | 35 | Complete the installation of requirements for your project running:
|
48 | 36 |
|
49 |
| - conan install . |
| 37 | + $ mkdir build && cd build && conan install .. |
| 38 | + |
| 39 | +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. |
| 40 | + |
| 41 | + |
| 42 | +## Build and package |
| 43 | + |
| 44 | +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. |
| 45 | + |
| 46 | + $ conan create . conan/stable |
| 47 | + |
| 48 | + |
| 49 | +### Available Options |
| 50 | +| Option | Default | Possible Values | |
| 51 | +| ------------- |:----------------- |:------------:| |
| 52 | +| no_threads | False | [True, False] | |
| 53 | +| no_zlib | False | [True, False] | |
| 54 | +| shared | False | [True, False] | |
| 55 | +| no_asm | False | [True, False] | |
| 56 | +| 386 | False | [True, False] | |
| 57 | +| no_sse2 | False | [True, False] | |
| 58 | +| no_bf | False | [True, False] | |
| 59 | +| no_cast | False | [True, False] | |
| 60 | +| no_des | False | [True, False] | |
| 61 | +| no_dh | False | [True, False] | |
| 62 | +| no_dsa | False | [True, False] | |
| 63 | +| no_hmac | False | [True, False] | |
| 64 | +| no_md2 | False | [True, False] | |
| 65 | +| no_md5 | False | [True, False] | |
| 66 | +| no_mdc2 | False | [True, False] | |
| 67 | +| no_rc2 | False | [True, False] | |
| 68 | +| no_rc4 | False | [True, False] | |
| 69 | +| no_rc5 | False | [True, False] | |
| 70 | +| no_rsa | False | [True, False] | |
| 71 | +| no_sha | False | [True, False] | |
| 72 | +| no_fpic | False | [True, False] | |
| 73 | + |
| 74 | + |
| 75 | +## Add Remote |
| 76 | + |
| 77 | +Conan Community has its own Bintray repository, however, we are working to distribute all package in the Conan Center: |
| 78 | + |
| 79 | + $ conan remote add conan-center "https://conan.bintray.com" |
| 80 | + |
| 81 | + |
| 82 | +## Conan Recipe License |
| 83 | + |
| 84 | +NOTE: The conan recipe license applies only to the files of this recipe, which can be used to build and package OpenSSL. |
| 85 | +It does *not* in any way apply or is related to the actual software being packaged. |
50 | 86 |
|
51 |
| -Project setup installs the library (and all its dependencies) and generates the files *conanbuildinfo.txt* and *conanbuildinfo.cmake* with all the paths and variables that you need to link with your dependencies. |
| 87 | +[MIT](LICENSE) |
0 commit comments