• 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  subsystem_name = "security"
25  part_name = "huks"
26  public_configs = [ ":huks_config" ]
27  include_dirs = [
28    "log",
29    "//utils/native/base/include",
30    "//utils/system/safwk/native/include",
31  ]
32  defines = [
33    "L2_STANDARD",
34    "_HARDWARE_ROOT_KEY_",
35    "_HUKS_LOG_ENABLE_",
36  ]
37  sources = [
38    "./ipc/src/hks_client_service_ipc.c",
39    "./ipc/src/hks_ipc_check.c",
40    "./ipc/src/hks_ipc_serialization.c",
41    "./ipc/src/hks_ipc_slice.c",
42    "./ipc/src/hks_request.cpp",
43    "./log/hks_log.c",
44    "./posix/hks_mem.c",
45  ]
46  deps = [
47    "//base/security/huks/frameworks/huks_standard/main/common:libhuks_common_standard_static",
48    "//utils/native/base:utils",
49  ]
50  external_deps = [
51    "hiviewdfx_hilog_native:libhilog",
52    "ipc:ipc_core",
53    "samgr_standard:samgr_proxy",
54  ]
55  cflags_cc = [
56    "-DHILOG_ENABLE",
57    "-Wall",
58    "-Werror",
59  ]
60  cflags = cflags_cc
61  complete_static_lib = true
62}
63