1# Copyright (c) 2024-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("//applications/standard/contacts_data/contact.gni") 15import("//build/ohos.gni") 16 17ohos_shared_library("contact_cj") { 18 sources = [ 19 "src/contacts.cpp", 20 "src/contacts_control.cpp", 21 "src/contacts_ffi.cpp", 22 "src/contacts_permission.cpp", 23 "src/contacts_utils.cpp", 24 ] 25 26 include_dirs = [ "include" ] 27 28 sanitize = { 29 cfi = true 30 cfi_cross_dso = true 31 debug = false 32 } 33 34 external_deps = [ 35 "ability_base:want", 36 "ability_base:zuri", 37 "ability_runtime:ability_connect_callback_stub", 38 "ability_runtime:ability_manager", 39 "ability_runtime:abilitykit_native", 40 "ability_runtime:app_context", 41 "ability_runtime:napi_base_context", 42 "ability_runtime:ui_extension", 43 "access_token:libaccesstoken_sdk", 44 "access_token:libprivacy_sdk", 45 "ace_engine:ace_uicontent", 46 "c_utils:utils", 47 "data_share:cj_data_share_predicates_ffi", 48 "data_share:datashare_consumer", 49 "hilog:libhilog", 50 "ipc:ipc_core", 51 "ipc:ipc_single", 52 "napi:ace_napi", 53 "napi:cj_bind_ffi", 54 "napi:cj_bind_native", 55 "samgr:samgr_proxy", 56 ] 57 58 defines = [ 59 "CONTACTSDATA_LOG_TAG = \"ContactsFfi\"", 60 "LOG_DOMAIN = 0xD001F09", 61 ] 62 63 public_deps = [] 64 innerapi_tags = [ "platformsdk" ] 65 part_name = "contacts_data" 66 subsystem_name = "applications" 67} 68## Build contact_cj.so }}} 69