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/distributeddatamgr/relational_store/relational_store.gni") 16 17ohos_shared_library("graphstore") { 18 sanitize = { 19 boundary_sanitize = true 20 ubsan = true 21 cfi = true 22 cfi_cross_dso = true 23 debug = false 24 } 25 cflags_cc = [ "-fvisibility=hidden" ] 26 include_dirs = [ 27 "${relational_store_common_path}/include", 28 "${relational_store_frameworks_path}/js/napi/common/include", 29 "${relational_store_frameworks_path}/js/napi/graphstore/include", 30 "${relational_store_native_path}/gdb/include", 31 "${relational_store_native_path}/rdb/include", 32 ] 33 sources = [ 34 "${relational_store_frameworks_path}/js/napi/common/src/js_ability.cpp", 35 "${relational_store_frameworks_path}/js/napi/common/src/js_scope.cpp", 36 "${relational_store_frameworks_path}/js/napi/common/src/js_utils.cpp", 37 "${relational_store_frameworks_path}/js/napi/common/src/js_uv_queue.cpp", 38 "${relational_store_frameworks_path}/js/napi/graphstore/src/entry_point.cpp", 39 "${relational_store_frameworks_path}/js/napi/graphstore/src/napi_async_call.cpp", 40 "${relational_store_frameworks_path}/js/napi/graphstore/src/napi_gdb_const_properties.cpp", 41 "${relational_store_frameworks_path}/js/napi/graphstore/src/napi_gdb_error.cpp", 42 "${relational_store_frameworks_path}/js/napi/graphstore/src/napi_gdb_js_utils.cpp", 43 "${relational_store_frameworks_path}/js/napi/graphstore/src/napi_gdb_store.cpp", 44 "${relational_store_frameworks_path}/js/napi/graphstore/src/napi_gdb_store_helper.cpp", 45 "${relational_store_frameworks_path}/js/napi/graphstore/src/napi_gdb_transaction.cpp", 46 ] 47 deps = [ "${relational_store_innerapi_path}/gdb:native_graphstore" ] 48 external_deps = [ 49 "ability_runtime:abilitykit_native", 50 "ability_runtime:extensionkit_native", 51 "ability_runtime:napi_base_context", 52 "c_utils:utils", 53 "eventhandler:libeventhandler", 54 "hilog:libhilog", 55 "hisysevent:libhisysevent", 56 "hitrace:hitrace_meter", 57 "napi:ace_napi", 58 ] 59 60 subsystem_name = "distributeddatamgr" 61 part_name = "relational_store" 62 relative_install_dir = "module/data" 63} 64