{"id":15107096,"url":"https://github.com/shadowsocks/openssl-cmake","last_synced_at":"2025-09-27T05:31:37.516Z","repository":{"id":65979119,"uuid":"243884608","full_name":"shadowsocks/openssl-cmake","owner":"shadowsocks","description":"CMake wrapper for OpenSSL supporting cross-compilation","archived":false,"fork":true,"pushed_at":"2020-02-29T01:29:46.000Z","size":79,"stargazers_count":7,"open_issues_count":0,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-12-08T01:01:33.276Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"CMake","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"viaduck/openssl-cmake","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shadowsocks.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-02-29T01:27:40.000Z","updated_at":"2024-11-11T14:48:00.000Z","dependencies_parsed_at":"2023-02-19T19:01:12.794Z","dependency_job_id":null,"html_url":"https://github.com/shadowsocks/openssl-cmake","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shadowsocks%2Fopenssl-cmake","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shadowsocks%2Fopenssl-cmake/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shadowsocks%2Fopenssl-cmake/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shadowsocks%2Fopenssl-cmake/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shadowsocks","download_url":"https://codeload.github.com/shadowsocks/openssl-cmake/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234391380,"owners_count":18824809,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-09-25T21:04:25.288Z","updated_at":"2025-09-27T05:31:32.243Z","avatar_url":"https://github.com/shadowsocks.png","language":"CMake","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OpenSSL-CMake\nCMake script supplying `OpenSSL` libraries conveniently, encapsulating the\n`OpenSSL` build system on various platforms.\n\n## Features\n* Allows usage of system OpenSSL\n* Allows trivial and complex building of OpenSSL\n* Allows cross compilation, especially for Android\n* Defaults to prebuilt binaries\n\n## System OpenSSL\nTo use the system OpenSSL, simply set `SYSTEM_OPENSSL=ON`.\n\n## Prebuilt OpenSSL\nDefault behaviour is the download of a prebuilt binary. This is only intended\nas a convenience for debugging purposes and NOT for production use. \nAvailable prebuilt binaries can be viewed [here](https://builds.viaduck.org/prebuilts/openssl/).\n\n## Build OpenSSL\nIn order to build `OpenSSL`, set `BUILD_OPENSSL=ON` along with the branch or \ntag name, for example `OPENSSL_BRANCH=OpenSSL_1_1_0g`. \n\n### General Cross Compile\nCross compilation is enabled using `CROSS=ON` and the target is specified using\n`CROSS_TARGET=mingw` along with the optional `CROSS_PREFIX=mingw32-`. \n\n### Android Cross Compile\nAndroid requires a special `CROSS_ANDROID=ON`. Using `OpenSSL-CMake` from \nGradle's native build does not require additional settings. Otherwise, it is \nrequired to set the general NDK variables `ANDROID_NDK_ROOT`, `ANDROID_EABI`, \n`ANDROID_ARCH`, `ANDROID_API`, `ANDROID_MACHINE`.  \nCross compile was tested with NDK r18b, r19c and r20.\n\n## Usage\n1. Add `OpenSSL-CMake` as a submodule to your Git project using `git submodule \nadd \u003cURL\u003e external/openssl-cmake`\n2. Initialize the submodule using `git submodule update --init`\n3. In your `CMakeLists.txt` include the directory using \n`add_subdirectory(external/openssl-cmake)`\n4. Link against `ssl` and `crypto` targets, which will also include the headers\n\n## Licensing\nThese scripts, unless otherwise stated, are subject to the MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshadowsocks%2Fopenssl-cmake","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshadowsocks%2Fopenssl-cmake","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshadowsocks%2Fopenssl-cmake/lists"}