• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2025 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("//build/config/components/ets_frontend/ets2abc_config.gni")
15import("//build/ohos.gni")
16
17ohos_shared_library("intl_ani") {
18  include_dirs = [
19    "./include",
20    "../i18n/include",
21  ]
22  sources = [
23    "../i18n/src/variable_converter.cpp",
24    "./src/intl_addon.cpp",
25    "./src/locale_info_addon.cpp",
26    "./src/number_format_addon.cpp",
27  ]
28  deps = [ "../../../../frameworks/intl:intl_util" ]
29  external_deps = [
30    "hilog:libhilog",
31    "icu:shared_icuuc",
32    "libphonenumber:phonenumber_standard",
33    "libpng:libpng",
34    "libxml2:libxml2",
35    "runtime_core:ani",
36  ]
37  part_name = "i18n"
38  subsystem_name = "global"
39}
40
41generate_static_abc("intl") {
42  base_url = "./ets"
43  files = [ "./ets/@ohos.intl.ets" ]
44  is_boot_abc = "True"
45  device_dst_file = "system/framework/intl.abc"
46}
47
48ohos_prebuilt_etc("intl_etc") {
49  source = "$target_out_dir/intl.abc"
50  module_install_dir = "framework"
51  part_name = "i18n"
52  subsystem_name = "global"
53  deps = [ ":intl" ]
54}
55