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") 15import("../../../../appexecfwk.gni") 16 17ohos_shared_library("innerbundlemanager") { 18 branch_protector_ret = "pac_ret" 19 20 sanitize = { 21 boundary_sanitize = true 22 cfi = true 23 cfi_cross_dso = true 24 debug = false 25 integer_overflow = true 26 ubsan = true 27 } 28 29 include_dirs = [ "${kits_path}/js/common" ] 30 31 defines = [ 32 "APP_LOG_TAG = \"BMS\"", 33 "LOG_DOMAIN = 0xD001120", 34 ] 35 36 cflags = [ 37 "-Os", 38 "-fstack-protector-strong", 39 ] 40 41 cflags_cc = [ 42 "-Os", 43 "-fstack-protector-strong", 44 ] 45 46 sources = [] 47 48 deps = [ 49 "${base_path}:appexecfwk_base", 50 "${common_path}:libappexecfwk_common", 51 "${core_path}:appexecfwk_core", 52 "${kits_path}/js/common:bundle_napi_common", 53 ] 54 55 external_deps = [ 56 "c_utils:utils", 57 "hilog:libhilog", 58 "napi:ace_napi", 59 "samgr:samgr_proxy", 60 ] 61 public_external_deps = [ "libuv:uv" ] 62 if (bundle_framework_launcher) { 63 defines += [ "BUNDLE_FRAMEWORK_LAUNCHER" ] 64 sources += [ 65 "bundle_status_callback.cpp", 66 "js_launcher.cpp", 67 "js_launcher_mgr.cpp", 68 ] 69 external_deps += [ 70 "ability_base:want", 71 "common_event_service:cesfwk_core", 72 "common_event_service:cesfwk_innerkits", 73 "ipc:ipc_core", 74 ] 75 } else { 76 sources += [ "js_launcher_unsupported.cpp" ] 77 } 78 79 relative_install_dir = "module/bundle" 80 subsystem_name = "bundlemanager" 81 part_name = "bundle_framework" 82} 83