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 17ohos_shared_library("relational_store_crypt") { 18part_name = "relational_store" 19sanitize = { 20 boundary_sanitize = true 21 ubsan = true 22 cfi = true 23 cfi_cross_dso = true 24 debug = false 25} 26 27sources = [ 28 "${relational_store_native_path}/rdb_crypt/relational_store_crypt.cpp", 29] 30include_dirs = [ 31 "${relational_store_common_path}/include", 32 "${relational_store_innerapi_path}/rdb/include", 33 "${relational_store_native_path}/rdb_crypt", 34 "${relational_store_native_path}/rdb/include", 35 "${relational_store_native_path}/dfx/include", 36] 37ldflags = [ "-Wl,--exclude-libs,ALL" ] 38cflags_cc = [ "-fvisibility=hidden" ] 39 40external_deps = [ 41 "c_utils:utils", 42 "hilog:libhilog", 43 "huks:libhukssdk", 44] 45subsystem_name = "distributeddatamgr" 46}