Files
bundlemanager_bundle_framew…/frameworks/bundle_lite/BUILD.gn
T
Lotol 608144833b 绝对路径部件化修改
Signed-off-by: Lotol <linxiangzhi@huawei.com>
Change-Id: I58270772dcc897693cdf423c72a825e39dd4bec4
2023-05-06 02:59:51 +00:00

135 lines
4.5 KiB
Plaintext

# Copyright (c) 2020 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/lite/config/component/lite_component.gni")
import("//build/lite/ndk/ndk.gni")
import(
"//foundation/bundlemanager/bundle_framework_lite/bundle_framework_lite.gni")
generate_notice_file("bundle_notice_file") {
module_name = "bundle"
module_source_dir_list = [
"//third_party/bounds_checking_function",
"//third_party/cJSON",
]
}
lite_component("appexecfwk_kits_lite") {
features = [ ":bundle" ]
}
lite_library("bundle") {
if (ohos_kernel_type == "liteos_m") {
target_type = "static_library"
sources = [
"src/ability_info.cpp",
"src/ability_info_utils.cpp",
"src/bundle_info.cpp",
"src/bundle_info_utils.cpp",
"src/element_name.cpp",
"src/module_info.cpp",
"src/module_info_utils.cpp",
"src/slite/bundle_manager.cpp",
"src/slite/bundle_manager_inner.cpp",
"src/slite/bundlems_slite_client.cpp",
]
public_deps = [
"${aafwk_lite_path}/frameworks/want_lite:want",
"${hilog_lite_path}/frameworks/featured:hilog_static",
]
include_dirs = [
"${appexecfwk_lite_path}/services/bundlemgr_lite/include",
"${appexecfwk_lite_path}/interfaces/inner_api/bundlemgr_lite/slite",
"${appexecfwk_lite_path}/interfaces/inner_api/bundlemgr_lite",
"${appexecfwk_lite_path}/interfaces/kits/bundle_lite/slite",
"${appexecfwk_lite_path}/interfaces/kits/bundle_lite",
"${appexecfwk_lite_path}/utils/bundle_lite",
"${appexecfwk_lite_path}/frameworks/bundle_lite/include",
"${hilog_lite_path}/interfaces/native/kits/hilog_lite",
"${permission_lite_path}/interfaces/kits",
"${permission_lite_path}/services/pms/include",
"${aafwk_lite_path}/frameworks/want_lite/include",
"${aafwk_lite_path}/interfaces/kits/want_lite",
"${aafwk_lite_path}/interfaces/kits/ability_lite/slite",
"${aafwk_lite_path}/interfaces/inner_api/abilitymgr_lite",
"${samgr_lite_path}/interfaces/kits/samgr",
"${samgr_lite_path}/interfaces/kits/registry",
"//third_party/bounds_checking_function/include",
"${utils_lite_path}/include",
"${utils_lite_path}/memory/include",
"//third_party/cJSON",
]
} else {
target_type = "shared_library"
sources = [
"src/ability_info.cpp",
"src/ability_info_utils.cpp",
"src/bundle_callback.cpp",
"src/bundle_callback_utils.cpp",
"src/bundle_info.cpp",
"src/bundle_info_utils.cpp",
"src/bundle_manager.cpp",
"src/bundle_self_callback.cpp",
"src/convert_utils.cpp",
"src/element_name.cpp",
"src/module_info.cpp",
"src/module_info_utils.cpp",
"src/token_generate.cpp",
]
deps = [
"${aafwk_lite_path}/frameworks/want_lite:want",
"${hilog_lite_path}/frameworks/featured:hilog_shared",
"${permission_lite_path}/services/pms_client:pms_client",
]
include_dirs = [
"include",
"${permission_lite_path}/interfaces/kits",
"${permission_lite_path}/services/pms/include",
"${aafwk_lite_path}/frameworks/want_lite/include",
"${aafwk_lite_path}/interfaces/kits/want_lite",
"${aafwk_lite_path}/interfaces/inner_api/abilitymgr_lite",
"${appexecfwk_lite_path}/interfaces/inner_api/bundlemgr_lite",
"${appexecfwk_lite_path}/interfaces/kits/bundle_lite",
"${appexecfwk_lite_path}/utils/bundle_lite",
"${communication_path}/ipc/interfaces/innerkits/c/ipc/include",
"${samgr_lite_path}/interfaces/kits/samgr",
"${samgr_lite_path}/interfaces/kits/registry",
"//third_party/bounds_checking_function/include",
"${utils_lite_path}/include",
"//third_party/cJSON",
]
defines = [ "OHOS_APPEXECFWK_BMS_BUNDLEMANAGER" ]
}
if (board_toolchain_type != "iccarm") {
cflags = [
"-fPIC",
"-Wall",
"-Wno-format",
]
cflags_cc = cflags
}
}
ndk_lib("bundle_notes") {
lib_extension = ".so"
deps = [ ":bundle" ]
head_files = [ "${appexecfwk_lite_path}/interfaces/kits/bundle_lite" ]
}