• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2024 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/ability/ability_runtime/ability_runtime.gni")
16
17config("connect_server_manager_config") {
18  visibility = [ ":*" ]
19
20  defines = []
21  if (target_cpu == "arm64") {
22    defines += [ "_ARM64_" ]
23  }
24
25  if (target_cpu == "arm64") {
26    defines += [ "APP_USE_ARM64" ]
27  } else if (target_cpu == "arm") {
28    defines += [ "APP_USE_ARM" ]
29  } else if (target_cpu == "x86_64") {
30    defines += [ "APP_USE_X86_64" ]
31  }
32}
33
34config("connect_server_manager_public_config") {
35  visibility = [ ":*" ]
36  include_dirs = [ "include" ]
37}
38
39ohos_shared_library("connect_server_manager") {
40  sanitize = {
41    integer_overflow = true
42    ubsan = true
43    boundary_sanitize = true
44    cfi = true
45    cfi_cross_dso = true
46    cfi_vcall_icall_only = true
47    debug = false
48  }
49  branch_protector_ret = "pac_ret"
50
51  sources = [ "src/connect_server_manager.cpp" ]
52
53  external_deps = [
54    "ets_runtime:libark_jsruntime",
55    "hilog:libhilog",
56  ]
57
58  configs = [
59    ":connect_server_manager_config",
60    "${ability_runtime_services_path}/common:common_config",
61  ]
62
63  public_configs = [ ":connect_server_manager_public_config" ]
64
65  innerapi_tags = [ "platformsdk" ]
66  subsystem_name = "ability"
67  part_name = "ability_runtime"
68}
69