• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2023-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("//domains/advertising/oaid/oaid.gni")
15
16config("oaid_service_config") {
17  visibility = [ ":*" ]
18  include_dirs = [
19    "${innerkits_path}/include",
20    "../utils/native/include",
21    "oaid_manager/include",
22  ]
23}
24
25ohos_shared_library("oaid_service") {
26  branch_protector_ret = "pac_ret"
27  configs = [ "${oaid_utils_path}:utils_config" ]
28
29  public_configs = [ ":oaid_service_config" ]
30
31  sanitize = {
32    cfi = true
33    cfi_cross_dso = true
34    debug = false
35    boundary_sanitize = true
36    integer_overflow = true
37    ubsan = true
38  }
39
40  sources = [
41    "oaid_manager/src/bundle_mgr_helper.cpp",
42    "oaid_manager/src/oaid_death_recipient.cpp",
43    "oaid_manager/src/oaid_observer_manager.cpp",
44    "oaid_manager/src/oaid_remote_config_observer_proxy.cpp",
45    "oaid_manager/src/oaid_service.cpp",
46    "oaid_manager/src/oaid_service_stub.cpp",
47    "oaid_manager/src/connect_ads_stub.cpp",
48  ]
49
50  deps = [ "${oaid_utils_path}:oaid_utils" ]
51
52  external_deps = [
53    "ability_runtime:ability_connect_callback_stub",
54    "ability_runtime:extension_manager",
55    "access_token:libaccesstoken_sdk",
56    "access_token:libprivacy_sdk",
57    "access_token:libtokenid_sdk",
58    "bundle_framework:appexecfwk_base",
59    "bundle_framework:appexecfwk_core",
60    "cJSON:cjson",
61    "config_policy:configpolicy_util",
62    "eventhandler:libeventhandler",
63    "hilog:libhilog",
64    "ipc:ipc_single",
65    "kv_store:distributeddata_inner",
66    "openssl:libcrypto_shared",
67    "safwk:system_ability_fwk",
68    "samgr:samgr_proxy",
69  ]
70  part_name = "oaid"
71  subsystem_name = "advertising"
72}
73
74ohos_prebuilt_etc("oaid_service_config_json") {
75  source = "oaid_manager/resource/oaid_service_config.json"
76  relative_install_dir = "advertising/oaid"
77  part_name = "oaid"
78  subsystem_name = "advertising"
79}
80