• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2025 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")
15
16ohos_shared_library("libarkweb_utils") {
17  output_name = "arkweb_utils"
18  if (target_cpu == "arm64") {
19    branch_protector_ret = "pac_ret"
20  }
21
22  public_configs = [
23    ":arkweb_utils_public_interface"
24  ]
25
26  sources = [
27    "arkweb_utils.cpp",
28  ]
29
30  cflags = [
31    "-Wall",
32    "-Werror",
33    "-g3",
34  ]
35
36  defines = []
37  if (is_asan || use_hwasan) {
38    defines += [ "IS_ASAN" ]
39  }
40
41  if (target_cpu == "arm64") {
42    defines += [ "webview_arm64" ]
43  } else if (target_cpu == "arm") {
44    defines += [ "webview_arm" ]
45  } else if (target_cpu == "x86_64") {
46    defines += [ "webview_x86_64" ]
47  }
48
49  external_deps = [
50    "init:libbegetutil",
51    "hilog:libhilog",
52    "jsoncpp:jsoncpp",
53  ]
54
55  include_dirs = [
56    "../ohos_nweb/include/",
57    "../ohos_adapter/hiviewdfx_adapter/include/",
58  ]
59
60  innerapi_tags = [ "platformsdk" ]
61  part_name = "webview"
62  subsystem_name = "web"
63}
64
65
66config("arkweb_utils_public_interface") {
67  include_dirs = [ "./" ]
68}