• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#Copyright (c) 2021 Huawei Device Co., Ltd.
2#Licensed under the Apache License, Version 2.0 (the "License");
3#you may not use this file except in compliance with the License.
4#You may obtain a copy of the License at
5#
6#    http://www.apache.org/licenses/LICENSE-2.0
7#
8#Unless required by applicable law or agreed to in writing, software
9#distributed under the License is distributed on an "AS IS" BASIS,
10#WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11#See the License for the specific language governing permissions and
12#limitations under the License.
13
14import("//build/lite/config/component/lite_component.gni")
15
16ace_frameworks_root = "//foundation/ace/ace_engine_lite/frameworks"
17ace_interface_root =
18    "//foundation/ace/ace_engine_lite/interfaces/innerkits/builtin"
19ace_target_root = "//foundation/ace/ace_engine_lite/frameworks/targets"
20
21lite_component("ace_module_manager_lite") {
22  features = [ ":ace_module_manager" ]
23}
24
25lite_library("ace_module_manager") {
26  if (ohos_kernel_type == "liteos_m") {
27    target_type = "static_library"
28  } else {
29    target_type = "shared_library"
30    cflags = [ "-Wall" ]
31    cflags_cc = cflags
32  }
33
34  include_dirs = [
35    "$ace_frameworks_root/common/log",
36    "$ace_frameworks_root/common/utils",
37    "$ace_frameworks_root/include/base",
38    "$ace_frameworks_root/native_engine/jsi",
39    "$ace_interface_root/base",
40    "$ace_interface_root/jsi",
41    "//base/hiviewdfx/hilog_lite/interfaces/native/kits",
42    "//third_party/jerryscript/jerry-core/include",
43    "//third_party/bounds_checking_function/include",
44  ]
45  deps = [ "$ace_target_root" ]
46
47  sources = [ "$ace_frameworks_root/module_manager/module_manager.cpp" ]
48
49  public_deps = [
50    "$ace_frameworks_root/common:ace_common_lite",
51    "$ace_frameworks_root/native_engine:ace_native_engine_lite",
52    "//foundation/multimedia/media_lite/interfaces/kits/player_lite/js/builtin:audio_lite_api",
53    "//utils/native/lite/js/builtin:ace_utils_kits",
54  ]
55
56  if (ohos_kernel_type == "liteos_m") {
57    public_deps += [
58      "//foundation/graphic/ui:ui",
59      "//third_party/bounds_checking_function:libsec_static",
60      "//third_party/jerryscript:jerry_engine",
61    ]
62  } else {
63    public_deps += [
64      "${appexecfwk_lite_path}/interfaces/kits/bundle_lite/js/builtin:capability_api",
65      "//base/powermgr/battery_lite/frameworks/js:ace_battery_kits",
66      "//base/security/huks/frameworks/crypto_lite/js/builtin:ace_kit_cipher",
67      "//foundation/communication/netstack/frameworks/js/builtin:http_lite_shared",
68      "//third_party/bounds_checking_function:libsec_shared",
69      "//third_party/jerryscript/jerry-core:jerry-core_shared",
70    ]
71  }
72}
73