Files
wuhy_irobot2013 b37ba22066 decouple ace_engine_lite from js_builtin
Signed-off-by: wuhy_irobot2013 <wuhuayang@huawei.com>
Change-Id: Ib338ed294314e456fbe30acf91dfdf1cb3e231b0
2021-08-12 17:13:59 +08:00

56 lines
1.9 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_common_root = "//foundation/ace/ace_engine_lite/frameworks/common"
ace_interface_root =
"//foundation/ace/ace_engine_lite/interfaces/innerkits/builtin"
ace_target_root = "//foundation/ace/ace_engine_lite/frameworks/targets"
native_engine_root = "//foundation/ace/ace_engine_lite/frameworks/native_engine"
lite_component("ace_native_engine_lite") {
features = [ ":ace_native_engine" ]
}
shared_library("ace_native_engine") {
include_dirs = [
"$ace_common_root/log",
"$ace_common_root/memory",
"$ace_interface_root/async",
"$ace_interface_root/base",
"$ace_interface_root/jsi",
"//base/hiviewdfx/hilog_lite/interfaces/native/kits",
"//third_party/jerryscript/jerry-core/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 = [
"$native_engine_root/async/js_async_work.cpp",
"$native_engine_root/async/message_queue_utils.cpp",
"$native_engine_root/jsi/jsi.cpp",
]
public_deps = [
"$ace_common_root:ace_common_lite",
"//third_party/jerryscript/jerry-core:jerry-core_shared",
]
}