# Copyright (c) 2021-2022 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. import("//build/ohos.gni") import("//build/ohos_var.gni") config("samgr_proxy_config") { include_dirs = [ "include" ] } config("lsamgr_proxy_config") { include_dirs = [ "//foundation/systemabilitymgr/samgr/services/lsamgr/include" ] } config("samgr_proxy_private_config") { include_dirs = [ "include", "//foundation/systemabilitymgr/samgr/interfaces/innerkits/lsamgr", "//foundation/systemabilitymgr/samgr/services/lsamgr/include", "//foundation/systemabilitymgr/samgr/services/samgr/native/include", "//foundation/systemabilitymgr/samgr/utils/native/include", "//third_party/json/include", "//third_party/json/single_include", ] } ohos_shared_library("samgr_proxy") { version_script = "libsamgr_proxy.versionscript" defines = [ "SAMGR_PROXY" ] sources = [ "//foundation/systemabilitymgr/samgr/frameworks/native/source/system_ability_load_callback_stub.cpp", "//foundation/systemabilitymgr/samgr/frameworks/native/source/system_ability_manager_proxy.cpp", "//foundation/systemabilitymgr/samgr/frameworks/native/source/system_ability_on_demand_event.cpp", "//foundation/systemabilitymgr/samgr/frameworks/native/source/system_ability_status_change_stub.cpp", "//foundation/systemabilitymgr/samgr/frameworks/native/source/system_process_status_change_stub.cpp", "//foundation/systemabilitymgr/samgr/services/lsamgr/src/local_ability_manager_proxy.cpp", "//foundation/systemabilitymgr/samgr/services/lsamgr/src/local_abilitys.cpp", "//foundation/systemabilitymgr/samgr/services/samgr/native/source/service_registry.cpp", ] configs = [ ":samgr_proxy_private_config", "//foundation/systemabilitymgr/samgr/test/resource:coverage_flags", ] public_configs = [ ":lsamgr_proxy_config" ] all_dependent_configs = [ ":samgr_proxy_config" ] if (is_standard_system) { external_deps = [ "c_utils:utils", "hilog:libhilog", "ipc:ipc_single", ] part_name = "samgr" } innerapi_tags = [ "chipsetsdk", "platformsdk", "sasdk", ] install_images = [ system_base_dir ] subsystem_name = "systemabilitymgr" }