• 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.
13import("//build/ohos.gni")
14import("//build/ohos/ace/ace.gni")
15import("//foundation/distributeddatamgr/relational_store/relational_store.gni")
16
17group("build_module") {
18  deps = [ ":rdb_obs_mgr_adapter" ]
19}
20
21ohos_shared_library("rdb_obs_mgr_adapter") {
22  branch_protector_ret = "pac_ret"
23  sanitize = {
24    boundary_sanitize = true
25    ubsan = true
26    cfi = true
27    cfi_cross_dso = true
28    debug = false
29  }
30
31  ldflags = [ "-Wl,--exclude-libs,ALL" ]
32  cflags_cc = [ "-fvisibility=hidden" ]
33
34  include_dirs = [
35    "${relational_store_common_path}/include",
36    "${relational_store_innerapi_path}/rdb/include",
37  ]
38
39  sources = [ "${relational_store_native_path}/obs_mgr_adapter/obs_mgr_adapter.cpp" ]
40
41  external_deps = [
42    "ability_base:zuri",
43    "ability_runtime:dataobs_manager",
44    "c_utils:utils",
45    "hilog:libhilog",
46    "ipc:ipc_core",
47  ]
48  subsystem_name = "distributeddatamgr"
49  part_name = "relational_store"
50}
51