1# Copyright (c) 2022-2023 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("../../os_account.gni") 16 17config("domain_account_innnerkits_config") { 18 visibility = [ ":*" ] 19 20 cflags = [] 21 if (target_cpu == "arm") { 22 cflags += [ "-DBINDER_IPC_32BIT" ] 23 } 24 25 cflags += [ "-pipe" ] 26 cflags_cc = [ 27 "-Wdate-time", 28 "-Wformat=2", 29 "-Wfloat-equal", 30 "-Wshadow", 31 ] 32 33 defines = [ 34 "ACCOUNT_LOG_TAG = \"DomainAccountFwk\"", 35 "LOG_DOMAIN = 0xD001B00", 36 ] 37} 38 39config("domain_account_innerkits_public_config") { 40 visibility = [ ":*" ] 41 42 include_dirs = [ 43 "include", 44 "${common_path}/include", 45 "${domain_account_interfaces_native_path}/include", 46 ] 47} 48 49ohos_shared_library("domain_account_innerkits") { 50 branch_protector_ret = "pac_ret" 51 52 sanitize = { 53 cfi = true 54 cfi_cross_dso = true 55 debug = false 56 } 57 58 sources = [ 59 "src/domain_account_callback_adapters.cpp", 60 "src/domain_account_callback_client.cpp", 61 "src/domain_account_callback_proxy.cpp", 62 "src/domain_account_callback_service.cpp", 63 "src/domain_account_callback_stub.cpp", 64 "src/domain_account_client.cpp", 65 "src/domain_account_common.cpp", 66 "src/domain_account_plugin_service.cpp", 67 "src/domain_account_plugin_stub.cpp", 68 "src/domain_account_proxy.cpp", 69 "src/domain_account_status_listener_manager.cpp", 70 ] 71 72 configs = [ ":domain_account_innnerkits_config" ] 73 74 public_configs = [ ":domain_account_innerkits_public_config" ] 75 76 deps = [ 77 "${common_path}:libaccount_common", 78 "${innerkits_native_path}:libaccountkits", 79 ] 80 81 external_deps = [ 82 "ability_base:want", 83 "c_utils:utils", 84 "hilog:libhilog", 85 "ipc:ipc_single", 86 ] 87 88 innerapi_tags = [ "platformsdk" ] 89 subsystem_name = "account" 90 part_name = "os_account" 91} 92