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