# Copyright (c) 2021 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("//foundation/appexecfwk/standard/appexecfwk.gni") config("tools_bm_config") { include_dirs = [ "${aafwk_path}/interfaces/innerkits/want/include", "${aafwk_path}/interfaces/innerkits/base/include", "${aafwk_path}/interfaces/innerkits/want/include/ohos/aafwk/content", "${aafwk_path}/services/abilitymgr/include", "${aafwk_path}/services/common/include", "${aafwk_path}/tools/aa/include", "${appexecfwk_path}/common/log/include", "${appexecfwk_path}/interfaces/innerkits/libeventhandler/include", "//foundation/distributedschedule/samgr/interfaces/innerkits/samgr_proxy/include", "//foundation/distributedschedule/dmsfwk/services/dtbschedmgr/include", "//utils/native/base/include", "include", ] configs = [ "${appexecfwk_path}/services/bundlemgr:bundlemgr_common_config" ] } ohos_source_set("tools_bm_source_set") { sources = [ "${aafwk_path}/tools/aa/src/shell_command.cpp", "src/bundle_command.cpp", "src/main.cpp", "src/status_receiver_impl.cpp", ] public_configs = [ "${aafwk_path}/tools/aa:ability_command_config", ":tools_bm_config", ] cflags = [] if (target_cpu == "arm") { cflags += [ "-DBINDER_IPC_32BIT" ] } deps = [ "${aafwk_path}/interfaces/innerkits/want:want", "${aafwk_path}/services/abilitymgr:abilityms", "${appexecfwk_path}/common:libappexecfwk_common", "${appexecfwk_path}/interfaces/innerkits/appexecfwk_base:appexecfwk_base", "${appexecfwk_path}/interfaces/innerkits/appexecfwk_core:appexecfwk_core", "//foundation/distributedschedule/samgr/interfaces/innerkits/samgr_proxy:samgr_proxy", "//utils/native/base:utils", ] external_deps = [ "hiviewdfx_hilog_native:libhilog", "ipc:ipc_core", ] } ohos_executable("bm") { deps = [ ":tools_bm_source_set" ] install_enable = true subsystem_name = "appexecfwk" part_name = "appexecfwk_standard" } group("tools_bm") { deps = [ ":bm" ] }