• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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/os_account_adapter/include",
23    "${inputmethod_path}/services/adapter/settings_data_provider/common/include",
24    "${inputmethod_path}/services/json/include",
25    "${inputmethod_path}/frameworks/native/inputmethod_controller/include",
26    "${inputmethod_path}/frameworks/native/inputmethod_ability/include",
27  ]
28}
29
30ohos_static_library("settings_data_static") {
31  branch_protector_ret = "pac_ret"
32  sanitize = {
33    cfi = true
34    cfi_cross_dso = true
35    debug = false
36  }
37  sources = [
38    "common/src/settings_data_observer.cpp",
39    "common/src/settings_data_utils.cpp",
40    "src/ime_enabled_info_manager.cpp",
41    "src/enable_upgrade_manager.cpp",
42    "src/numkey_apps_manager.cpp",
43  ]
44
45  public_configs = [ ":settings_data_config" ]
46
47  cflags_cc = [ "-fvisibility=hidden" ]
48  deps = [
49    "${inputmethod_path}/services/file:imf_file_static",
50    "${inputmethod_path}/services/json:imf_json_static",
51  ]
52  external_deps = [
53    "ability_base:zuri",
54    "ability_runtime:dataobs_manager",
55    "bundle_framework:appexecfwk_base",
56    "bundle_framework:appexecfwk_core",
57    "cJSON:cjson",
58    "c_utils:utils",
59    "config_policy:configpolicy_util",
60    "data_share:datashare_common",
61    "data_share:datashare_consumer",
62    "eventhandler:libeventhandler",
63    "hilog:libhilog",
64    "init:libbegetutil",
65    "input:libmmi-client",
66    "ipc:ipc_single",
67    "os_account:os_account_innerkits",
68    "resource_management:global_resmgr",
69    "samgr:samgr_proxy",
70  ]
71
72  subsystem_name = "inputmethod"
73  part_name = "imf"
74}
75