• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2022 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")
15import("//test/xts/device_attest/build/devattestconfig.gni")
16
17config("devattest_service_config") {
18  visibility = [ ":*" ]
19  cflags = [ "-Wall" ]
20  include_dirs = [
21    "include",
22    "${devattest_path}/services/core",
23    "${devattest_path}/services/core/include",
24    "${devattest_path}/common",
25    "${devattest_path}/common/log",
26    "${devattest_path}/common/permission/include",
27    "${devattest_innerkit_path}/native_cpp/include",
28  ]
29}
30
31ohos_shared_library("devattest_service") {
32  version_script = "libdevattest_service.map"
33  sources = [
34    "${devattest_path}/common/permission/src/permission.cpp",
35    "src/attest_result_info.cpp",
36    "src/devattest_network_callback.cpp",
37    "src/devattest_network_manager.cpp",
38    "src/devattest_service.cpp",
39    "src/devattest_service_stub.cpp",
40    "src/devattest_system_ability_listener.cpp",
41    "src/devattest_task.cpp",
42  ]
43
44  configs = [ ":devattest_service_config" ]
45
46  deps = [ "${devattest_path}/services/core:devattest_core" ]
47
48  # service
49  external_deps = [
50    "c_utils:utils",
51    "eventhandler:libeventhandler",
52    "hilog:libhilog",
53    "ipc:ipc_core",
54    "safwk:system_ability_fwk",
55    "samgr:samgr_proxy",
56  ]
57
58  # for permission
59  external_deps += [
60    "access_token:libaccesstoken_sdk",
61    "access_token:libtokenid_sdk",
62  ]
63
64  # for network callback
65  external_deps += [ "netmanager_base:net_conn_manager_if" ]
66
67  subsystem_name = "xts"
68  part_name = "device_attest"
69}
70