• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2021-2022 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/ohos.gni")
15import("//foundation/arkui/ace_engine/ace_config.gni")
16import(
17    "//foundation/arkui/ace_engine/adapter/ohos/services/uiservice/uiservicems.gni")
18
19ohos_shared_library("plugincomponent") {
20  include_dirs = [
21    "$ace_root",
22    "$ace_root/frameworks",
23    "$ace_root/interfaces/inner_api/ace_kit/include",
24    "$ace_root/interfaces/inner_api/ui_service_manager/include",
25    "$root_out_dir/arkui/framework",
26  ]
27
28  sources = [
29    "js_plugin_callback.cpp",
30    "js_plugin_callback_mgr.cpp",
31    "js_plugin_component.cpp",
32    "js_plugin_util.cpp",
33    "js_plugin_want.cpp",
34  ]
35
36  defines = [
37    "OHOS_PLATFORM",
38    "USE_HILOG",
39  ]
40  sources += [ "$ace_root/adapter/ohos/osal/log_wrapper.cpp" ]
41
42  deps = [ "$ace_root/build:libace_compatible" ]
43
44  if (ace_engine_enable_uiservice_idl) {
45    public_deps = [ "$ace_root/interfaces/inner_api/ui_service_manager:uiservice_manager_interface_set" ]
46  }
47
48  external_deps = [
49    "ability_base:base",
50    "ability_base:want",
51    "ability_runtime:abilitykit_native",
52    "ability_runtime:extensionkit_native",
53    "access_token:libtokenid_sdk",
54    "bundle_framework:appexecfwk_core",
55    "c_utils:utils",
56    "hilog:libhilog",
57    "ipc:ipc_core",
58    "napi:ace_napi",
59  ]
60
61  relative_install_dir = "module"
62  subsystem_name = ace_engine_subsystem
63  part_name = ace_engine_part
64}
65