• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (C) 2021 Huawei Device Co., Ltd.
2# Licensed under the Apache License, Version 2.0 (the "License");
3# you may not use this file except in compliance with the License.
4# You may obtain a copy of the License at
5#
6#     http://www.apache.org/licenses/LICENSE-2.0
7#
8# Unless required by applicable law or agreed to in writing, software
9# distributed under the License is distributed on an "AS IS" BASIS,
10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11# See the License for the specific language governing permissions and
12# limitations under the License.
13
14import("//build/ohos.gni")
15
16config("huks_config") {
17  include_dirs = [
18    "include",
19    "ipc/include",
20  ]
21}
22
23ohos_static_library("libhuks_os_dependency_standard_static") {
24  sanitize = {
25    integer_overflow = true
26    cfi = true
27    debug = false
28  }
29  subsystem_name = "security"
30  part_name = "huks"
31  public_configs = [ ":huks_config" ]
32  configs = [ "//base/security/huks/frameworks/config/build:coverage_flag" ]
33  include_dirs = [ "log" ]
34  defines = [
35    "L2_STANDARD",
36    "_HARDWARE_ROOT_KEY_",
37    "_HUKS_LOG_ENABLE_",
38  ]
39  sources = [
40    "./ipc/src/hks_client_service_ipc.c",
41    "./ipc/src/hks_ipc_check.c",
42    "./ipc/src/hks_ipc_serialization.c",
43    "./ipc/src/hks_ipc_slice.c",
44    "./ipc/src/hks_request.cpp",
45    "./posix/hks_mem.c",
46  ]
47  deps = [ "//base/security/huks/frameworks/huks_standard/main/common:libhuks_common_standard_static" ]
48  external_deps = [
49    "c_utils:utils",
50    "hiviewdfx_hilog_native:libhilog",
51    "ipc:ipc_core",
52    "samgr:samgr_proxy",
53  ]
54  cflags_cc = [
55    "-DHILOG_ENABLE",
56    "-Wall",
57    "-Werror",
58  ]
59  cflags = cflags_cc
60  complete_static_lib = true
61}
62