modfiy gn of the independent compilation

Signed-off-by: 王永忠 <wangyongzhong2@huawei.com>
This commit is contained in:
王永忠 2024-03-28 11:47:09 +00:00 committed by Gitee
parent 8f104eb59e
commit b6071ce779
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
16 changed files with 27 additions and 55 deletions

View File

@ -25,7 +25,9 @@
"components": [
"hilog",
"c_utils",
"napi"
"napi",
"openssl",
"bounds_checking_function"
],
"third_party": [
"openssl",

View File

@ -29,10 +29,6 @@ ohos_shared_library("crypto_framework_lib") {
innerapi_tags = [ "platformsdk" ]
part_name = "crypto_framework"
public_configs = [ ":framework_config" ]
include_dirs = [
"//commonlibrary/c_utils/base/include",
"//base/hiviewdfx/hilog/interfaces/native/innerkits/include",
]
include_dirs += framework_inc_path + crypto_framwork_common_inc_path
sources = framework_files

View File

@ -19,12 +19,7 @@ ohos_shared_library("cryptoframework_napi") {
subsystem_name = "security"
part_name = "crypto_framework"
relative_install_dir = "module/security"
include_dirs = [
"//third_party/bounds_checking_function/include",
"//commonlibrary/c_utils/base/include",
"//base/security/crypto_framework/frameworks/js/napi/crypto/inc",
"//base/hiviewdfx/hilog/interfaces/native/innerkits/include",
]
include_dirs = [ "//base/security/crypto_framework/frameworks/js/napi/crypto/inc" ]
include_dirs += framework_inc_path
if (os_level == "standard") {
@ -66,12 +61,10 @@ ohos_shared_library("cryptoframework_napi") {
"src/napi_verify.cpp",
]
deps = [
"//base/security/crypto_framework/frameworks:crypto_framework_lib",
"//third_party/bounds_checking_function:libsec_shared",
]
deps = [ "//base/security/crypto_framework/frameworks:crypto_framework_lib" ]
external_deps = [
"bounds_checking_function:libsec_shared",
"hilog:libhilog",
"napi:ace_napi",
]

View File

@ -30,10 +30,6 @@ ohos_shared_library("crypto_openssl_plugin_lib") {
innerapi_tags = [ "platformsdk_indirect" ]
part_name = "crypto_framework"
public_configs = [ ":plugin_config" ]
include_dirs = [
"//commonlibrary/c_utils/base/include",
"//third_party/openssl/include/",
]
include_dirs += plugin_inc_path + crypto_framwork_common_inc_path
sources = plugin_files
@ -52,14 +48,12 @@ ohos_shared_library("crypto_openssl_plugin_lib") {
"-Wall",
]
deps = [
"//base/security/crypto_framework/common:crypto_plugin_common",
"//third_party/openssl:libcrypto_shared",
]
deps = [ "//base/security/crypto_framework/common:crypto_plugin_common" ]
external_deps = [
"c_utils:utils",
"hilog:libhilog",
"openssl:libcrypto_shared",
]
defines = [ "OPENSSL_SUPPRESS_DEPRECATED" ]
}

View File

@ -30,9 +30,9 @@ ohos_fuzztest("HcfCipherCreateFuzzTest") {
"-fno-omit-frame-pointer",
]
sources = [ "hcfciphercreate_fuzzer.cpp" ]
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
external_deps = [
"bounds_checking_function:libsec_shared",
"c_utils:utils",
"crypto_framework:crypto_framework_lib",
"hilog:libhilog",

View File

@ -30,9 +30,9 @@ ohos_fuzztest("HcfKeyAgreementCreateFuzzTest") {
"-fno-omit-frame-pointer",
]
sources = [ "hcfkeyagreementcreate_fuzzer.cpp" ]
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
external_deps = [
"bounds_checking_function:libsec_shared",
"c_utils:utils",
"crypto_framework:crypto_framework_lib",
"hilog:libhilog",

View File

@ -30,9 +30,9 @@ ohos_fuzztest("HcfMacCreateFuzzTest") {
"-fno-omit-frame-pointer",
]
sources = [ "hcfmaccreate_fuzzer.cpp" ]
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
external_deps = [
"bounds_checking_function:libsec_shared",
"c_utils:utils",
"crypto_framework:crypto_framework_lib",
"hilog:libhilog",

View File

@ -30,9 +30,9 @@ ohos_fuzztest("HcfMdCreateFuzzTest") {
"-fno-omit-frame-pointer",
]
sources = [ "hcfmdcreate_fuzzer.cpp" ]
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
external_deps = [
"bounds_checking_function:libsec_shared",
"c_utils:utils",
"crypto_framework:crypto_framework_lib",
"hilog:libhilog",

View File

@ -30,9 +30,9 @@ ohos_fuzztest("HcfSignCreateFuzzTest") {
"-fno-omit-frame-pointer",
]
sources = [ "hcfsigncreate_fuzzer.cpp" ]
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
external_deps = [
"bounds_checking_function:libsec_shared",
"c_utils:utils",
"crypto_framework:crypto_framework_lib",
"hilog:libhilog",

View File

@ -30,9 +30,9 @@ ohos_fuzztest("HcfVerifyCreateFuzzTest") {
"-fno-omit-frame-pointer",
]
sources = [ "hcfverifycreate_fuzzer.cpp" ]
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
external_deps = [
"bounds_checking_function:libsec_shared",
"c_utils:utils",
"crypto_framework:crypto_framework_lib",
"hilog:libhilog",

View File

@ -31,16 +31,14 @@ ohos_fuzztest("AsyKeyGeneratorFuzzTest") {
"-fno-omit-frame-pointer",
]
sources = [ "asykeygenerator_fuzzer.cpp" ]
deps = [
"../../../../plugin:crypto_openssl_plugin_lib",
"//third_party/bounds_checking_function:libsec_shared",
"//third_party/openssl:libcrypto_shared",
]
deps = [ "../../../../plugin:crypto_openssl_plugin_lib" ]
external_deps = [
"bounds_checking_function:libsec_shared",
"c_utils:utils",
"crypto_framework:crypto_framework_lib",
"hilog:libhilog",
"openssl:libcrypto_shared",
]
}

View File

@ -32,15 +32,13 @@ ohos_fuzztest("DhKeyUtilFuzzTest") {
]
sources = [ "dhkeyutil_fuzzer.cpp" ]
deps = [
"//third_party/bounds_checking_function:libsec_shared",
"//third_party/openssl:libcrypto_shared",
]
external_deps = [
"bounds_checking_function:libsec_shared",
"c_utils:utils",
"crypto_framework:crypto_framework_lib",
"hilog:libhilog",
"openssl:libcrypto_shared",
]
}

View File

@ -32,15 +32,13 @@ ohos_fuzztest("EccKeyUtilFuzzTest") {
]
sources = [ "ecckeyutil_fuzzer.cpp" ]
deps = [
"//third_party/bounds_checking_function:libsec_shared",
"//third_party/openssl:libcrypto_shared",
]
external_deps = [
"bounds_checking_function:libsec_shared",
"c_utils:utils",
"crypto_framework:crypto_framework_lib",
"hilog:libhilog",
"openssl:libcrypto_shared",
]
}

View File

@ -42,15 +42,12 @@ ohos_fuzztest("SymKeyGeneratorFuzzTest") {
cflags += [ "-DBINDER_IPC_32BIT" ]
}
deps = [
"//third_party/bounds_checking_function:libsec_shared",
"//third_party/openssl:libcrypto_shared",
]
external_deps = [
"bounds_checking_function:libsec_shared",
"c_utils:utils",
"crypto_framework:crypto_framework_lib",
"hilog:libhilog",
"openssl:libcrypto_shared",
]
}

View File

@ -32,9 +32,9 @@ ohos_fuzztest("HcfRandCreateFuzzTest") {
"-fno-omit-frame-pointer",
]
sources = [ "hcfrandcreate_fuzzer.cpp" ]
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
external_deps = [
"bounds_checking_function:libsec_shared",
"c_utils:utils",
"crypto_framework:crypto_framework_lib",
"hilog:libhilog",

View File

@ -24,8 +24,6 @@ ohos_unittest("crypto_framework_test") {
include_dirs = [ "./include" ]
include_dirs += [
"//commonlibrary/c_utils/base/include",
"//third_party/openssl/include/",
"../../plugin/openssl_plugin/key/asy_key_generator/src",
"../../plugin/openssl_plugin/crypto_operation/signature/src",
"../../interfaces/innerkits/key/",
@ -143,11 +141,7 @@ ohos_unittest("crypto_framework_test") {
cflags += [ "-DBINDER_IPC_32BIT" ]
}
deps = [
"../../plugin:crypto_openssl_plugin_lib",
"//third_party/bounds_checking_function:libsec_shared",
"//third_party/openssl:libcrypto_shared",
]
deps = [ "../../plugin:crypto_openssl_plugin_lib" ]
defines = [
"HILOG_ENABLE",
@ -155,7 +149,9 @@ ohos_unittest("crypto_framework_test") {
]
external_deps = [
"bounds_checking_function:libsec_shared",
"c_utils:utils",
"hilog:libhilog",
"openssl:libcrypto_shared",
]
}