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("//base/inputmethod/imf/inputmethod.gni") 15import("//build/ohos.gni") 16 17config("settings_data_config") { 18 include_dirs = [ 19 "include", 20 "${inputmethod_path}/common/include", 21 "${inputmethod_path}/services/include", 22 "${inputmethod_path}/services/adapter/settings_data_provider/common/include", 23 "${inputmethod_path}/services/json/include", 24 "${inputmethod_path}/frameworks/native/inputmethod_controller/include", 25 "${inputmethod_path}/frameworks/native/inputmethod_ability/include", 26 ] 27} 28 29ohos_static_library("settings_data_static") { 30 branch_protector_ret = "pac_ret" 31 sanitize = { 32 cfi = true 33 cfi_cross_dso = true 34 debug = false 35 } 36 sources = [ 37 "common/src/settings_data_observer.cpp", 38 "common/src/settings_data_utils.cpp", 39 "src/enable_ime_data_parser.cpp", 40 "src/security_mode_parser.cpp", 41 ] 42 43 public_configs = [ ":settings_data_config" ] 44 45 cflags_cc = [ "-fvisibility=hidden" ] 46 deps = [ 47 "${inputmethod_path}/services/json:imf_json_static", 48 "//third_party/cJSON:cjson", 49 ] 50 external_deps = [ 51 "ability_base:zuri", 52 "ability_runtime:dataobs_manager", 53 "bundle_framework:appexecfwk_core", 54 "c_utils:utils", 55 "data_share:datashare_common", 56 "data_share:datashare_consumer", 57 "hilog:libhilog", 58 "samgr:samgr_proxy", 59 ] 60 61 subsystem_name = "inputmethod" 62 part_name = "imf" 63} 64