• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2023 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
16sec_comp_root_dir = ".."
17
18config("libsecurity_component_framework_config") {
19  include_dirs = [
20    "common/include",
21    "${sec_comp_root_dir}/interfaces/inner_api/security_component/include",
22  ]
23}
24
25ohos_shared_library("libsecurity_component_framework") {
26  subsystem_name = "security"
27  part_name = "security_component_manager"
28  output_name = "libsecurity_component_framework"
29
30  include_dirs = [
31    "common/include",
32    "security_component/include",
33    "${sec_comp_root_dir}/interfaces/inner_api/security_component/include",
34    "//third_party/json/include",
35  ]
36
37  sources = [
38    "common/src/sec_comp_tool.cpp",
39    "security_component/src/location_button.cpp",
40    "security_component/src/paste_button.cpp",
41    "security_component/src/save_button.cpp",
42    "security_component/src/sec_comp_base.cpp",
43    "security_component/src/sec_comp_click_event_parcel.cpp",
44  ]
45
46  configs = [ "${sec_comp_root_dir}/config:coverage_flags" ]
47  public_configs = [ ":libsecurity_component_framework_config" ]
48
49  external_deps = [
50    "c_utils:utils",
51    "hilog:libhilog",
52  ]
53
54  cflags_cc = [ "-DHILOG_ENABLE" ]
55}
56
57config("libsecurity_component_enhance_adapter_config") {
58  include_dirs = [
59    "common/include",
60    "enhance_adapter/include",
61    "${sec_comp_root_dir}/interfaces/inner_api/security_component/include",
62    "//third_party/json/include",
63  ]
64}
65
66ohos_shared_library("libsecurity_component_enhance_adapter") {
67  subsystem_name = "security"
68  part_name = "security_component_manager"
69  output_name = "libsecurity_component_enhance_adapter"
70
71  include_dirs = [
72    "common/include",
73    "enhance_adapter/include",
74    "${sec_comp_root_dir}/interfaces/inner_api/security_component/include",
75    "//third_party/json/include",
76  ]
77
78  sources = [ "enhance_adapter/src/sec_comp_enhance_adapter.cpp" ]
79
80  configs = [ "${sec_comp_root_dir}/config:coverage_flags" ]
81  public_configs = [ ":libsecurity_component_enhance_adapter_config" ]
82
83  external_deps = [
84    "c_utils:utils",
85    "hilog:libhilog",
86    "ipc:ipc_single",
87  ]
88
89  cflags_cc = [ "-DHILOG_ENABLE" ]
90
91  if (current_cpu == "arm64") {
92    defines = [ "_ARM64_" ]
93  }
94}
95