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") 15 16config("all_config_samgr_common") { 17 include_dirs = [ 18 "include", 19 "//third_party/libxml2/include", 20 "//third_party/json/include", 21 "//third_party/json/single_include", 22 ] 23} 24 25config("config_samgr_common") { 26 include_dirs = [ 27 "include", 28 "//foundation/systemabilitymgr/samgr/interfaces/innerkits/samgr_proxy/include", 29 "//foundation/systemabilitymgr/samgr/services/dfx/include", 30 ] 31} 32 33################################################################################ 34ohos_shared_library("samgr_common") { 35 version_script = "libsamgr_common.versionscript" 36 sources = [ 37 "//foundation/systemabilitymgr/samgr/services/common/src/parse_util.cpp", 38 "//foundation/systemabilitymgr/samgr/services/dfx/source/hisysevent_adapter.cpp", 39 ] 40 41 configs = [ 42 ":config_samgr_common", 43 "//foundation/systemabilitymgr/samgr/test/resource:coverage_flags", 44 ] 45 46 public_configs = [ ":config_samgr_common" ] 47 48 all_dependent_configs = [ ":all_config_samgr_common" ] 49 50 if (is_standard_system) { 51 external_deps = [ 52 "c_utils:utils", 53 "hilog:libhilog", 54 "hisysevent:libhisysevent", 55 "hitrace:hitrace_meter", 56 ] 57 part_name = "samgr" 58 } 59 60 innerapi_tags = [ "platformsdk" ] 61 subsystem_name = "systemabilitymgr" 62} 63################################################################################ 64