• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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("//domains/cloud/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  configs = [ "${oaid_utils_path}:utils_config" ]
27
28  public_configs = [
29    ":oaid_service_config"
30  ]
31
32  sources = [
33    "oaid_manager/src/oaid_service.cpp",
34    "oaid_manager/src/oaid_service_stub.cpp",
35    "oaid_manager/src/bundle_mgr_helper.cpp",
36    "oaid_manager/src/oaid_death_recipient.cpp"
37  ]
38
39  deps = [
40    "${oaid_utils_path}:oaid_utils",
41    "//third_party/openssl:libcrypto_shared",
42  ]
43
44  external_deps = [
45    "hilog:libhilog",
46    "ipc:ipc_single",
47    "safwk:system_ability_fwk",
48    "samgr:samgr_proxy",
49    "bundle_framework:appexecfwk_core",
50    "bundle_framework:appexecfwk_base",
51    "access_token:libaccesstoken_sdk",
52    "access_token:libprivacy_sdk",
53    "access_token:libtokenid_sdk",
54    "kv_store:distributeddata_inner",
55    "config_policy:configpolicy_util",
56  ]
57  part_name = "oaid"
58  subsystem_name = "advertising"
59}
60
61ohos_prebuilt_etc("oaid_service_config_json") {
62  source = "oaid_manager/resource/oaid_service_config.json"
63  relative_install_dir = "cloud/oaid"
64  part_name = "oaid"
65  subsystem_name = "advertising"
66}