This project's goal is to provide the precompiled binary of GmSSL
in OpenHarmony
- arm64-v8a
- armeabi-v7a
- x86_64
git clone https://github.com/harmony-contrib/ohos-gmssl.git
We can use it with ohpm.
ohpm install @ohos-rs/gmssl --save-dev
Edit your CMakeLists.txt
in your project and add those code:
set(GMSSL_ROOT_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../../../oh_modules/@ohos-rs/gmssl)
set(CMAKE_MODULE_PATH ${GMSSL_ROOT_PATH})
find_package(GmSSL REQUIRED)
target_link_libraries(entry PRIVATE GmSSL)
You can release package locally. Just run command:
bash ./scripts/har.sh
It will generate a .har
package in current path. You can import it with file
protocol.