17777dab0Sopenharmony_ci# Copyright (C) 2024 Huawei Device Co., Ltd. 27777dab0Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 37777dab0Sopenharmony_ci# you may not use this file except in compliance with the License. 47777dab0Sopenharmony_ci# You may obtain a copy of the License at 57777dab0Sopenharmony_ci# 67777dab0Sopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 77777dab0Sopenharmony_ci# 87777dab0Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software 97777dab0Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 107777dab0Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 117777dab0Sopenharmony_ci# See the License for the specific language governing permissions and 127777dab0Sopenharmony_ci# limitations under the License. 137777dab0Sopenharmony_ci 147777dab0Sopenharmony_ciimport("//build/ohos.gni") 157777dab0Sopenharmony_ciimport("//build/ohos/ndk/ndk.gni") 167777dab0Sopenharmony_ci 177777dab0Sopenharmony_ciohos_ndk_headers("crypto_capi_header") { 187777dab0Sopenharmony_ci dest_dir = "$ndk_headers_out_dir/CryptoArchitectureKit" 197777dab0Sopenharmony_ci sources = [ 207777dab0Sopenharmony_ci "./crypto_architecture_kit.h", 217777dab0Sopenharmony_ci "./crypto_asym_key.h", 227777dab0Sopenharmony_ci "./crypto_common.h", 237777dab0Sopenharmony_ci "./crypto_digest.h", 247777dab0Sopenharmony_ci "./crypto_signature.h", 257777dab0Sopenharmony_ci "./crypto_sym_cipher.h", 267777dab0Sopenharmony_ci "./crypto_sym_key.h", 277777dab0Sopenharmony_ci ] 287777dab0Sopenharmony_ci} 297777dab0Sopenharmony_ci 307777dab0Sopenharmony_ciohos_ndk_library("libohcrypto") { 317777dab0Sopenharmony_ci output_name = "ohcrypto" 327777dab0Sopenharmony_ci output_extension = "so" 337777dab0Sopenharmony_ci ndk_description_file = "./libcrypto.ndk.json" 347777dab0Sopenharmony_ci system_capability = "SystemCapability.Security.CryptoFramework" 357777dab0Sopenharmony_ci system_capability_headers = [ 367777dab0Sopenharmony_ci "CryptoArchitectureKit/crypto_architecture_kit.h", 377777dab0Sopenharmony_ci "CryptoArchitectureKit/crypto_asym_key.h", 387777dab0Sopenharmony_ci "CryptoArchitectureKit/crypto_common.h", 397777dab0Sopenharmony_ci "CryptoArchitectureKit/crypto_digest.h", 407777dab0Sopenharmony_ci "CryptoArchitectureKit/crypto_signature.h", 417777dab0Sopenharmony_ci "CryptoArchitectureKit/crypto_sym_cipher.h", 427777dab0Sopenharmony_ci "CryptoArchitectureKit/crypto_sym_key.h", 437777dab0Sopenharmony_ci ] 447777dab0Sopenharmony_ci} 45