diff --git a/openharmony/CMakeLists.txt b/openharmony/CMakeLists.txt index 23c7097a..db4fc19c 100644 --- a/openharmony/CMakeLists.txt +++ b/openharmony/CMakeLists.txt @@ -5,6 +5,11 @@ set_target_properties(mbedcrypto PROPERTIES IMPORTED_LOCATION ${ohos_lib_dir}/libmbedcrypto.a ) +add_library(mbedx509 STATIC IMPORTED GLOBAL) +set_target_properties(mbedx509 PROPERTIES + IMPORTED_LOCATION ${ohos_lib_dir}/libmbedx509.a +) + add_library(mbedtls STATIC IMPORTED GLOBAL) set_target_properties(mbedtls PROPERTIES IMPORTED_LOCATION ${ohos_lib_dir}/libmbedtls.a @@ -62,9 +67,9 @@ set_target_properties(mpg123 PROPERTIES IMPORTED_LOCATION ${ohos_lib_dir}/libmpg123.a ) -add_library(curl SHARED IMPORTED GLOBAL) +add_library(curl STATIC IMPORTED GLOBAL) set_target_properties(curl PROPERTIES - IMPORTED_LOCATION ${ohos_lib_dir}/libcurl.so + IMPORTED_LOCATION ${ohos_lib_dir}/libcurl.a ) set(se_libs_name) @@ -119,6 +124,7 @@ if(USE_SOCKET) websockets mbedtls mbedcrypto + mbedx509 ) endif() diff --git a/openharmony/arm64-v8a/lib/libcurl-d.a b/openharmony/arm64-v8a/lib/libcurl-d.a new file mode 100644 index 00000000..71196231 Binary files /dev/null and b/openharmony/arm64-v8a/lib/libcurl-d.a differ diff --git a/openharmony/arm64-v8a/lib/libcurl.a b/openharmony/arm64-v8a/lib/libcurl.a new file mode 100644 index 00000000..f46473e2 Binary files /dev/null and b/openharmony/arm64-v8a/lib/libcurl.a differ diff --git a/openharmony/arm64-v8a/lib/libcurl.so b/openharmony/arm64-v8a/lib/libcurl.so deleted file mode 100644 index 87d406c0..00000000 Binary files a/openharmony/arm64-v8a/lib/libcurl.so and /dev/null differ diff --git a/openharmony/arm64-v8a/lib/libmbedx509.a b/openharmony/arm64-v8a/lib/libmbedx509.a new file mode 100644 index 00000000..2d610086 Binary files /dev/null and b/openharmony/arm64-v8a/lib/libmbedx509.a differ diff --git a/openharmony/armeabi-v7a/lib/libcurl-d.a b/openharmony/armeabi-v7a/lib/libcurl-d.a new file mode 100644 index 00000000..a8a64ab9 Binary files /dev/null and b/openharmony/armeabi-v7a/lib/libcurl-d.a differ diff --git a/openharmony/armeabi-v7a/lib/libcurl.a b/openharmony/armeabi-v7a/lib/libcurl.a new file mode 100644 index 00000000..13e75960 Binary files /dev/null and b/openharmony/armeabi-v7a/lib/libcurl.a differ diff --git a/openharmony/armeabi-v7a/lib/libcurl.so b/openharmony/armeabi-v7a/lib/libcurl.so deleted file mode 100644 index e700c4dc..00000000 Binary files a/openharmony/armeabi-v7a/lib/libcurl.so and /dev/null differ diff --git a/openharmony/armeabi-v7a/lib/libmbedx509.a b/openharmony/armeabi-v7a/lib/libmbedx509.a new file mode 100644 index 00000000..32e5f4f3 Binary files /dev/null and b/openharmony/armeabi-v7a/lib/libmbedx509.a differ