Files
2021-09-11 14:40:50 +08:00

60 lines
2.3 KiB
Plaintext

#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/lite/config/component/lite_component.gni")
ace_frameworks_root = "//foundation/ace/ace_engine_lite/frameworks"
ace_interface_root =
"//foundation/ace/ace_engine_lite/interfaces/innerkits/builtin"
ace_target_root = "//foundation/ace/ace_engine_lite/frameworks/targets"
lite_component("ace_module_manager_lite") {
features = [ ":ace_module_manager" ]
}
shared_library("ace_module_manager") {
include_dirs = [
"$ace_frameworks_root/common/log",
"$ace_frameworks_root/common/utils",
"$ace_frameworks_root/include/base",
"$ace_frameworks_root/native_engine/jsi",
"$ace_interface_root/base",
"$ace_interface_root/jsi",
"//base/hiviewdfx/hilog_lite/interfaces/native/kits",
"//third_party/jerryscript/jerry-core/include",
"//third_party/bounds_checking_function/include",
]
if (ohos_kernel_type == "liteos_a" || ohos_kernel_type == "liteos_m") {
include_dirs += [ "$ace_target_root/liteos_a" ]
} else if (ohos_kernel_type == "linux") {
include_dirs += [ "$ace_target_root/linux" ]
}
cflags = [ "-Wall" ]
cflags_cc = cflags
sources = [ "$ace_frameworks_root/module_manager/module_manager.cpp" ]
public_deps = [
"$ace_frameworks_root/common:ace_common_lite",
"$ace_frameworks_root/native_engine:ace_native_engine_lite",
"${appexecfwk_lite_path}/interfaces/kits/bundle_lite/js/builtin:capability_api",
"//base/powermgr/battery_lite/interfaces/kits/js:ace_battery_kits",
"//base/security/huks/frameworks/crypto_lite/js/builtin:ace_kit_cipher",
"//foundation/multimedia/media_lite/interfaces/kits/player_lite/js/builtin:audio_lite_api",
"//third_party/bounds_checking_function:libsec_shared",
"//third_party/jerryscript/jerry-core:jerry-core_shared",
"//utils/native/lite/js/builtin:ace_utils_kits",
]
}