1# Copyright (c) 2021-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("//build/config/components/ets_frontend/es2abc_config.gni") 15import("//build/ohos.gni") 16import("//build/ohos/ace/ace.gni") 17import("//foundation/ability/form_fwk/form_fwk.gni") 18 19config("fmskit_config") { 20 defines = [ "FMS_LOG_TAG = \"FmskitNative\"" ] 21} 22 23ohos_shared_library("cj_formBindingData_ffi") { 24 branch_protector_ret = "pac_ret" 25 sanitize = { 26 cfi = true 27 cfi_cross_dso = true 28 debug = false 29 } 30 31 include_dirs = [ "form_binding_data/include" ] 32 33 sources = [ 34 "form_binding_data/src/form_binding_data_common.cpp", 35 "form_binding_data/src/form_binding_data_ffi.cpp", 36 "form_binding_data/src/form_binding_data_impl.cpp", 37 ] 38 39 configs = [ ":fmskit_config" ] 40 41 deps = [ "${form_fwk_path}:form_manager" ] 42 43 external_deps = [ 44 "ability_runtime:abilitykit_native", 45 "ability_runtime:extensionkit_native", 46 "ability_runtime:runtime", 47 "c_utils:utils", 48 "common_event_service:cesfwk_innerkits", 49 "hilog:libhilog", 50 "ipc:ipc_core", 51 "napi:ace_napi", 52 ] 53 54 innerapi_tags = [ "platformsdk" ] 55 56 subsystem_name = "ability" 57 part_name = "form_fwk" 58} 59 60ohos_shared_library("cj_formProvider_ffi") { 61 branch_protector_ret = "pac_ret" 62 sanitize = { 63 cfi = true 64 cfi_cross_dso = true 65 debug = false 66 } 67 68 include_dirs = [ 69 "form_binding_data/include", 70 "form_provider/include", 71 ] 72 73 sources = [ 74 "form_provider/src/cj_form_provider.cpp", 75 "form_provider/src/cj_form_util.cpp", 76 ] 77 78 configs = [ ":fmskit_config" ] 79 80 deps = [ 81 ":cj_formBindingData_ffi", 82 "${form_fwk_napi_path}:formutil_napi", 83 "${form_fwk_path}:fmskit_native", 84 "${form_fwk_path}:form_manager", 85 ] 86 87 external_deps = [ 88 "ability_base:want", 89 "ability_runtime:abilitykit_native", 90 "ability_runtime:extensionkit_native", 91 "ability_runtime:napi_common", 92 "ability_runtime:runtime", 93 "access_token:libtokenid_sdk", 94 "bundle_framework:appexecfwk_base", 95 "c_utils:utils", 96 "common_event_service:cesfwk_innerkits", 97 "hilog:libhilog", 98 "ipc:ipc_single", 99 "napi:ace_napi", 100 ] 101 102 innerapi_tags = [ "platformsdk" ] 103 104 subsystem_name = "ability" 105 part_name = "form_fwk" 106} 107