1526fd984Sopenharmony_ci# 2526fd984Sopenharmony_ci# Copyright (c) 2020 Huawei Device Co., Ltd. 3526fd984Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 4526fd984Sopenharmony_ci# you may not use this file except in compliance with the License. 5526fd984Sopenharmony_ci# You may obtain a copy of the License at 6526fd984Sopenharmony_ci# 7526fd984Sopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 8526fd984Sopenharmony_ci# 9526fd984Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software 10526fd984Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 11526fd984Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12526fd984Sopenharmony_ci# See the License for the specific language governing permissions and 13526fd984Sopenharmony_ci# limitations under the License. 14526fd984Sopenharmony_ci# 15526fd984Sopenharmony_ci 16526fd984Sopenharmony_ciimport("//build/ohos.gni") 17526fd984Sopenharmony_ci 18526fd984Sopenharmony_ciohos_shared_library("cipher_napi") { 19526fd984Sopenharmony_ci defines = [ 20526fd984Sopenharmony_ci "L2_STANDARD", 21526fd984Sopenharmony_ci "_HARDWARE_ROOT_KEY_", 22526fd984Sopenharmony_ci "_HUKS_LOG_ENABLE_", 23526fd984Sopenharmony_ci ] 24526fd984Sopenharmony_ci 25526fd984Sopenharmony_ci sources = [ "cipher_napi.cpp" ] 26526fd984Sopenharmony_ci 27526fd984Sopenharmony_ci include_dirs = [ 28526fd984Sopenharmony_ci "//base/security/huks/frameworks/crypto_lite/cipher/include", 29526fd984Sopenharmony_ci "log", 30526fd984Sopenharmony_ci ] 31526fd984Sopenharmony_ci deps = [ "//base/security/huks/frameworks/crypto_lite/cipher:cipher_shared" ] 32526fd984Sopenharmony_ci 33526fd984Sopenharmony_ci external_deps = [ 34526fd984Sopenharmony_ci "bounds_checking_function:libsec_shared", 35526fd984Sopenharmony_ci "hilog:libhilog", 36526fd984Sopenharmony_ci "napi:ace_napi", 37526fd984Sopenharmony_ci ] 38526fd984Sopenharmony_ci 39526fd984Sopenharmony_ci cflags_cc = [ 40526fd984Sopenharmony_ci "-Wall", 41526fd984Sopenharmony_ci "-Werror", 42526fd984Sopenharmony_ci ] 43526fd984Sopenharmony_ci 44526fd984Sopenharmony_ci sanitize = { 45526fd984Sopenharmony_ci cfi = true 46526fd984Sopenharmony_ci cfi_cross_dso = true 47526fd984Sopenharmony_ci debug = false 48526fd984Sopenharmony_ci } 49526fd984Sopenharmony_ci 50526fd984Sopenharmony_ci relative_install_dir = "module" 51526fd984Sopenharmony_ci subsystem_name = "security" 52526fd984Sopenharmony_ci part_name = "huks" 53526fd984Sopenharmony_ci} 54