diff --git a/BUILD.gn b/BUILD.gn index 23188701998cdfd212b3a119ed7b0a6a571ccc32..2fa1ef2533dab9d04d0e8be067473f347f64b188 100755 --- a/BUILD.gn +++ b/BUILD.gn @@ -46,7 +46,6 @@ if (defined(ohos_lite)) { config("mbedtls_config") { include_dirs = MBEDTLS_INLCUDE_DIRS - include_dirs += [ "//third_party/bounds_checking_function/include" ] if (ohos_kernel_type == "liteos_m") { defines += [ "__unix__", @@ -64,6 +63,7 @@ if (defined(ohos_lite)) { lite_library("mbedtls_shared") { target_type = "shared_library" public_configs = [ ":mbedtls_config" ] + public_deps = [ "//third_party/bounds_checking_function:libsec_shared" ] output_name = "mbedtls" sources = MBEDTLS_SOURCES } @@ -71,6 +71,7 @@ if (defined(ohos_lite)) { lite_library("mbedtls_static") { target_type = "static_library" public_configs = [ ":mbedtls_config" ] + public_deps = [ "//third_party/bounds_checking_function:libsec_static" ] output_name = "mbedtls" sources = MBEDTLS_SOURCES }