mirror of
https://github.com/openharmony/bundlemanager_bundle_framework_lite.git
synced 2026-07-18 17:54:39 -04:00
092eb3fa6d
Signed-off-by: hanlu1@huawei.com <hanlu1@huawei.com>
139 lines
4.7 KiB
Plaintext
139 lines
4.7 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"
|
|
|
|
if (bundle_framework_lite_enable_ohos_bundle_manager_service_parse_metadata == true) {
|
|
defines = [ "_MINI_BMS_PARSE_METADATA_" ]
|
|
}
|
|
|
|
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" ]
|
|
}
|