1# Copyright (c) 2023 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
17config("form_render_config") {
18  visibility = [ ":*" ]
19  include_dirs = [
20    "$ace_root/frameworks",
21    "include/",
22  ]
23  cflags = []
24  if (target_cpu == "arm") {
25    cflags += [ "-DBINDER_IPC_32BIT" ]
26  }
27}
28
29ohos_shared_library("ace_form_render") {
30  if (current_os == "ohos") {
31    sanitize = {
32      integer_overflow = true
33      boundary_sanitize = true
34      debug = ace_sanitize_debug
35    }
36  }
37  sources = [
38    "$ace_root/interfaces/inner_api/form_render/src/form_renderer.cpp",
39    "$ace_root/interfaces/inner_api/form_render/src/form_renderer_delegate_impl.cpp",
40    "$ace_root/interfaces/inner_api/form_render/src/form_renderer_delegate_proxy.cpp",
41    "$ace_root/interfaces/inner_api/form_render/src/form_renderer_delegate_stub.cpp",
42    "$ace_root/interfaces/inner_api/form_render/src/form_renderer_dispatcher_impl.cpp",
43    "$ace_root/interfaces/inner_api/form_render/src/form_renderer_dispatcher_proxy.cpp",
44    "$ace_root/interfaces/inner_api/form_render/src/form_renderer_dispatcher_stub.cpp",
45    "$ace_root/interfaces/inner_api/form_render/src/form_renderer_group.cpp",
46  ]
47
48  configs = [
49    "$ace_root:ace_config",
50    "$ace_root:ace_coverage_config",
51  ]
52
53  public_configs = [ ":form_render_config" ]
54
55  deps = [ "$ace_root/interfaces/inner_api/ace:ace_uicontent" ]
56
57  external_deps = [
58    "ability_base:configuration",
59    "ability_base:want",
60    "ability_runtime:ability_context_native",
61    "ability_runtime:runtime",
62    "c_utils:utils",
63    "eventhandler:libeventhandler",
64    "form_fwk:form_manager",
65    "graphic_2d:librender_service_client",
66    "hilog:libhilog",
67    "input:libmmi-client",
68    "ipc:ipc_core",
69    "napi:ace_napi",
70    "window_manager:libwm",
71  ]
72
73  subsystem_name = ace_engine_subsystem
74  innerapi_tags = [ "platformsdk_indirect" ]
75  part_name = ace_engine_part
76}
77