• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2021 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")
15
16config("libintl_config") {
17  cflags = [
18    "-DHAVE_CONFIG_H",
19    "-Wno-sign-compare",
20    "-Wno-error",
21    "-DLOCALE_ALIAS_PATH=\"\"",
22    "-DLOCALEDIR=\"\"",
23    "-DLIBDIR=\"\"",
24    "-DIN_LIBINTL",
25    "-Wshadow",
26  ]
27}
28
29ohos_source_set("gettext_dynamic") {
30  sources = [
31    "//third_party/gettext/gettext-runtime/intl/bindtextdom.c",
32    "//third_party/gettext/gettext-runtime/intl/dcgettext.c",
33    "//third_party/gettext/gettext-runtime/intl/dcigettext.c",
34    "//third_party/gettext/gettext-runtime/intl/dcngettext.c",
35    "//third_party/gettext/gettext-runtime/intl/dgettext.c",
36    "//third_party/gettext/gettext-runtime/intl/dngettext.c",
37    "//third_party/gettext/gettext-runtime/intl/explodename.c",
38    "//third_party/gettext/gettext-runtime/intl/finddomain.c",
39    "//third_party/gettext/gettext-runtime/intl/gettext.c",
40    "//third_party/gettext/gettext-runtime/intl/hash-string.c",
41    "//third_party/gettext/gettext-runtime/intl/intl-compat.c",
42    "//third_party/gettext/gettext-runtime/intl/l10nflist.c",
43    "//third_party/gettext/gettext-runtime/intl/langprefs.c",
44    "//third_party/gettext/gettext-runtime/intl/loadmsgcat.c",
45    "//third_party/gettext/gettext-runtime/intl/localcharset.c",
46    "//third_party/gettext/gettext-runtime/intl/localealias.c",
47    "//third_party/gettext/gettext-runtime/intl/localename-table.c",
48    "//third_party/gettext/gettext-runtime/intl/localename.c",
49    "//third_party/gettext/gettext-runtime/intl/lock.c",
50    "//third_party/gettext/gettext-runtime/intl/log.c",
51    "//third_party/gettext/gettext-runtime/intl/ngettext.c",
52    "//third_party/gettext/gettext-runtime/intl/osdep.c",
53    "//third_party/gettext/gettext-runtime/intl/plural-exp.c",
54    "//third_party/gettext/gettext-runtime/intl/plural.c",
55    "//third_party/gettext/gettext-runtime/intl/printf-args.c",
56    "//third_party/gettext/gettext-runtime/intl/printf-parse.c",
57    "//third_party/gettext/gettext-runtime/intl/printf.c",
58    "//third_party/gettext/gettext-runtime/intl/relocatable.c",
59    "//third_party/gettext/gettext-runtime/intl/setlocale-lock.c",
60    "//third_party/gettext/gettext-runtime/intl/setlocale.c",
61    "//third_party/gettext/gettext-runtime/intl/setlocale_null.c",
62    "//third_party/gettext/gettext-runtime/intl/textdomain.c",
63    "//third_party/gettext/gettext-runtime/intl/threadlib.c",
64    "//third_party/gettext/gettext-runtime/intl/tsearch.c",
65    "//third_party/gettext/gettext-runtime/intl/vasnprintf.c",
66    "//third_party/gettext/gettext-runtime/intl/version.c",
67    "//third_party/gettext/gettext-runtime/intl/xsize.c",
68  ]
69
70  configs = [ ":libintl_config" ]
71  include_dirs = [
72    "//third_party/gettext/gettext-runtime",
73    "//third_party/gettext/gettext-runtime/intl",
74  ]
75}
76
77ohos_shared_library("libintl") {
78  deps = [ ":gettext_dynamic" ]
79  part_name = "multimedia_media_standard"
80  subsystem_name = "multimedia"
81}
82