122736c2fSopenharmony_ci# Copyright (c) 2024 Huawei Device Co., Ltd.
222736c2fSopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
322736c2fSopenharmony_ci# you may not use this file except in compliance with the License.
422736c2fSopenharmony_ci# You may obtain a copy of the License at
522736c2fSopenharmony_ci#
622736c2fSopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
722736c2fSopenharmony_ci#
822736c2fSopenharmony_ci# Unless required by applicable law or agreed to in writing, software
922736c2fSopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
1022736c2fSopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1122736c2fSopenharmony_ci# See the License for the specific language governing permissions and
1222736c2fSopenharmony_ci# limitations under the License.
1322736c2fSopenharmony_ci
1422736c2fSopenharmony_ciimport("//base/inputmethod/imf/inputmethod.gni")
1522736c2fSopenharmony_ciimport("//build/ohos.gni")
1622736c2fSopenharmony_ci
1722736c2fSopenharmony_ciconfig("imf_file_config") {
1822736c2fSopenharmony_ci  include_dirs = [
1922736c2fSopenharmony_ci    "include",
2022736c2fSopenharmony_ci    "${inputmethod_path}/common/include",
2122736c2fSopenharmony_ci  ]
2222736c2fSopenharmony_ci}
2322736c2fSopenharmony_ci
2422736c2fSopenharmony_ciohos_static_library("imf_file_static") {
2522736c2fSopenharmony_ci  branch_protector_ret = "pac_ret"
2622736c2fSopenharmony_ci  sanitize = {
2722736c2fSopenharmony_ci    cfi = true
2822736c2fSopenharmony_ci    cfi_cross_dso = true
2922736c2fSopenharmony_ci    debug = false
3022736c2fSopenharmony_ci  }
3122736c2fSopenharmony_ci  sources = [ "src/file_operator.cpp" ]
3222736c2fSopenharmony_ci  public_configs = [ ":imf_file_config" ]
3322736c2fSopenharmony_ci
3422736c2fSopenharmony_ci  cflags_cc = [ "-fvisibility=hidden" ]
3522736c2fSopenharmony_ci
3622736c2fSopenharmony_ci  external_deps = [
3722736c2fSopenharmony_ci    "c_utils:utils",
3822736c2fSopenharmony_ci    "config_policy:configpolicy_util",
3922736c2fSopenharmony_ci    "hilog:libhilog",
4022736c2fSopenharmony_ci  ]
4122736c2fSopenharmony_ci  subsystem_name = "inputmethod"
4222736c2fSopenharmony_ci  part_name = "imf"
4322736c2fSopenharmony_ci}
44