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("//build/ohos.gni")
15import("//build/ohos/ndk/ndk.gni")
16
17ohos_ndk_library("libicu_ndk") {
18  ndk_description_file = "./libicu.ndk.json"
19  min_compact_version = "12"
20  output_name = "icu"
21  system_capability = "SystemCapability.Global.I18n"
22  system_capability_headers = [
23    "unicode/parseerr.h",
24    "unicode/platform.h",
25    "unicode/ptypes.h",
26    "unicode/stringoptions.h",
27    "unicode/ubidi.h",
28    "unicode/ubrk.h",
29    "unicode/ucal.h",
30    "unicode/uchar.h",
31    "unicode/ucnv.h",
32    "unicode/ucnv_err.h",
33    "unicode/ucol.h",
34    "unicode/uconfig.h",
35    "unicode/udat.h",
36    "unicode/udisplaycontext.h",
37    "unicode/uenum.h",
38    "unicode/ufieldpositer.h",
39    "unicode/uidna.h",
40    "unicode/uloc.h",
41    "unicode/umachine.h",
42    "unicode/umisc.h",
43    "unicode/unorm2.h",
44    "unicode/unum.h",
45    "unicode/unumberformatter.h",
46    "unicode/uscript.h",
47    "unicode/uset.h",
48    "unicode/utrans.h",
49    "unicode/utypes.h",
50  ]
51  output_extension = "so"
52}
53
54ohos_ndk_headers("icu_unicode_header") {
55  dest_dir = "$ndk_headers_out_dir/unicode"
56  sources = [
57    "ndk_headers/unicode/parseerr.h",
58    "ndk_headers/unicode/platform.h",
59    "ndk_headers/unicode/ptypes.h",
60    "ndk_headers/unicode/stringoptions.h",
61    "ndk_headers/unicode/ubidi.h",
62    "ndk_headers/unicode/ubrk.h",
63    "ndk_headers/unicode/ucal.h",
64    "ndk_headers/unicode/uchar.h",
65    "ndk_headers/unicode/ucnv.h",
66    "ndk_headers/unicode/ucnv_err.h",
67    "ndk_headers/unicode/ucol.h",
68    "ndk_headers/unicode/uconfig.h",
69    "ndk_headers/unicode/udat.h",
70    "ndk_headers/unicode/udisplaycontext.h",
71    "ndk_headers/unicode/uenum.h",
72    "ndk_headers/unicode/ufieldpositer.h",
73    "ndk_headers/unicode/uidna.h",
74    "ndk_headers/unicode/uloc.h",
75    "ndk_headers/unicode/umachine.h",
76    "ndk_headers/unicode/umisc.h",
77    "ndk_headers/unicode/unorm2.h",
78    "ndk_headers/unicode/unum.h",
79    "ndk_headers/unicode/unumberformatter.h",
80    "ndk_headers/unicode/uscript.h",
81    "ndk_headers/unicode/uset.h",
82    "ndk_headers/unicode/utrans.h",
83    "ndk_headers/unicode/utypes.h",
84  ]
85}
86