# Copyright (c) 2024 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. import("//build/ohos.gni") import("../../../../os_account.gni") config("osaccount_ffi_kit_config") { include_dirs = [ "include" ] cflags = [] if (target_cpu == "arm") { cflags += [ "-DBINDER_IPC_32BIT" ] } cflags += [ "-pipe" ] cflags_cc = [ "-Wdate-time", "-Wformat=2", "-Wfloat-equal", "-Wshadow", ] defines = [ "ACCOUNT_LOG_TAG = \"OsAccountJsKit\"", "LOG_DOMAIN = 0xD001B00", ] } ohos_shared_library("cj_osaccount_ffi") { sanitize = { cfi = true cfi_cross_dso = true debug = false } configs = [ ":osaccount_ffi_kit_config" ] sources = [ "${os_account_ffi_kits_path}/src/cj_osaccount_ffi.cpp", "${os_account_ffi_kits_path}/src/osaccount_manager_impl.cpp", ] deps = [ "${common_path}:libaccount_common", "${innerkits_native_path}:libaccountkits", "${os_account_innerkits_native_path}:os_account_innerkits", ] external_deps = [ "ability_base:want", "c_utils:utils", "hilog:libhilog", "napi:cj_bind_ffi", "napi:cj_bind_native", ] innerapi_tags = [ "platformsdk" ] part_name = "os_account" subsystem_name = "account" }