算法库NDK支持头文件kit化

Signed-off-by: lanming <lanming@huawei.com>
This commit is contained in:
lanming 2024-07-20 15:53:56 +08:00
parent 7c06c1ffb1
commit d003efb951
2 changed files with 3 additions and 1 deletions

View File

@ -17,6 +17,7 @@ import("//build/ohos/ndk/ndk.gni")
ohos_ndk_headers("crypto_capi_header") { ohos_ndk_headers("crypto_capi_header") {
dest_dir = "$ndk_headers_out_dir/CryptoArchitectureKit" dest_dir = "$ndk_headers_out_dir/CryptoArchitectureKit"
sources = [ sources = [
"./crypto_architecture_kit.h",
"./crypto_asym_key.h", "./crypto_asym_key.h",
"./crypto_common.h", "./crypto_common.h",
"./crypto_digest.h", "./crypto_digest.h",
@ -32,6 +33,7 @@ ohos_ndk_library("libohcrypto") {
ndk_description_file = "./libcrypto.ndk.json" ndk_description_file = "./libcrypto.ndk.json"
system_capability = "SystemCapability.Security.CryptoFramework" system_capability = "SystemCapability.Security.CryptoFramework"
system_capability_headers = [ system_capability_headers = [
"CryptoArchitectureKit/crypto_architecture_kit.h",
"CryptoArchitectureKit/crypto_asym_key.h", "CryptoArchitectureKit/crypto_asym_key.h",
"CryptoArchitectureKit/crypto_common.h", "CryptoArchitectureKit/crypto_common.h",
"CryptoArchitectureKit/crypto_digest.h", "CryptoArchitectureKit/crypto_digest.h",

View File

@ -37,8 +37,8 @@
#ifndef CRYPTO_ARCHITECTURE_KIT_H #ifndef CRYPTO_ARCHITECTURE_KIT_H
#define CRYPTO_ARCHITECTURE_KIT_H #define CRYPTO_ARCHITECTURE_KIT_H
#include "crypto_asym_key.h"
#include "crypto_common.h" #include "crypto_common.h"
#include "crypto_asym_key.h"
#include "crypto_digest.h" #include "crypto_digest.h"
#include "crypto_signature.h" #include "crypto_signature.h"
#include "crypto_sym_cipher.h" #include "crypto_sym_cipher.h"