1#
2# Copyright (c) 2020 Huawei Device Co., Ltd.
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7#     http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14#
15
16import("//build/ohos.gni")
17
18ohos_shared_library("cipher_napi") {
19  defines = [
20    "L2_STANDARD",
21    "_HARDWARE_ROOT_KEY_",
22    "_HUKS_LOG_ENABLE_",
23  ]
24
25  sources = [ "cipher_napi.cpp" ]
26
27  include_dirs = [
28    "//base/security/huks/frameworks/crypto_lite/cipher/include",
29    "log",
30  ]
31  deps = [ "//base/security/huks/frameworks/crypto_lite/cipher:cipher_shared" ]
32
33  external_deps = [
34    "bounds_checking_function:libsec_shared",
35    "hilog:libhilog",
36    "napi:ace_napi",
37  ]
38
39  cflags_cc = [
40    "-Wall",
41    "-Werror",
42  ]
43
44  sanitize = {
45    cfi = true
46    cfi_cross_dso = true
47    debug = false
48  }
49
50  relative_install_dir = "module"
51  subsystem_name = "security"
52  part_name = "huks"
53}
54