mirror of
https://gitee.com/openharmony/security_crypto_framework
synced 2024-11-23 06:49:44 +00:00
modfiy gn of the independent compilation
Signed-off-by: 王永忠 <wangyongzhong2@huawei.com>
This commit is contained in:
parent
8f104eb59e
commit
b6071ce779
@ -25,7 +25,9 @@
|
||||
"components": [
|
||||
"hilog",
|
||||
"c_utils",
|
||||
"napi"
|
||||
"napi",
|
||||
"openssl",
|
||||
"bounds_checking_function"
|
||||
],
|
||||
"third_party": [
|
||||
"openssl",
|
||||
|
@ -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
|
||||
|
@ -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",
|
||||
]
|
||||
|
@ -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" ]
|
||||
}
|
||||
|
@ -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",
|
||||
|
@ -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",
|
||||
|
@ -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",
|
||||
|
@ -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",
|
||||
|
@ -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",
|
||||
|
@ -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",
|
||||
|
@ -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",
|
||||
]
|
||||
}
|
||||
|
||||
|
@ -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",
|
||||
]
|
||||
}
|
||||
|
||||
|
@ -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",
|
||||
]
|
||||
}
|
||||
|
||||
|
@ -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",
|
||||
]
|
||||
}
|
||||
|
||||
|
@ -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",
|
||||
|
@ -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",
|
||||
]
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user