• 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")
16
17template("pa_backend") {
18  forward_variables_from(invoker, "*")
19
20  ohos_source_set(target_name) {
21    subsystem_name = ace_engine_subsystem
22    part_name = ace_engine_part
23    configs = [ "$ace_root:ace_config" ]
24
25    deps = []
26
27    include_dirs = [
28      "$ability_runtime_services_path/common/include",
29      "$ability_runtime_path/interfaces/kits/native/ability/native",
30      "$ability_runtime_inner_api_path/ability_manager/include",
31      "$ability_runtime_services_path/abilitymgr/include",
32      "$ability_runtime_services_path/common/include",
33      "$ability_runtime_napi_path/context",
34    ]
35    external_deps = [
36      "ability_base:want",
37      "ability_base:zuri",
38      "ability_runtime:abilitykit_native",
39      "ability_runtime:appkit_native",
40      "bundle_framework:appexecfwk_core",
41      "c_utils:utils",
42      "eventhandler:libeventhandler",
43      "hilog:libhilog",
44      "i18n:intl_util",
45      "ipc:ipc_core",
46      "ipc:ipc_napi",
47      "napi:ace_napi",
48      "relational_store:native_dataability",
49      "relational_store:native_rdb",
50      "safwk:system_ability_fwk",
51    ]
52
53    sources = [ "pa_backend.cpp" ]
54
55    sources += [ "engine/common/js_backend_engine_loader.cpp" ]
56  }
57}
58
59foreach(item, ace_platforms) {
60  pa_backend("pa_backend_" + item.name) {
61    config = {
62    }
63
64    if (defined(item.config)) {
65      config = item.config
66    }
67  }
68}
69