Debian Codegraph @

config/external/icu/common/moz.build

raw
1 # -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
2 # vim: set filetype=python:
3 # This Source Code Form is subject to the terms of the Mozilla Public
4 # License, v. 2.0. If a copy of the MPL was not distributed with this
5 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
6
7 Library("icuuc")
8 FINAL_LIBRARY = "icu"
9
10 DEFINES["U_COMMON_IMPLEMENTATION"] = True
11 DEFINES["_LIBCPP_DISABLE_DEPRECATION_WARNINGS"] = True
12
13 LOCAL_INCLUDES += ["/intl/icu/source/i18n"]
14
15 include("../defs.mozbuild")
16 include("sources.mozbuild")
17
18 SOURCES += sources
19
20 if CONFIG["TARGET_ENDIANNESS"] == "big":
21 HostLibrary("host_icuuc")
22 HOST_DEFINES["U_COMMON_IMPLEMENTATION"] = True
23 HOST_SOURCES += sources
24 HOST_SOURCES += other_sources
25
26 # Clang 16 added an error that can be downgraded, but won't be downgradable
27 # in clang 17.
28 # https://unicode-org.atlassian.net/browse/ICU-22113
29 if (
30 CONFIG["CC_TYPE"] in ("clang", "clang-cl")
31 and int(CONFIG["CC_VERSION"].split(".")[0]) == 16
32 ):
33 SOURCES["/intl/icu/source/common/ubidi.cpp"].flags += [
34 "-Wno-error=enum-constexpr-conversion"
35 ]