• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2024 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/global/i18n/i18n.gni")
15import("//build/ohos.gni")
16
17ohos_shared_library("cj_intl_ffi") {
18  include_dirs = [
19    "../../../frameworks/intl/include",
20    "../../js/kits/include",
21    "include",
22  ]
23
24  defines = []
25
26  deps = [ "../../../frameworks/intl:intl_util" ]
27  external_deps = [
28    "c_utils:utils",
29    "common_event_service:cesfwk_innerkits",
30    "hilog:libhilog",
31    "icu:shared_icui18n",
32    "icu:shared_icuuc",
33    "ipc:ipc_core",
34    "libphonenumber:phonenumber_standard",
35    "libphonenumber:phonenumber_standard",
36    "libpng:libpng",
37    "libpng:libpng",
38    "libxml2:libxml2",
39    "napi:ace_napi",
40    "napi:cj_bind_ffi",
41    "napi:cj_bind_native",
42    "preferences:native_preferences",
43    "samgr:samgr_proxy",
44  ]
45  sources = [
46    "src/intl_ffi.cpp",
47    "src/intl_impl.cpp",
48  ]
49
50  if (i18n_support_app_preferred_language) {
51    defines += [ "SUPPORT_APP_PREFERRED_LANGUAGE" ]
52  }
53
54  innerapi_tags = [ "platformsdk" ]
55  subsystem_name = "global"
56  part_name = "i18n"
57}
58