1# Copyright (c) 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_napi_kit_config") { 18 include_dirs = [ "include" ] 19 20 cflags = [] 21 22 if (target_cpu == "arm") { 23 cflags += [ "-DBINDER_IPC_32BIT" ] 24 } 25 26 cflags += [ "-pipe" ] 27 28 cflags_cc = [ 29 "-Wdate-time", 30 "-Wformat=2", 31 "-Wfloat-equal", 32 "-Wshadow", 33 ] 34} 35 36ohos_shared_library("domain_account_napi") { 37 include_dirs = [] 38 39 configs = [ ":domain_account_napi_kit_config" ] 40 41 public_configs = [ ":domain_account_napi_kit_config" ] 42 43 sources = [ 44 "src/napi_domain_account_common.cpp", 45 "src/napi_domain_account_manager.cpp", 46 "src/napi_domain_account_module.cpp", 47 "src/napi_domain_auth_callback.cpp", 48 "src/napi_domain_server_manager.cpp", 49 ] 50 51 defines = [ 52 "ACCOUNT_LOG_TAG = \"DomainAccount\"", 53 "LOG_DOMAIN = 0xD001B00", 54 ] 55 56 deps = [ 57 "${account_napi_common_path}:account_napi_common", 58 "${domain_account_framework_path}:domain_account_innerkits", 59 ] 60 61 external_deps = [ 62 "ability_base:want", 63 "ability_runtime:abilitykit_native", 64 "ability_runtime:extensionkit_native", 65 "ability_runtime:napi_common", 66 "ability_runtime:wantagent_innerkits", 67 "c_utils:utils", 68 "hilog:libhilog", 69 "napi:ace_napi", 70 ] 71 72 if (!use_clang_coverage) { 73 version_script = "libnapi_account_innerkits.map" 74 } 75 subsystem_name = "account" 76 77 innerapi_tags = [ "platformsdk" ] 78 part_name = "os_account" 79} 80