• 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}/services/include",
21    "${inputmethod_path}/services/adapter/settings_data_provider/common/include",
22    "${inputmethod_path}/frameworks/native/inputmethod_controller/include",
23    "${inputmethod_path}/frameworks/native/inputmethod_ability/include",
24  ]
25}
26
27ohos_static_library("settings_data_static") {
28  branch_protector_ret = "pac_ret"
29  sanitize = {
30    cfi = true
31    cfi_cross_dso = true
32    debug = false
33  }
34  sources = [
35    "common/src/settings_data_observer.cpp",
36    "common/src/settings_data_utils.cpp",
37    "src/enable_ime_data_parser.cpp",
38    "src/security_mode_parser.cpp",
39  ]
40
41  public_configs = [ ":settings_data_config" ]
42
43  cflags_cc = [ "-fvisibility=hidden" ]
44
45  external_deps = [
46    "ability_base:zuri",
47    "ability_runtime:dataobs_manager",
48    "bundle_framework:appexecfwk_core",
49    "c_utils:utils",
50    "data_share:datashare_common",
51    "data_share:datashare_consumer",
52    "hilog:libhilog",
53  ]
54
55  subsystem_name = "inputmethod"
56  part_name = "imf"
57}
58