• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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    "//third_party/bounds_checking_function/include",
29    "//base/security/huks/frameworks/crypto_lite/cipher/include",
30    "//base/hiviewdfx/hilog/interfaces/native/innerkits//include",
31    "log",
32  ]
33  deps = [
34    "//base/security/huks/frameworks/crypto_lite/cipher:cipher_shared",
35    "//foundation/arkui/napi:ace_napi",
36  ]
37
38  cflags_cc = [
39    "-Wall",
40    "-Werror",
41  ]
42
43  relative_install_dir = "module"
44  subsystem_name = "security"
45  part_name = "huks"
46}
47