1600cc4afSopenharmony_ci# Copyright (c) 2021-2023 Huawei Device Co., Ltd. 2600cc4afSopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 3600cc4afSopenharmony_ci# you may not use this file except in compliance with the License. 4600cc4afSopenharmony_ci# You may obtain a copy of the License at 5600cc4afSopenharmony_ci# 6600cc4afSopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 7600cc4afSopenharmony_ci# 8600cc4afSopenharmony_ci# Unless required by applicable law or agreed to in writing, software 9600cc4afSopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 10600cc4afSopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11600cc4afSopenharmony_ci# See the License for the specific language governing permissions and 12600cc4afSopenharmony_ci# limitations under the License. 13600cc4afSopenharmony_ci 14600cc4afSopenharmony_ciimport("//build/ohos.gni") 15600cc4afSopenharmony_ci 16600cc4afSopenharmony_cigroup("common_target") { 17600cc4afSopenharmony_ci deps = [ ":libappexecfwk_common" ] 18600cc4afSopenharmony_ci} 19600cc4afSopenharmony_ci 20600cc4afSopenharmony_ciconfig("appexecfwk_common_config") { 21600cc4afSopenharmony_ci include_dirs = [ 22600cc4afSopenharmony_ci "log/include", 23600cc4afSopenharmony_ci "utils/include", 24600cc4afSopenharmony_ci ] 25600cc4afSopenharmony_ci} 26600cc4afSopenharmony_ci 27600cc4afSopenharmony_ciconfig("bundle_all_dependent_config") { 28600cc4afSopenharmony_ci include_dirs = [ "log/include" ] 29600cc4afSopenharmony_ci} 30600cc4afSopenharmony_ci 31600cc4afSopenharmony_ciohos_shared_library("libappexecfwk_common") { 32600cc4afSopenharmony_ci branch_protector_ret = "pac_ret" 33600cc4afSopenharmony_ci sources = [ 34600cc4afSopenharmony_ci "log/src/app_log_wrapper.cpp", 35600cc4afSopenharmony_ci "utils/src/bundle_file_util.cpp", 36600cc4afSopenharmony_ci "utils/src/bundle_memory_guard.cpp", 37600cc4afSopenharmony_ci ] 38600cc4afSopenharmony_ci 39600cc4afSopenharmony_ci defines = [ 40600cc4afSopenharmony_ci "APP_LOG_TAG = \"BMS\"", 41600cc4afSopenharmony_ci "LOG_DOMAIN = 0xD001120", 42600cc4afSopenharmony_ci ] 43600cc4afSopenharmony_ci cflags = [ "-Os" ] 44600cc4afSopenharmony_ci cflags_cc = [ "-Os" ] 45600cc4afSopenharmony_ci if (use_musl) { 46600cc4afSopenharmony_ci if (musl_use_jemalloc && musl_use_jemalloc_dfx_intf) { 47600cc4afSopenharmony_ci defines += [ "CONFIG_USE_JEMALLOC_DFX_INTF" ] 48600cc4afSopenharmony_ci } 49600cc4afSopenharmony_ci } 50600cc4afSopenharmony_ci 51600cc4afSopenharmony_ci public_configs = [ ":appexecfwk_common_config" ] 52600cc4afSopenharmony_ci 53600cc4afSopenharmony_ci all_dependent_configs = [ ":bundle_all_dependent_config" ] 54600cc4afSopenharmony_ci 55600cc4afSopenharmony_ci external_deps = [ 56600cc4afSopenharmony_ci "c_utils:utils", 57600cc4afSopenharmony_ci "hilog:libhilog", 58600cc4afSopenharmony_ci ] 59600cc4afSopenharmony_ci 60600cc4afSopenharmony_ci subsystem_name = "bundlemanager" 61600cc4afSopenharmony_ci innerapi_tags = [ "platformsdk" ] 62600cc4afSopenharmony_ci part_name = "bundle_framework" 63600cc4afSopenharmony_ci} 64