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("//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_manager", 38 "ability_runtime:abilitykit_native", 39 "ability_runtime:app_context", 40 "ability_runtime:napi_base_context", 41 "ability_runtime:ui_extension", 42 "access_token:libaccesstoken_sdk", 43 "access_token:libprivacy_sdk", 44 "ace_engine:ace_uicontent", 45 "c_utils:utils", 46 "data_share:cj_data_share_predicates_ffi", 47 "data_share:datashare_consumer", 48 "hilog:libhilog", 49 "ipc:ipc_core", 50 "napi:ace_napi", 51 "napi:cj_bind_ffi", 52 "napi:cj_bind_native", 53 ] 54 55 defines = [ 56 "CONTACTSDATA_LOG_TAG = \"ContactsFfi\"", 57 "LOG_DOMAIN = 0xD001F09", 58 ] 59 60 public_deps = [] 61 innerapi_tags = [ "platformsdk" ] 62 part_name = "contacts_data" 63 subsystem_name = "applications" 64} 65## Build contact_cj.so }}} 66