1# Copyright (c) 2021-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("//build/ohos_var.gni") 16 17config("samgr_proxy_config") { 18 include_dirs = [ "include" ] 19} 20 21config("lsamgr_proxy_config") { 22 include_dirs = 23 [ "//foundation/systemabilitymgr/samgr/services/lsamgr/include" ] 24} 25 26config("samgr_proxy_private_config") { 27 include_dirs = [ 28 "include", 29 "//foundation/systemabilitymgr/samgr/interfaces/innerkits/lsamgr", 30 "//foundation/systemabilitymgr/samgr/services/lsamgr/include", 31 "//foundation/systemabilitymgr/samgr/services/samgr/native/include", 32 "//foundation/systemabilitymgr/samgr/utils/native/include", 33 "//third_party/json/include", 34 "//third_party/json/single_include", 35 ] 36} 37 38ohos_shared_library("samgr_proxy") { 39 version_script = "libsamgr_proxy.versionscript" 40 defines = [ "SAMGR_PROXY" ] 41 sources = [ 42 "//foundation/systemabilitymgr/samgr/frameworks/native/source/system_ability_load_callback_stub.cpp", 43 "//foundation/systemabilitymgr/samgr/frameworks/native/source/system_ability_manager_proxy.cpp", 44 "//foundation/systemabilitymgr/samgr/frameworks/native/source/system_ability_on_demand_event.cpp", 45 "//foundation/systemabilitymgr/samgr/frameworks/native/source/system_ability_status_change_stub.cpp", 46 "//foundation/systemabilitymgr/samgr/frameworks/native/source/system_process_status_change_stub.cpp", 47 "//foundation/systemabilitymgr/samgr/services/lsamgr/src/local_ability_manager_proxy.cpp", 48 "//foundation/systemabilitymgr/samgr/services/lsamgr/src/local_abilitys.cpp", 49 "//foundation/systemabilitymgr/samgr/services/samgr/native/source/service_registry.cpp", 50 ] 51 configs = [ 52 ":samgr_proxy_private_config", 53 "//foundation/systemabilitymgr/samgr/test/resource:coverage_flags", 54 ] 55 56 public_configs = [ ":lsamgr_proxy_config" ] 57 all_dependent_configs = [ ":samgr_proxy_config" ] 58 59 if (is_standard_system) { 60 external_deps = [ 61 "c_utils:utils", 62 "hilog:libhilog", 63 "ipc:ipc_single", 64 ] 65 66 part_name = "samgr" 67 } 68 69 innerapi_tags = [ 70 "chipsetsdk", 71 "platformsdk", 72 "sasdk", 73 ] 74 install_images = [ system_base_dir ] 75 subsystem_name = "systemabilitymgr" 76} 77