2022-03-01 01:17:02 +00:00
|
|
|
# Copyright (c) 2021-2022 Huawei Device Co., Ltd.
|
2021-06-01 16:05:29 +00:00
|
|
|
# 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")
|
2022-04-27 02:25:02 +00:00
|
|
|
import("../bundletool.gni")
|
2021-06-01 16:05:29 +00:00
|
|
|
|
|
|
|
config("tools_bm_config") {
|
|
|
|
include_dirs = [
|
2022-01-16 09:03:13 +00:00
|
|
|
"include",
|
2022-01-13 14:07:03 +00:00
|
|
|
"${common_path}/log/include",
|
2022-05-05 07:03:11 +00:00
|
|
|
"${kits_path}/js/bundlemgr",
|
2022-01-13 14:07:03 +00:00
|
|
|
"//utils/system/safwk/native/include",
|
2021-06-01 16:05:29 +00:00
|
|
|
]
|
2022-01-17 12:36:22 +00:00
|
|
|
|
|
|
|
defines = [
|
|
|
|
"APP_LOG_TAG = \"BundleTool\"",
|
|
|
|
"LOG_DOMAIN = 0xD001120",
|
|
|
|
]
|
2021-06-01 16:05:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
ohos_source_set("tools_bm_source_set") {
|
|
|
|
sources = [
|
2022-01-13 14:07:03 +00:00
|
|
|
"${common_path}/log/src/app_log_wrapper.cpp",
|
2022-05-05 07:03:11 +00:00
|
|
|
"${kits_path}/js/bundlemgr/bundle_death_recipient.cpp",
|
2021-06-01 16:05:29 +00:00
|
|
|
"src/bundle_command.cpp",
|
|
|
|
"src/main.cpp",
|
2022-01-17 09:16:33 +00:00
|
|
|
"src/shell_command.cpp",
|
2021-06-01 16:05:29 +00:00
|
|
|
"src/status_receiver_impl.cpp",
|
|
|
|
]
|
|
|
|
|
2022-01-16 09:03:13 +00:00
|
|
|
public_configs = [ ":tools_bm_config" ]
|
2021-06-01 16:05:29 +00:00
|
|
|
|
|
|
|
cflags = []
|
|
|
|
if (target_cpu == "arm") {
|
|
|
|
cflags += [ "-DBINDER_IPC_32BIT" ]
|
|
|
|
}
|
|
|
|
|
|
|
|
external_deps = [
|
2022-02-10 00:49:08 +00:00
|
|
|
"ability_base:want",
|
2022-01-16 09:03:13 +00:00
|
|
|
"bundle_framework:appexecfwk_base",
|
|
|
|
"bundle_framework:appexecfwk_core",
|
2021-06-01 16:05:29 +00:00
|
|
|
"hiviewdfx_hilog_native:libhilog",
|
|
|
|
"ipc:ipc_core",
|
2022-05-05 08:02:31 +00:00
|
|
|
"os_account:os_account_innerkits",
|
2022-04-28 12:27:58 +00:00
|
|
|
"resource_management:global_resmgr",
|
2022-01-13 14:07:03 +00:00
|
|
|
"samgr_standard:samgr_proxy",
|
2022-02-09 07:14:50 +00:00
|
|
|
"startup_l2:syspara",
|
2022-01-13 14:07:03 +00:00
|
|
|
"utils_base:utils",
|
2021-06-01 16:05:29 +00:00
|
|
|
]
|
2022-02-24 01:19:32 +00:00
|
|
|
|
|
|
|
part_name = "bundle_tool"
|
2021-06-01 16:05:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
ohos_executable("bm") {
|
|
|
|
deps = [ ":tools_bm_source_set" ]
|
|
|
|
|
|
|
|
install_enable = true
|
2021-07-15 02:58:26 +00:00
|
|
|
|
2022-05-19 07:51:37 +00:00
|
|
|
subsystem_name = "bundlemanager"
|
2022-01-13 14:07:03 +00:00
|
|
|
part_name = "bundle_tool"
|
2021-06-01 16:05:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
group("tools_bm") {
|
|
|
|
deps = [ ":bm" ]
|
|
|
|
}
|