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}/common", 24 "${devattest_path}/common/log", 25 "${devattest_path}/common/permission/include", 26 "${devattest_innerkit_path}/native_cpp/include", 27 "//utils/native/base/include", 28 "//utils/system/safwk/native/include", 29 "${devattest_path}/services/core/include", 30 ] 31} 32 33ohos_shared_library("devattest_service") { 34 sources = [ 35 "src/attest_result_info.cpp", 36 "src/devattest_network_callback.cpp", 37 "src/devattest_service.cpp", 38 "src/devattest_service_stub.cpp", 39 "src/devattest_system_ability_listener.cpp", 40 ] 41 42 configs = [ ":devattest_service_config" ] 43 44 deps = [ 45 "${devattest_path}/common/permission:devattest_permission", 46 "${devattest_path}/services/core:devattest_core", 47 ] 48 49 external_deps = [ 50 "bundle_framework:appexecfwk_core", 51 "c_utils:utils", 52 "hiviewdfx_hilog_native:libhilog", 53 "ipc:ipc_core", 54 "netmanager_base:net_conn_manager_if", 55 "safwk:system_ability_fwk", 56 "samgr:samgr_common", 57 "samgr:samgr_proxy", 58 ] 59 60 subsystem_name = "xts" 61 part_name = "device_attest" 62} 63