Bug 1677775 - reformat .mozbuild files with Black r=linter-reviewers,geckoview-reviewers,firefox-build-system-reviewers,ahal,glandium,owlish,sylvestre

#ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D193007
This commit is contained in:
Logan Rosen 2023-12-08 04:26:45 +00:00
parent e61d06e995
commit 141305b4e4
42 changed files with 2672 additions and 2633 deletions

View file

@ -3,10 +3,10 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this # License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
include('/toolkit/toolkit.mozbuild') include("/toolkit/toolkit.mozbuild")
DIRS += ['/%s' % CONFIG['MOZ_BRANDING_DIRECTORY']] DIRS += ["/%s" % CONFIG["MOZ_BRANDING_DIRECTORY"]]
# Never add dirs after browser because they apparently won't get # Never add dirs after browser because they apparently won't get
# packaged properly on Mac. # packaged properly on Mac.
DIRS += ['/browser'] DIRS += ["/browser"]

View file

@ -4,33 +4,34 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this # License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
@template @template
def FirefoxBranding(): def FirefoxBranding():
if CONFIG['MOZ_BRANDING_DIRECTORY'] == 'browser/branding/official': if CONFIG["MOZ_BRANDING_DIRECTORY"] == "browser/branding/official":
JS_PREFERENCE_PP_FILES += [ JS_PREFERENCE_PP_FILES += [
'pref/firefox-branding.js', "pref/firefox-branding.js",
] ]
else: else:
JS_PREFERENCE_FILES += [ JS_PREFERENCE_FILES += [
'pref/firefox-branding.js', "pref/firefox-branding.js",
] ]
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows': if CONFIG["MOZ_WIDGET_TOOLKIT"] == "windows":
FINAL_TARGET_FILES['..'] += [ FINAL_TARGET_FILES[".."] += [
'firefox.VisualElementsManifest.xml', "firefox.VisualElementsManifest.xml",
'private_browsing.VisualElementsManifest.xml', "private_browsing.VisualElementsManifest.xml",
] ]
FINAL_TARGET_FILES.VisualElements += [ FINAL_TARGET_FILES.VisualElements += [
'PrivateBrowsing_150.png', "PrivateBrowsing_150.png",
'PrivateBrowsing_70.png', "PrivateBrowsing_70.png",
'VisualElements_150.png', "VisualElements_150.png",
'VisualElements_70.png', "VisualElements_70.png",
] ]
elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gtk': elif CONFIG["MOZ_WIDGET_TOOLKIT"] == "gtk":
FINAL_TARGET_FILES.chrome.icons.default += [ FINAL_TARGET_FILES.chrome.icons.default += [
'default128.png', "default128.png",
'default16.png', "default16.png",
'default32.png', "default32.png",
'default48.png', "default48.png",
'default64.png', "default64.png",
] ]

View file

@ -5,7 +5,6 @@
# file, You can obtain one at http://mozilla.org/MPL/2.0/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
HOST_SOURCES += [ HOST_SOURCES += [
# 'AlphaChecker.cpp',
"NonStdMoveChecker.cpp", "NonStdMoveChecker.cpp",
'TempRefPtrChecker.cpp', "TempRefPtrChecker.cpp",
] ]

View file

@ -5,7 +5,6 @@
# file, You can obtain one at http://mozilla.org/MPL/2.0/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
SOURCES += [ SOURCES += [
# 'AlphaTest.cpp',
"TestNonStdMove.cpp", "TestNonStdMove.cpp",
'TestTempRefPtr.cpp', "TestTempRefPtr.cpp",
] ]

View file

@ -4,9 +4,10 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this # License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
@template @template
def GeckoBinary(linkage='dependent', mozglue=None): def GeckoBinary(linkage="dependent", mozglue=None):
'''Template for Gecko-related binaries. """Template for Gecko-related binaries.
This template is meant to be used in other templates. This template is meant to be used in other templates.
@ -21,104 +22,104 @@ def GeckoBinary(linkage='dependent', mozglue=None):
so, what linkage to apply. Valid values are None (mozglue not linked), so, what linkage to apply. Valid values are None (mozglue not linked),
'program' (mozglue linked to an executable program), or 'library' (mozglue 'program' (mozglue linked to an executable program), or 'library' (mozglue
linked to a shared library). linked to a shared library).
''' """
if linkage == 'dependent': if linkage == "dependent":
USE_LIBS += [ USE_LIBS += [
'nspr', "nspr",
'xul-real', "xul-real",
] ]
elif linkage == 'standalone': elif linkage == "standalone":
DEFINES['XPCOM_GLUE'] = True DEFINES["XPCOM_GLUE"] = True
USE_LIBS += [ USE_LIBS += [
'xpcomglue', "xpcomglue",
] ]
elif linkage != None: elif linkage != None:
error('`linkage` must be "dependent", "standalone" or None') error('`linkage` must be "dependent", "standalone" or None')
if mozglue: if mozglue:
if mozglue == 'program': if mozglue == "program":
USE_LIBS += ['mozglue'] USE_LIBS += ["mozglue"]
DEFINES['MOZ_HAS_MOZGLUE'] = True DEFINES["MOZ_HAS_MOZGLUE"] = True
if CONFIG['MOZ_GLUE_IN_PROGRAM'] and CONFIG['CC_TYPE'] in ('clang', 'gcc'): if CONFIG["MOZ_GLUE_IN_PROGRAM"] and CONFIG["CC_TYPE"] in ("clang", "gcc"):
LDFLAGS += ['-rdynamic'] LDFLAGS += ["-rdynamic"]
elif mozglue == 'library': elif mozglue == "library":
LIBRARY_DEFINES['MOZ_HAS_MOZGLUE'] = True LIBRARY_DEFINES["MOZ_HAS_MOZGLUE"] = True
if not CONFIG['MOZ_GLUE_IN_PROGRAM']: if not CONFIG["MOZ_GLUE_IN_PROGRAM"]:
USE_LIBS += ['mozglue'] USE_LIBS += ["mozglue"]
else: else:
error('`mozglue` must be "program" or "library"') error('`mozglue` must be "program" or "library"')
@template @template
def GeckoProgram(name, linkage='standalone', **kwargs): def GeckoProgram(name, linkage="standalone", **kwargs):
'''Template for program executables related to Gecko. """Template for program executables related to Gecko.
`name` identifies the executable base name. `name` identifies the executable base name.
See the documentation for `GeckoBinary` for other possible arguments, See the documentation for `GeckoBinary` for other possible arguments,
with the notable difference that the default for `linkage` is 'standalone'. with the notable difference that the default for `linkage` is 'standalone'.
''' """
Program(name) Program(name)
kwargs.setdefault('mozglue', 'program') kwargs.setdefault("mozglue", "program")
GeckoBinary(linkage=linkage, **kwargs) GeckoBinary(linkage=linkage, **kwargs)
@template @template
def GeckoSimplePrograms(names, **kwargs): def GeckoSimplePrograms(names, **kwargs):
'''Template for simple program executables related to Gecko. """Template for simple program executables related to Gecko.
`names` identifies the executable base names for each executable. `names` identifies the executable base names for each executable.
See the documentation for `GeckoBinary` for other possible arguments. See the documentation for `GeckoBinary` for other possible arguments.
''' """
SimplePrograms(names) SimplePrograms(names)
kwargs.setdefault('mozglue', 'program') kwargs.setdefault("mozglue", "program")
GeckoBinary(**kwargs) GeckoBinary(**kwargs)
@template @template
def GeckoCppUnitTests(names, **kwargs): def GeckoCppUnitTests(names, **kwargs):
'''Template for C++ unit tests related to Gecko. """Template for C++ unit tests related to Gecko.
`names` identifies the executable base names for each executable. `names` identifies the executable base names for each executable.
See the documentation for `GeckoBinary` for other possible arguments. See the documentation for `GeckoBinary` for other possible arguments.
''' """
CppUnitTests(names) CppUnitTests(names)
kwargs.setdefault('mozglue', 'program') kwargs.setdefault("mozglue", "program")
GeckoBinary(**kwargs) GeckoBinary(**kwargs)
@template @template
def GeckoSharedLibrary(name, output_category=None, **kwargs): def GeckoSharedLibrary(name, output_category=None, **kwargs):
'''Template for shared libraries related to Gecko. """Template for shared libraries related to Gecko.
`name` identifies the library base name. `name` identifies the library base name.
See the documentation for `GeckoBinary` for other possible arguments. See the documentation for `GeckoBinary` for other possible arguments.
''' """
SharedLibrary(name, output_category) SharedLibrary(name, output_category)
kwargs.setdefault('mozglue', 'library') kwargs.setdefault("mozglue", "library")
GeckoBinary(**kwargs) GeckoBinary(**kwargs)
@template @template
def GeckoFramework(name, output_category=None, **kwargs): def GeckoFramework(name, output_category=None, **kwargs):
'''Template for OSX frameworks related to Gecko. """Template for OSX frameworks related to Gecko.
`name` identifies the library base name. `name` identifies the library base name.
See the documentation for `GeckoBinary` for other possible arguments. See the documentation for `GeckoBinary` for other possible arguments.
''' """
Framework(name, output_category) Framework(name, output_category)
kwargs.setdefault('mozglue', 'library') kwargs.setdefault("mozglue", "library")
GeckoBinary(**kwargs) GeckoBinary(**kwargs)

View file

@ -4,108 +4,106 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this # License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
include('gyp_base.mozbuild') include("gyp_base.mozbuild")
gyp_vars.update({ gyp_vars.update(
'lsan': 0, {
'asan': 0, "lsan": 0,
'tsan': 1 if CONFIG['MOZ_TSAN'] else 0, "asan": 0,
'ubsan' : 0, "tsan": 1 if CONFIG["MOZ_TSAN"] else 0,
'fuzzing' : 1 if CONFIG['FUZZING'] else 0, "ubsan": 0,
'libfuzzer' : 1 if CONFIG['LIBFUZZER'] else 0, "fuzzing": 1 if CONFIG["FUZZING"] else 0,
'libfuzzer_fuzzer_no_link_flag' : 1 if CONFIG['HAVE_LIBFUZZER_FLAG_FUZZER_NO_LINK'] else 0, "libfuzzer": 1 if CONFIG["LIBFUZZER"] else 0,
'build_with_mozilla': 1, "libfuzzer_fuzzer_no_link_flag": 1
'build_with_chromium': 0, if CONFIG["HAVE_LIBFUZZER_FLAG_FUZZER_NO_LINK"]
# 10.9 once we move to TC cross-compiles - bug 1270217 else 0,
'mac_sdk_min': '10.9', "build_with_mozilla": 1,
'mac_deployment_target': '10.9', "build_with_chromium": 0,
'use_official_google_api_keys': 0, # 10.9 once we move to TC cross-compiles - bug 1270217
'have_clock_monotonic': 1 if CONFIG['HAVE_CLOCK_MONOTONIC'] else 0, "mac_sdk_min": "10.9",
'have_ethtool_cmd_speed_hi': 1 if CONFIG['MOZ_WEBRTC_HAVE_ETHTOOL_SPEED_HI'] else 0, "mac_deployment_target": "10.9",
'include_alsa_audio': 1 if CONFIG['MOZ_ALSA'] else 0, "use_official_google_api_keys": 0,
'include_pulse_audio': 1 if CONFIG['MOZ_PULSEAUDIO'] else 0, "have_clock_monotonic": 1 if CONFIG["HAVE_CLOCK_MONOTONIC"] else 0,
# basic stuff for everything "have_ethtool_cmd_speed_hi": 1
'include_internal_video_render': 0, if CONFIG["MOZ_WEBRTC_HAVE_ETHTOOL_SPEED_HI"]
'clang': 1 if CONFIG['CC_TYPE'] == 'clang' else 0, else 0,
'clang_cl': 1 if CONFIG['CC_TYPE'] == 'clang-cl' else 0, "include_alsa_audio": 1 if CONFIG["MOZ_ALSA"] else 0,
'clang_use_chrome_plugins': 0, "include_pulse_audio": 1 if CONFIG["MOZ_PULSEAUDIO"] else 0,
'enable_protobuf': 0, # basic stuff for everything
'include_tests': 0, "include_internal_video_render": 0,
'enable_android_opensl': 1, "clang": 1 if CONFIG["CC_TYPE"] == "clang" else 0,
'enable_android_opensl_output': 0, "clang_cl": 1 if CONFIG["CC_TYPE"] == "clang-cl" else 0,
# use_system_lib* still seems to be in use in trunk/build "clang_use_chrome_plugins": 0,
'use_system_libjpeg': 0, "enable_protobuf": 0,
'use_system_libvpx': 0, "include_tests": 0,
'build_json': 0, "enable_android_opensl": 1,
'build_libjpeg': 0, "enable_android_opensl_output": 0,
'build_libyuv': 0, # use_system_lib* still seems to be in use in trunk/build
'build_libvpx': 0, "use_system_libjpeg": 0,
'build_libevent': 0, "use_system_libvpx": 0,
'build_ssl': 0, "build_json": 0,
'build_json': 0, "build_libjpeg": 0,
'build_icu': 0, "build_libyuv": 0,
'build_opus': 0, "build_libvpx": 0,
'libyuv_dir': '/media/libyuv/libyuv', "build_libevent": 0,
# don't use openssl "build_ssl": 0,
'use_openssl': 0, "build_json": 0,
# Must match build/gyp.mozbuild WEBRTC_BUILD_LIBEVENT "build_icu": 0,
#'enable_libevent': 0, default according to OS "build_opus": 0,
"libyuv_dir": "/media/libyuv/libyuv",
# don't use openssl
"use_openssl": 0,
# Must match build/gyp.mozbuild WEBRTC_BUILD_LIBEVENT
#'enable_libevent': 0, default according to OS
"debug": 1 if CONFIG["DEBUG"] else 0,
"use_x11": 1 if CONFIG["MOZ_X11"] else 0,
"use_glib": 1 if CONFIG["GLIB_LIBS"] else 0,
# bug 1373485 - avoid pkg-config for gtk2 in webrtc
"use_gtk": 0,
# turn off mandatory use of NEON and instead use NEON detection
"arm_neon": 0,
"arm_neon_optional": 1,
# (for vp8) chromium sets to 0 also
"use_temporal_layers": 0,
# Creates AEC internal sample dump files in current directory
"aec_debug_dump": 1,
# codec enable/disables:
"include_g711": 1,
"include_opus": 1,
"include_g722": 1,
"include_ilbc": 0,
# We turn on ISAC because the AGC uses parts of it, and depend on the
# linker to throw away uneeded bits.
"include_isac": 1,
"include_pcm16b": 1,
#'rtc_opus_variable_complexity': 1,
"apm_debug_dump": 1,
}
)
'debug': 1 if CONFIG['DEBUG'] else 0, if os == "Android":
gyp_vars.update(gtest_target_type="executable")
'use_x11': 1 if CONFIG['MOZ_X11'] else 0, if CONFIG["ARM_ARCH"]:
'use_glib': 1 if CONFIG['GLIB_LIBS'] else 0, if int(CONFIG["ARM_ARCH"]) < 7:
# bug 1373485 - avoid pkg-config for gtk2 in webrtc gyp_vars["armv7"] = 0
'use_gtk': 0, gyp_vars["arm_neon_optional"] = 0
elif os == "Android":
# turn off mandatory use of NEON and instead use NEON detection gyp_vars["armv7"] = 1
'arm_neon': 0, gyp_vars["arm_neon"] = 1
'arm_neon_optional': 1, gyp_vars["build_with_neon"] = 1
# (for vp8) chromium sets to 0 also
'use_temporal_layers': 0,
# Creates AEC internal sample dump files in current directory
'aec_debug_dump': 1,
# codec enable/disables:
'include_g711': 1,
'include_opus': 1,
'include_g722': 1,
'include_ilbc': 0,
# We turn on ISAC because the AGC uses parts of it, and depend on the
# linker to throw away uneeded bits.
'include_isac': 1,
'include_pcm16b': 1,
#'rtc_opus_variable_complexity': 1,
'apm_debug_dump': 1,
})
if os == 'Android':
gyp_vars.update(gtest_target_type='executable')
if CONFIG['ARM_ARCH']:
if int(CONFIG['ARM_ARCH']) < 7:
gyp_vars['armv7'] = 0
gyp_vars['arm_neon_optional'] = 0
elif os == 'Android':
gyp_vars['armv7'] = 1
gyp_vars['arm_neon'] = 1
gyp_vars['build_with_neon'] = 1
else: else:
# CPU detection for ARM works on Android only. armv7 always uses CPU # CPU detection for ARM works on Android only. armv7 always uses CPU
# detection, so we have to set armv7=0 for non-Android target # detection, so we have to set armv7=0 for non-Android target
gyp_vars['armv7'] = 0 gyp_vars["armv7"] = 0
# For libyuv # For libyuv
gyp_vars['arm_version'] = int(CONFIG['ARM_ARCH']) gyp_vars["arm_version"] = int(CONFIG["ARM_ARCH"])
if CONFIG['MACOS_SDK_DIR']: if CONFIG["MACOS_SDK_DIR"]:
gyp_vars['mac_sdk_path'] = CONFIG['MACOS_SDK_DIR'] gyp_vars["mac_sdk_path"] = CONFIG["MACOS_SDK_DIR"]
if not CONFIG['MOZ_SYSTEM_LIBVPX']: if not CONFIG["MOZ_SYSTEM_LIBVPX"]:
gyp_vars['libvpx_dir'] = '/media/libvpx/libvpx' gyp_vars["libvpx_dir"] = "/media/libvpx/libvpx"
if not CONFIG['MOZ_SYSTEM_LIBEVENT']: if not CONFIG["MOZ_SYSTEM_LIBEVENT"]:
gyp_vars['libevent_dir'] = '/ipc/chromium/src/third_party/libevent' gyp_vars["libevent_dir"] = "/ipc/chromium/src/third_party/libevent"

View file

@ -6,34 +6,34 @@
gyp_vars = {} gyp_vars = {}
os = CONFIG['OS_TARGET'] os = CONFIG["OS_TARGET"]
if os == 'WINNT': if os == "WINNT":
gyp_vars.update( gyp_vars.update(
MSVS_VERSION=CONFIG['MSVS_VERSION'], MSVS_VERSION=CONFIG["MSVS_VERSION"],
MSVS_OS_BITS=64 if CONFIG['HAVE_64BIT_BUILD'] else 32, MSVS_OS_BITS=64 if CONFIG["HAVE_64BIT_BUILD"] else 32,
) )
flavors = { flavors = {
'WINNT': 'win', "WINNT": "win",
'Android': 'android', "Android": "android",
'Linux': 'linux', "Linux": "linux",
'Darwin': 'mac' if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa' else 'ios', "Darwin": "mac" if CONFIG["MOZ_WIDGET_TOOLKIT"] == "cocoa" else "ios",
'SunOS': 'solaris', "SunOS": "solaris",
'GNU/kFreeBSD': 'freebsd', "GNU/kFreeBSD": "freebsd",
'DragonFly': 'dragonfly', "DragonFly": "dragonfly",
'FreeBSD': 'freebsd', "FreeBSD": "freebsd",
'NetBSD': 'netbsd', "NetBSD": "netbsd",
'OpenBSD': 'openbsd', "OpenBSD": "openbsd",
} }
gyp_vars['OS'] = flavors.get(os) gyp_vars["OS"] = flavors.get(os)
arches = { arches = {
'x86_64': 'x64', "x86_64": "x64",
'x86': 'ia32', "x86": "ia32",
'aarch64': 'arm64', "aarch64": "arm64",
'ppc64': 'ppc64le' if CONFIG['TARGET_ENDIANNESS'] == 'little' else 'ppc64', "ppc64": "ppc64le" if CONFIG["TARGET_ENDIANNESS"] == "little" else "ppc64",
} }
gyp_vars['host_arch'] = arches.get(CONFIG['HOST_CPU_ARCH'], CONFIG['HOST_CPU_ARCH']) gyp_vars["host_arch"] = arches.get(CONFIG["HOST_CPU_ARCH"], CONFIG["HOST_CPU_ARCH"])
gyp_vars['target_arch'] = arches.get(CONFIG['CPU_ARCH'], CONFIG['CPU_ARCH']) gyp_vars["target_arch"] = arches.get(CONFIG["CPU_ARCH"], CONFIG["CPU_ARCH"])

View file

@ -4,73 +4,80 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this # License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
@template @template
def Binary(): def Binary():
'''Generic template for target binaries. Meant to be used by other """Generic template for target binaries. Meant to be used by other
templates.''' templates."""
# Add -llog by default, since we use it all over the place. # Add -llog by default, since we use it all over the place.
if CONFIG['OS_TARGET'] == 'Android': if CONFIG["OS_TARGET"] == "Android":
OS_LIBS += ['log'] OS_LIBS += ["log"]
@template @template
def Program(name): def Program(name):
'''Template for program executables.''' """Template for program executables."""
PROGRAM = name PROGRAM = name
Binary() Binary()
@template @template
def SimplePrograms(names, ext='.cpp'): def SimplePrograms(names, ext=".cpp"):
'''Template for simple program executables. """Template for simple program executables.
Those have a single source with the same base name as the executable. Those have a single source with the same base name as the executable.
''' """
SIMPLE_PROGRAMS += names SIMPLE_PROGRAMS += names
SOURCES += ['%s%s' % (name, ext) for name in names] SOURCES += ["%s%s" % (name, ext) for name in names]
Binary() Binary()
@template @template
def CppUnitTests(names, ext='.cpp'): def CppUnitTests(names, ext=".cpp"):
'''Template for C++ unit tests. """Template for C++ unit tests.
Those have a single source with the same base name as the executable. Those have a single source with the same base name as the executable.
''' """
COMPILE_FLAGS['EXTRA_INCLUDES'] = ['-I%s/dist/include' % TOPOBJDIR, COMPILE_FLAGS["EXTRA_INCLUDES"] = [
'-I%s/dist/include/testing' % TOPOBJDIR] "-I%s/dist/include" % TOPOBJDIR,
"-I%s/dist/include/testing" % TOPOBJDIR,
]
CPP_UNIT_TESTS += names CPP_UNIT_TESTS += names
SOURCES += ['%s%s' % (name, ext) for name in names] SOURCES += ["%s%s" % (name, ext) for name in names]
Binary() Binary()
@template @template
def Library(name): def Library(name):
'''Template for libraries.''' """Template for libraries."""
LIBRARY_NAME = name LIBRARY_NAME = name
@template @template
def AllowCompilerWarnings(): def AllowCompilerWarnings():
COMPILE_FLAGS['WARNINGS_AS_ERRORS'] = [] COMPILE_FLAGS["WARNINGS_AS_ERRORS"] = []
WASM_FLAGS['WARNINGS_AS_ERRORS'] = [] WASM_FLAGS["WARNINGS_AS_ERRORS"] = []
@template @template
def DisableCompilerWarnings(): def DisableCompilerWarnings():
# Keep the -Wno-* flags to disable warnings that may be enabled through other means. # Keep the -Wno-* flags to disable warnings that may be enabled through other means.
def filter(flags): def filter(flags):
return [f for f in flags or [] if f.startswith('-Wno-')] return [f for f in flags or [] if f.startswith("-Wno-")]
COMPILE_FLAGS['WARNINGS_CFLAGS'] = filter(CONFIG['WARNINGS_CFLAGS'])
COMPILE_FLAGS['WARNINGS_CXXFLAGS'] = filter(CONFIG['WARNINGS_CXXFLAGS']) COMPILE_FLAGS["WARNINGS_CFLAGS"] = filter(CONFIG["WARNINGS_CFLAGS"])
HOST_COMPILE_FLAGS['WARNINGS_CFLAGS'] = filter(CONFIG['WARNINGS_HOST_CFLAGS']) COMPILE_FLAGS["WARNINGS_CXXFLAGS"] = filter(CONFIG["WARNINGS_CXXFLAGS"])
HOST_COMPILE_FLAGS['WARNINGS_CXXFLAGS'] = filter(CONFIG['WARNINGS_HOST_CXXFLAGS']) HOST_COMPILE_FLAGS["WARNINGS_CFLAGS"] = filter(CONFIG["WARNINGS_HOST_CFLAGS"])
HOST_COMPILE_FLAGS["WARNINGS_CXXFLAGS"] = filter(CONFIG["WARNINGS_HOST_CXXFLAGS"])
@template @template
def RustLibrary(name, features=None, output_category=None, is_gkrust=False): def RustLibrary(name, features=None, output_category=None, is_gkrust=False):
'''Template for Rust libraries.''' """Template for Rust libraries."""
Library(name) Library(name)
IS_RUST_LIBRARY = True IS_RUST_LIBRARY = True
@ -94,7 +101,7 @@ def RustLibrary(name, features=None, output_category=None, is_gkrust=False):
@template @template
def SharedLibrary(name, output_category=None): def SharedLibrary(name, output_category=None):
'''Template for shared libraries.''' """Template for shared libraries."""
Library(name) Library(name)
FORCE_SHARED_LIB = True FORCE_SHARED_LIB = True
@ -107,7 +114,7 @@ def SharedLibrary(name, output_category=None):
@template @template
def Framework(name, output_category=None): def Framework(name, output_category=None):
'''Template for OSX Frameworks.''' """Template for OSX Frameworks."""
SharedLibrary(name, output_category) SharedLibrary(name, output_category)
IS_FRAMEWORK = True IS_FRAMEWORK = True
@ -115,40 +122,43 @@ def Framework(name, output_category=None):
@template @template
def HostProgram(name): def HostProgram(name):
'''Template for build tools executables.''' """Template for build tools executables."""
HOST_PROGRAM = name HOST_PROGRAM = name
@template @template
def HostSimplePrograms(names, ext='.cpp'): def HostSimplePrograms(names, ext=".cpp"):
'''Template for simple build tools executables. """Template for simple build tools executables.
Those have a single source with the same base name as the executable. Those have a single source with the same base name as the executable.
''' """
HOST_SIMPLE_PROGRAMS += names HOST_SIMPLE_PROGRAMS += names
HOST_SOURCES += ['%s%s' % (name.replace('host_', ''), ext) HOST_SOURCES += ["%s%s" % (name.replace("host_", ""), ext) for name in names]
for name in names]
@template @template
def HostSharedLibrary(name): def HostSharedLibrary(name):
'''Template for build tools libraries.''' """Template for build tools libraries."""
if name != 'clang-plugin': if name != "clang-plugin":
error('Please make sure host shared library support is complete ' error(
'before using for something else than the clang plugin') "Please make sure host shared library support is complete "
"before using for something else than the clang plugin"
)
HOST_LIBRARY_NAME = name HOST_LIBRARY_NAME = name
FORCE_SHARED_LIB = True FORCE_SHARED_LIB = True
@template @template
def HostLibrary(name): def HostLibrary(name):
'''Template for build tools libraries.''' """Template for build tools libraries."""
HOST_LIBRARY_NAME = name HOST_LIBRARY_NAME = name
@template @template
def HostRustLibrary(name, features=None): def HostRustLibrary(name, features=None):
'''Template for host Rust libraries.''' """Template for host Rust libraries."""
HostLibrary(name) HostLibrary(name)
IS_RUST_LIBRARY = True IS_RUST_LIBRARY = True
@ -158,44 +168,49 @@ def HostRustLibrary(name, features=None):
if features: if features:
HOST_RUST_LIBRARY_FEATURES = features HOST_RUST_LIBRARY_FEATURES = features
@template @template
def DisableStlWrapping(): def DisableStlWrapping():
COMPILE_FLAGS['STL'] = [] COMPILE_FLAGS["STL"] = []
@template @template
def NoVisibilityFlags(): def NoVisibilityFlags():
COMPILE_FLAGS['VISIBILITY'] = [] COMPILE_FLAGS["VISIBILITY"] = []
@template @template
def ForceInclude(*headers): def ForceInclude(*headers):
"""Force includes a set of header files in C++ compilations""" """Force includes a set of header files in C++ compilations"""
if CONFIG['CC_TYPE'] == 'clang-cl': if CONFIG["CC_TYPE"] == "clang-cl":
include_flag = '-FI' include_flag = "-FI"
else: else:
include_flag = '-include' include_flag = "-include"
for header in headers: for header in headers:
CXXFLAGS += [include_flag, header] CXXFLAGS += [include_flag, header]
@template @template
def GeneratedFile(name, *names, **kwargs): def GeneratedFile(name, *names, **kwargs):
"""Add one or more GENERATED_FILES with the given attributes. """Add one or more GENERATED_FILES with the given attributes.
You must pass in at least one generated file (the "name" argument). Other You must pass in at least one generated file (the "name" argument). Other
names can be included as positional arguments after "name".""" names can be included as positional arguments after "name"."""
script = kwargs.pop('script', None) script = kwargs.pop("script", None)
entry_point = kwargs.pop('entry_point', None) entry_point = kwargs.pop("entry_point", None)
inputs = kwargs.pop('inputs', []) inputs = kwargs.pop("inputs", [])
flags = kwargs.pop('flags', []) flags = kwargs.pop("flags", [])
force = kwargs.pop('force', False) force = kwargs.pop("force", False)
if kwargs: if kwargs:
error('Unrecognized argument(s) to GeneratedFile: %s' % error("Unrecognized argument(s) to GeneratedFile: %s" % ", ".join(kwargs))
', '.join(kwargs))
if entry_point and not script: if entry_point and not script:
error('entry_point cannot be provided if script is not provided') error("entry_point cannot be provided if script is not provided")
if script and ':' in script: if script and ":" in script:
error('script should not include a `:`. If you want to provide an ' error(
'alternative entry point for your script, use the entry_point ' "script should not include a `:`. If you want to provide an "
'parameter.') "alternative entry point for your script, use the entry_point "
"parameter."
)
key = (name,) + names if names else name key = (name,) + names if names else name
GENERATED_FILES += [key] GENERATED_FILES += [key]
@ -203,18 +218,20 @@ def GeneratedFile(name, *names, **kwargs):
if script and not entry_point: if script and not entry_point:
generated_file.script = script generated_file.script = script
if script and entry_point: if script and entry_point:
generated_file.script = script + ':' + entry_point generated_file.script = script + ":" + entry_point
generated_file.inputs = inputs generated_file.inputs = inputs
generated_file.flags = flags generated_file.flags = flags
generated_file.force = force generated_file.force = force
@template @template
def CbindgenHeader(name, inputs): def CbindgenHeader(name, inputs):
"""Add one GENERATED_FILES by running RunCbindgen.py""" """Add one GENERATED_FILES by running RunCbindgen.py"""
inputs = ['!/config/cbindgen-metadata.json'] + inputs inputs = ["!/config/cbindgen-metadata.json"] + inputs
GeneratedFile(name, script='/build/RunCbindgen.py', GeneratedFile(
entry_point='generate', inputs=inputs) name, script="/build/RunCbindgen.py", entry_point="generate", inputs=inputs
)
include('gecko_templates.mozbuild') include("gecko_templates.mozbuild")

View file

@ -1,305 +1,305 @@
# THIS FILE IS GENERATED BY /intl/icu_sources_data.py DO NOT EDIT # THIS FILE IS GENERATED BY /intl/icu_sources_data.py DO NOT EDIT
sources = [ sources = [
'/intl/icu/source/common/appendable.cpp', "/intl/icu/source/common/appendable.cpp",
'/intl/icu/source/common/bmpset.cpp', "/intl/icu/source/common/bmpset.cpp",
'/intl/icu/source/common/brkeng.cpp', "/intl/icu/source/common/brkeng.cpp",
'/intl/icu/source/common/brkiter.cpp', "/intl/icu/source/common/brkiter.cpp",
'/intl/icu/source/common/bytesinkutil.cpp', "/intl/icu/source/common/bytesinkutil.cpp",
'/intl/icu/source/common/bytestream.cpp', "/intl/icu/source/common/bytestream.cpp",
'/intl/icu/source/common/bytestrie.cpp', "/intl/icu/source/common/bytestrie.cpp",
'/intl/icu/source/common/bytestriebuilder.cpp', "/intl/icu/source/common/bytestriebuilder.cpp",
'/intl/icu/source/common/caniter.cpp', "/intl/icu/source/common/caniter.cpp",
'/intl/icu/source/common/characterproperties.cpp', "/intl/icu/source/common/characterproperties.cpp",
'/intl/icu/source/common/chariter.cpp', "/intl/icu/source/common/chariter.cpp",
'/intl/icu/source/common/charstr.cpp', "/intl/icu/source/common/charstr.cpp",
'/intl/icu/source/common/cmemory.cpp', "/intl/icu/source/common/cmemory.cpp",
'/intl/icu/source/common/cstring.cpp', "/intl/icu/source/common/cstring.cpp",
'/intl/icu/source/common/dictbe.cpp', "/intl/icu/source/common/dictbe.cpp",
'/intl/icu/source/common/dictionarydata.cpp', "/intl/icu/source/common/dictionarydata.cpp",
'/intl/icu/source/common/dtintrv.cpp', "/intl/icu/source/common/dtintrv.cpp",
'/intl/icu/source/common/edits.cpp', "/intl/icu/source/common/edits.cpp",
'/intl/icu/source/common/emojiprops.cpp', "/intl/icu/source/common/emojiprops.cpp",
'/intl/icu/source/common/errorcode.cpp', "/intl/icu/source/common/errorcode.cpp",
'/intl/icu/source/common/filteredbrk.cpp', "/intl/icu/source/common/filteredbrk.cpp",
'/intl/icu/source/common/filterednormalizer2.cpp', "/intl/icu/source/common/filterednormalizer2.cpp",
'/intl/icu/source/common/loadednormalizer2impl.cpp', "/intl/icu/source/common/loadednormalizer2impl.cpp",
'/intl/icu/source/common/localebuilder.cpp', "/intl/icu/source/common/localebuilder.cpp",
'/intl/icu/source/common/localematcher.cpp', "/intl/icu/source/common/localematcher.cpp",
'/intl/icu/source/common/localeprioritylist.cpp', "/intl/icu/source/common/localeprioritylist.cpp",
'/intl/icu/source/common/locavailable.cpp', "/intl/icu/source/common/locavailable.cpp",
'/intl/icu/source/common/locbased.cpp', "/intl/icu/source/common/locbased.cpp",
'/intl/icu/source/common/locdispnames.cpp', "/intl/icu/source/common/locdispnames.cpp",
'/intl/icu/source/common/locdistance.cpp', "/intl/icu/source/common/locdistance.cpp",
'/intl/icu/source/common/locdspnm.cpp', "/intl/icu/source/common/locdspnm.cpp",
'/intl/icu/source/common/locid.cpp', "/intl/icu/source/common/locid.cpp",
'/intl/icu/source/common/loclikely.cpp', "/intl/icu/source/common/loclikely.cpp",
'/intl/icu/source/common/loclikelysubtags.cpp', "/intl/icu/source/common/loclikelysubtags.cpp",
'/intl/icu/source/common/locmap.cpp', "/intl/icu/source/common/locmap.cpp",
'/intl/icu/source/common/locresdata.cpp', "/intl/icu/source/common/locresdata.cpp",
'/intl/icu/source/common/locutil.cpp', "/intl/icu/source/common/locutil.cpp",
'/intl/icu/source/common/lsr.cpp', "/intl/icu/source/common/lsr.cpp",
'/intl/icu/source/common/lstmbe.cpp', "/intl/icu/source/common/lstmbe.cpp",
'/intl/icu/source/common/messagepattern.cpp', "/intl/icu/source/common/messagepattern.cpp",
'/intl/icu/source/common/mlbe.cpp', "/intl/icu/source/common/mlbe.cpp",
'/intl/icu/source/common/normalizer2.cpp', "/intl/icu/source/common/normalizer2.cpp",
'/intl/icu/source/common/normalizer2impl.cpp', "/intl/icu/source/common/normalizer2impl.cpp",
'/intl/icu/source/common/normlzr.cpp', "/intl/icu/source/common/normlzr.cpp",
'/intl/icu/source/common/parsepos.cpp', "/intl/icu/source/common/parsepos.cpp",
'/intl/icu/source/common/patternprops.cpp', "/intl/icu/source/common/patternprops.cpp",
'/intl/icu/source/common/propname.cpp', "/intl/icu/source/common/propname.cpp",
'/intl/icu/source/common/punycode.cpp', "/intl/icu/source/common/punycode.cpp",
'/intl/icu/source/common/putil.cpp', "/intl/icu/source/common/putil.cpp",
'/intl/icu/source/common/rbbi.cpp', "/intl/icu/source/common/rbbi.cpp",
'/intl/icu/source/common/rbbi_cache.cpp', "/intl/icu/source/common/rbbi_cache.cpp",
'/intl/icu/source/common/rbbidata.cpp', "/intl/icu/source/common/rbbidata.cpp",
'/intl/icu/source/common/rbbinode.cpp', "/intl/icu/source/common/rbbinode.cpp",
'/intl/icu/source/common/rbbirb.cpp', "/intl/icu/source/common/rbbirb.cpp",
'/intl/icu/source/common/rbbiscan.cpp', "/intl/icu/source/common/rbbiscan.cpp",
'/intl/icu/source/common/rbbisetb.cpp', "/intl/icu/source/common/rbbisetb.cpp",
'/intl/icu/source/common/rbbistbl.cpp', "/intl/icu/source/common/rbbistbl.cpp",
'/intl/icu/source/common/rbbitblb.cpp', "/intl/icu/source/common/rbbitblb.cpp",
'/intl/icu/source/common/resbund.cpp', "/intl/icu/source/common/resbund.cpp",
'/intl/icu/source/common/resource.cpp', "/intl/icu/source/common/resource.cpp",
'/intl/icu/source/common/restrace.cpp', "/intl/icu/source/common/restrace.cpp",
'/intl/icu/source/common/ruleiter.cpp', "/intl/icu/source/common/ruleiter.cpp",
'/intl/icu/source/common/schriter.cpp', "/intl/icu/source/common/schriter.cpp",
'/intl/icu/source/common/serv.cpp', "/intl/icu/source/common/serv.cpp",
'/intl/icu/source/common/servlk.cpp', "/intl/icu/source/common/servlk.cpp",
'/intl/icu/source/common/servlkf.cpp', "/intl/icu/source/common/servlkf.cpp",
'/intl/icu/source/common/servls.cpp', "/intl/icu/source/common/servls.cpp",
'/intl/icu/source/common/servnotf.cpp', "/intl/icu/source/common/servnotf.cpp",
'/intl/icu/source/common/servrbf.cpp', "/intl/icu/source/common/servrbf.cpp",
'/intl/icu/source/common/servslkf.cpp', "/intl/icu/source/common/servslkf.cpp",
'/intl/icu/source/common/sharedobject.cpp', "/intl/icu/source/common/sharedobject.cpp",
'/intl/icu/source/common/simpleformatter.cpp', "/intl/icu/source/common/simpleformatter.cpp",
'/intl/icu/source/common/static_unicode_sets.cpp', "/intl/icu/source/common/static_unicode_sets.cpp",
'/intl/icu/source/common/stringpiece.cpp', "/intl/icu/source/common/stringpiece.cpp",
'/intl/icu/source/common/stringtriebuilder.cpp', "/intl/icu/source/common/stringtriebuilder.cpp",
'/intl/icu/source/common/uarrsort.cpp', "/intl/icu/source/common/uarrsort.cpp",
'/intl/icu/source/common/ubidi.cpp', "/intl/icu/source/common/ubidi.cpp",
'/intl/icu/source/common/ubidi_props.cpp', "/intl/icu/source/common/ubidi_props.cpp",
'/intl/icu/source/common/ubidiln.cpp', "/intl/icu/source/common/ubidiln.cpp",
'/intl/icu/source/common/ubidiwrt.cpp', "/intl/icu/source/common/ubidiwrt.cpp",
'/intl/icu/source/common/ubrk.cpp', "/intl/icu/source/common/ubrk.cpp",
'/intl/icu/source/common/ucase.cpp', "/intl/icu/source/common/ucase.cpp",
'/intl/icu/source/common/ucasemap.cpp', "/intl/icu/source/common/ucasemap.cpp",
'/intl/icu/source/common/ucasemap_titlecase_brkiter.cpp', "/intl/icu/source/common/ucasemap_titlecase_brkiter.cpp",
'/intl/icu/source/common/uchar.cpp', "/intl/icu/source/common/uchar.cpp",
'/intl/icu/source/common/ucharstrie.cpp', "/intl/icu/source/common/ucharstrie.cpp",
'/intl/icu/source/common/ucharstriebuilder.cpp', "/intl/icu/source/common/ucharstriebuilder.cpp",
'/intl/icu/source/common/ucharstrieiterator.cpp', "/intl/icu/source/common/ucharstrieiterator.cpp",
'/intl/icu/source/common/uchriter.cpp', "/intl/icu/source/common/uchriter.cpp",
'/intl/icu/source/common/ucln_cmn.cpp', "/intl/icu/source/common/ucln_cmn.cpp",
'/intl/icu/source/common/ucmndata.cpp', "/intl/icu/source/common/ucmndata.cpp",
'/intl/icu/source/common/ucnv.cpp', "/intl/icu/source/common/ucnv.cpp",
'/intl/icu/source/common/ucnv_bld.cpp', "/intl/icu/source/common/ucnv_bld.cpp",
'/intl/icu/source/common/ucnv_cb.cpp', "/intl/icu/source/common/ucnv_cb.cpp",
'/intl/icu/source/common/ucnv_cnv.cpp', "/intl/icu/source/common/ucnv_cnv.cpp",
'/intl/icu/source/common/ucnv_err.cpp', "/intl/icu/source/common/ucnv_err.cpp",
'/intl/icu/source/common/ucnv_io.cpp', "/intl/icu/source/common/ucnv_io.cpp",
'/intl/icu/source/common/ucnv_u16.cpp', "/intl/icu/source/common/ucnv_u16.cpp",
'/intl/icu/source/common/ucnv_u32.cpp', "/intl/icu/source/common/ucnv_u32.cpp",
'/intl/icu/source/common/ucnv_u7.cpp', "/intl/icu/source/common/ucnv_u7.cpp",
'/intl/icu/source/common/ucnv_u8.cpp', "/intl/icu/source/common/ucnv_u8.cpp",
'/intl/icu/source/common/ucnvbocu.cpp', "/intl/icu/source/common/ucnvbocu.cpp",
'/intl/icu/source/common/ucnvlat1.cpp', "/intl/icu/source/common/ucnvlat1.cpp",
'/intl/icu/source/common/ucnvscsu.cpp', "/intl/icu/source/common/ucnvscsu.cpp",
'/intl/icu/source/common/ucol_swp.cpp', "/intl/icu/source/common/ucol_swp.cpp",
'/intl/icu/source/common/ucptrie.cpp', "/intl/icu/source/common/ucptrie.cpp",
'/intl/icu/source/common/ucurr.cpp', "/intl/icu/source/common/ucurr.cpp",
'/intl/icu/source/common/udata.cpp', "/intl/icu/source/common/udata.cpp",
'/intl/icu/source/common/udatamem.cpp', "/intl/icu/source/common/udatamem.cpp",
'/intl/icu/source/common/udataswp.cpp', "/intl/icu/source/common/udataswp.cpp",
'/intl/icu/source/common/uenum.cpp', "/intl/icu/source/common/uenum.cpp",
'/intl/icu/source/common/uhash.cpp', "/intl/icu/source/common/uhash.cpp",
'/intl/icu/source/common/uhash_us.cpp', "/intl/icu/source/common/uhash_us.cpp",
'/intl/icu/source/common/uinit.cpp', "/intl/icu/source/common/uinit.cpp",
'/intl/icu/source/common/uinvchar.cpp', "/intl/icu/source/common/uinvchar.cpp",
'/intl/icu/source/common/uiter.cpp', "/intl/icu/source/common/uiter.cpp",
'/intl/icu/source/common/ulist.cpp', "/intl/icu/source/common/ulist.cpp",
'/intl/icu/source/common/uloc.cpp', "/intl/icu/source/common/uloc.cpp",
'/intl/icu/source/common/uloc_keytype.cpp', "/intl/icu/source/common/uloc_keytype.cpp",
'/intl/icu/source/common/uloc_tag.cpp', "/intl/icu/source/common/uloc_tag.cpp",
'/intl/icu/source/common/umapfile.cpp', "/intl/icu/source/common/umapfile.cpp",
'/intl/icu/source/common/umath.cpp', "/intl/icu/source/common/umath.cpp",
'/intl/icu/source/common/umutablecptrie.cpp', "/intl/icu/source/common/umutablecptrie.cpp",
'/intl/icu/source/common/umutex.cpp', "/intl/icu/source/common/umutex.cpp",
'/intl/icu/source/common/unames.cpp', "/intl/icu/source/common/unames.cpp",
'/intl/icu/source/common/unifiedcache.cpp', "/intl/icu/source/common/unifiedcache.cpp",
'/intl/icu/source/common/unifilt.cpp', "/intl/icu/source/common/unifilt.cpp",
'/intl/icu/source/common/unifunct.cpp', "/intl/icu/source/common/unifunct.cpp",
'/intl/icu/source/common/uniset.cpp', "/intl/icu/source/common/uniset.cpp",
'/intl/icu/source/common/uniset_closure.cpp', "/intl/icu/source/common/uniset_closure.cpp",
'/intl/icu/source/common/uniset_props.cpp', "/intl/icu/source/common/uniset_props.cpp",
'/intl/icu/source/common/unisetspan.cpp', "/intl/icu/source/common/unisetspan.cpp",
'/intl/icu/source/common/unistr.cpp', "/intl/icu/source/common/unistr.cpp",
'/intl/icu/source/common/unistr_case.cpp', "/intl/icu/source/common/unistr_case.cpp",
'/intl/icu/source/common/unistr_case_locale.cpp', "/intl/icu/source/common/unistr_case_locale.cpp",
'/intl/icu/source/common/unistr_cnv.cpp', "/intl/icu/source/common/unistr_cnv.cpp",
'/intl/icu/source/common/unistr_props.cpp', "/intl/icu/source/common/unistr_props.cpp",
'/intl/icu/source/common/unistr_titlecase_brkiter.cpp', "/intl/icu/source/common/unistr_titlecase_brkiter.cpp",
'/intl/icu/source/common/unormcmp.cpp', "/intl/icu/source/common/unormcmp.cpp",
'/intl/icu/source/common/uobject.cpp', "/intl/icu/source/common/uobject.cpp",
'/intl/icu/source/common/uprops.cpp', "/intl/icu/source/common/uprops.cpp",
'/intl/icu/source/common/uresbund.cpp', "/intl/icu/source/common/uresbund.cpp",
'/intl/icu/source/common/uresdata.cpp', "/intl/icu/source/common/uresdata.cpp",
'/intl/icu/source/common/uscript.cpp', "/intl/icu/source/common/uscript.cpp",
'/intl/icu/source/common/uscript_props.cpp', "/intl/icu/source/common/uscript_props.cpp",
'/intl/icu/source/common/uset.cpp', "/intl/icu/source/common/uset.cpp",
'/intl/icu/source/common/uset_props.cpp', "/intl/icu/source/common/uset_props.cpp",
'/intl/icu/source/common/usetiter.cpp', "/intl/icu/source/common/usetiter.cpp",
'/intl/icu/source/common/usprep.cpp', "/intl/icu/source/common/usprep.cpp",
'/intl/icu/source/common/ustack.cpp', "/intl/icu/source/common/ustack.cpp",
'/intl/icu/source/common/ustr_cnv.cpp', "/intl/icu/source/common/ustr_cnv.cpp",
'/intl/icu/source/common/ustr_titlecase_brkiter.cpp', "/intl/icu/source/common/ustr_titlecase_brkiter.cpp",
'/intl/icu/source/common/ustrcase.cpp', "/intl/icu/source/common/ustrcase.cpp",
'/intl/icu/source/common/ustrcase_locale.cpp', "/intl/icu/source/common/ustrcase_locale.cpp",
'/intl/icu/source/common/ustrenum.cpp', "/intl/icu/source/common/ustrenum.cpp",
'/intl/icu/source/common/ustrfmt.cpp', "/intl/icu/source/common/ustrfmt.cpp",
'/intl/icu/source/common/ustring.cpp', "/intl/icu/source/common/ustring.cpp",
'/intl/icu/source/common/ustrtrns.cpp', "/intl/icu/source/common/ustrtrns.cpp",
'/intl/icu/source/common/utext.cpp', "/intl/icu/source/common/utext.cpp",
'/intl/icu/source/common/utf_impl.cpp', "/intl/icu/source/common/utf_impl.cpp",
'/intl/icu/source/common/util.cpp', "/intl/icu/source/common/util.cpp",
'/intl/icu/source/common/utrace.cpp', "/intl/icu/source/common/utrace.cpp",
'/intl/icu/source/common/utrie.cpp', "/intl/icu/source/common/utrie.cpp",
'/intl/icu/source/common/utrie2.cpp', "/intl/icu/source/common/utrie2.cpp",
'/intl/icu/source/common/utrie2_builder.cpp', "/intl/icu/source/common/utrie2_builder.cpp",
'/intl/icu/source/common/utrie_swap.cpp', "/intl/icu/source/common/utrie_swap.cpp",
'/intl/icu/source/common/uts46.cpp', "/intl/icu/source/common/uts46.cpp",
'/intl/icu/source/common/utypes.cpp', "/intl/icu/source/common/utypes.cpp",
'/intl/icu/source/common/uvector.cpp', "/intl/icu/source/common/uvector.cpp",
'/intl/icu/source/common/uvectr32.cpp', "/intl/icu/source/common/uvectr32.cpp",
'/intl/icu/source/common/uvectr64.cpp', "/intl/icu/source/common/uvectr64.cpp",
'/intl/icu/source/common/wintz.cpp', "/intl/icu/source/common/wintz.cpp",
] ]
other_sources = [ other_sources = [
'/intl/icu/source/common/bytestrieiterator.cpp', "/intl/icu/source/common/bytestrieiterator.cpp",
'/intl/icu/source/common/cstr.cpp', "/intl/icu/source/common/cstr.cpp",
'/intl/icu/source/common/cwchar.cpp', "/intl/icu/source/common/cwchar.cpp",
'/intl/icu/source/common/icudataver.cpp', "/intl/icu/source/common/icudataver.cpp",
'/intl/icu/source/common/icuplug.cpp', "/intl/icu/source/common/icuplug.cpp",
'/intl/icu/source/common/pluralmap.cpp', "/intl/icu/source/common/pluralmap.cpp",
'/intl/icu/source/common/propsvec.cpp', "/intl/icu/source/common/propsvec.cpp",
'/intl/icu/source/common/resbund_cnv.cpp', "/intl/icu/source/common/resbund_cnv.cpp",
'/intl/icu/source/common/ubiditransform.cpp', "/intl/icu/source/common/ubiditransform.cpp",
'/intl/icu/source/common/ucat.cpp', "/intl/icu/source/common/ucat.cpp",
'/intl/icu/source/common/ucnv2022.cpp', "/intl/icu/source/common/ucnv2022.cpp",
'/intl/icu/source/common/ucnv_ct.cpp', "/intl/icu/source/common/ucnv_ct.cpp",
'/intl/icu/source/common/ucnv_ext.cpp', "/intl/icu/source/common/ucnv_ext.cpp",
'/intl/icu/source/common/ucnv_lmb.cpp', "/intl/icu/source/common/ucnv_lmb.cpp",
'/intl/icu/source/common/ucnv_set.cpp', "/intl/icu/source/common/ucnv_set.cpp",
'/intl/icu/source/common/ucnvdisp.cpp', "/intl/icu/source/common/ucnvdisp.cpp",
'/intl/icu/source/common/ucnvhz.cpp', "/intl/icu/source/common/ucnvhz.cpp",
'/intl/icu/source/common/ucnvisci.cpp', "/intl/icu/source/common/ucnvisci.cpp",
'/intl/icu/source/common/ucnvmbcs.cpp', "/intl/icu/source/common/ucnvmbcs.cpp",
'/intl/icu/source/common/ucnvsel.cpp', "/intl/icu/source/common/ucnvsel.cpp",
'/intl/icu/source/common/uidna.cpp', "/intl/icu/source/common/uidna.cpp",
'/intl/icu/source/common/unorm.cpp', "/intl/icu/source/common/unorm.cpp",
'/intl/icu/source/common/ures_cnv.cpp', "/intl/icu/source/common/ures_cnv.cpp",
'/intl/icu/source/common/usc_impl.cpp', "/intl/icu/source/common/usc_impl.cpp",
'/intl/icu/source/common/ushape.cpp', "/intl/icu/source/common/ushape.cpp",
'/intl/icu/source/common/ustr_wcs.cpp', "/intl/icu/source/common/ustr_wcs.cpp",
'/intl/icu/source/common/util_props.cpp', "/intl/icu/source/common/util_props.cpp",
] ]
EXPORTS.unicode += [ EXPORTS.unicode += [
'/intl/icu/source/common/unicode/appendable.h', "/intl/icu/source/common/unicode/appendable.h",
'/intl/icu/source/common/unicode/brkiter.h', "/intl/icu/source/common/unicode/brkiter.h",
'/intl/icu/source/common/unicode/bytestream.h', "/intl/icu/source/common/unicode/bytestream.h",
'/intl/icu/source/common/unicode/bytestrie.h', "/intl/icu/source/common/unicode/bytestrie.h",
'/intl/icu/source/common/unicode/bytestriebuilder.h', "/intl/icu/source/common/unicode/bytestriebuilder.h",
'/intl/icu/source/common/unicode/caniter.h', "/intl/icu/source/common/unicode/caniter.h",
'/intl/icu/source/common/unicode/casemap.h', "/intl/icu/source/common/unicode/casemap.h",
'/intl/icu/source/common/unicode/char16ptr.h', "/intl/icu/source/common/unicode/char16ptr.h",
'/intl/icu/source/common/unicode/chariter.h', "/intl/icu/source/common/unicode/chariter.h",
'/intl/icu/source/common/unicode/dbbi.h', "/intl/icu/source/common/unicode/dbbi.h",
'/intl/icu/source/common/unicode/docmain.h', "/intl/icu/source/common/unicode/docmain.h",
'/intl/icu/source/common/unicode/dtintrv.h', "/intl/icu/source/common/unicode/dtintrv.h",
'/intl/icu/source/common/unicode/edits.h', "/intl/icu/source/common/unicode/edits.h",
'/intl/icu/source/common/unicode/enumset.h', "/intl/icu/source/common/unicode/enumset.h",
'/intl/icu/source/common/unicode/errorcode.h', "/intl/icu/source/common/unicode/errorcode.h",
'/intl/icu/source/common/unicode/filteredbrk.h', "/intl/icu/source/common/unicode/filteredbrk.h",
'/intl/icu/source/common/unicode/icudataver.h', "/intl/icu/source/common/unicode/icudataver.h",
'/intl/icu/source/common/unicode/icuplug.h', "/intl/icu/source/common/unicode/icuplug.h",
'/intl/icu/source/common/unicode/idna.h', "/intl/icu/source/common/unicode/idna.h",
'/intl/icu/source/common/unicode/localebuilder.h', "/intl/icu/source/common/unicode/localebuilder.h",
'/intl/icu/source/common/unicode/localematcher.h', "/intl/icu/source/common/unicode/localematcher.h",
'/intl/icu/source/common/unicode/localpointer.h', "/intl/icu/source/common/unicode/localpointer.h",
'/intl/icu/source/common/unicode/locdspnm.h', "/intl/icu/source/common/unicode/locdspnm.h",
'/intl/icu/source/common/unicode/locid.h', "/intl/icu/source/common/unicode/locid.h",
'/intl/icu/source/common/unicode/messagepattern.h', "/intl/icu/source/common/unicode/messagepattern.h",
'/intl/icu/source/common/unicode/normalizer2.h', "/intl/icu/source/common/unicode/normalizer2.h",
'/intl/icu/source/common/unicode/normlzr.h', "/intl/icu/source/common/unicode/normlzr.h",
'/intl/icu/source/common/unicode/parseerr.h', "/intl/icu/source/common/unicode/parseerr.h",
'/intl/icu/source/common/unicode/parsepos.h', "/intl/icu/source/common/unicode/parsepos.h",
'/intl/icu/source/common/unicode/platform.h', "/intl/icu/source/common/unicode/platform.h",
'/intl/icu/source/common/unicode/ptypes.h', "/intl/icu/source/common/unicode/ptypes.h",
'/intl/icu/source/common/unicode/putil.h', "/intl/icu/source/common/unicode/putil.h",
'/intl/icu/source/common/unicode/rbbi.h', "/intl/icu/source/common/unicode/rbbi.h",
'/intl/icu/source/common/unicode/rep.h', "/intl/icu/source/common/unicode/rep.h",
'/intl/icu/source/common/unicode/resbund.h', "/intl/icu/source/common/unicode/resbund.h",
'/intl/icu/source/common/unicode/schriter.h', "/intl/icu/source/common/unicode/schriter.h",
'/intl/icu/source/common/unicode/simpleformatter.h', "/intl/icu/source/common/unicode/simpleformatter.h",
'/intl/icu/source/common/unicode/std_string.h', "/intl/icu/source/common/unicode/std_string.h",
'/intl/icu/source/common/unicode/strenum.h', "/intl/icu/source/common/unicode/strenum.h",
'/intl/icu/source/common/unicode/stringoptions.h', "/intl/icu/source/common/unicode/stringoptions.h",
'/intl/icu/source/common/unicode/stringpiece.h', "/intl/icu/source/common/unicode/stringpiece.h",
'/intl/icu/source/common/unicode/stringtriebuilder.h', "/intl/icu/source/common/unicode/stringtriebuilder.h",
'/intl/icu/source/common/unicode/symtable.h', "/intl/icu/source/common/unicode/symtable.h",
'/intl/icu/source/common/unicode/ubidi.h', "/intl/icu/source/common/unicode/ubidi.h",
'/intl/icu/source/common/unicode/ubiditransform.h', "/intl/icu/source/common/unicode/ubiditransform.h",
'/intl/icu/source/common/unicode/ubrk.h', "/intl/icu/source/common/unicode/ubrk.h",
'/intl/icu/source/common/unicode/ucasemap.h', "/intl/icu/source/common/unicode/ucasemap.h",
'/intl/icu/source/common/unicode/ucat.h', "/intl/icu/source/common/unicode/ucat.h",
'/intl/icu/source/common/unicode/uchar.h', "/intl/icu/source/common/unicode/uchar.h",
'/intl/icu/source/common/unicode/ucharstrie.h', "/intl/icu/source/common/unicode/ucharstrie.h",
'/intl/icu/source/common/unicode/ucharstriebuilder.h', "/intl/icu/source/common/unicode/ucharstriebuilder.h",
'/intl/icu/source/common/unicode/uchriter.h', "/intl/icu/source/common/unicode/uchriter.h",
'/intl/icu/source/common/unicode/uclean.h', "/intl/icu/source/common/unicode/uclean.h",
'/intl/icu/source/common/unicode/ucnv.h', "/intl/icu/source/common/unicode/ucnv.h",
'/intl/icu/source/common/unicode/ucnv_cb.h', "/intl/icu/source/common/unicode/ucnv_cb.h",
'/intl/icu/source/common/unicode/ucnv_err.h', "/intl/icu/source/common/unicode/ucnv_err.h",
'/intl/icu/source/common/unicode/ucnvsel.h', "/intl/icu/source/common/unicode/ucnvsel.h",
'/intl/icu/source/common/unicode/uconfig.h', "/intl/icu/source/common/unicode/uconfig.h",
'/intl/icu/source/common/unicode/ucpmap.h', "/intl/icu/source/common/unicode/ucpmap.h",
'/intl/icu/source/common/unicode/ucptrie.h', "/intl/icu/source/common/unicode/ucptrie.h",
'/intl/icu/source/common/unicode/ucurr.h', "/intl/icu/source/common/unicode/ucurr.h",
'/intl/icu/source/common/unicode/udata.h', "/intl/icu/source/common/unicode/udata.h",
'/intl/icu/source/common/unicode/udisplaycontext.h', "/intl/icu/source/common/unicode/udisplaycontext.h",
'/intl/icu/source/common/unicode/uenum.h', "/intl/icu/source/common/unicode/uenum.h",
'/intl/icu/source/common/unicode/uidna.h', "/intl/icu/source/common/unicode/uidna.h",
'/intl/icu/source/common/unicode/uiter.h', "/intl/icu/source/common/unicode/uiter.h",
'/intl/icu/source/common/unicode/uldnames.h', "/intl/icu/source/common/unicode/uldnames.h",
'/intl/icu/source/common/unicode/uloc.h', "/intl/icu/source/common/unicode/uloc.h",
'/intl/icu/source/common/unicode/umachine.h', "/intl/icu/source/common/unicode/umachine.h",
'/intl/icu/source/common/unicode/umisc.h', "/intl/icu/source/common/unicode/umisc.h",
'/intl/icu/source/common/unicode/umutablecptrie.h', "/intl/icu/source/common/unicode/umutablecptrie.h",
'/intl/icu/source/common/unicode/unifilt.h', "/intl/icu/source/common/unicode/unifilt.h",
'/intl/icu/source/common/unicode/unifunct.h', "/intl/icu/source/common/unicode/unifunct.h",
'/intl/icu/source/common/unicode/unimatch.h', "/intl/icu/source/common/unicode/unimatch.h",
'/intl/icu/source/common/unicode/uniset.h', "/intl/icu/source/common/unicode/uniset.h",
'/intl/icu/source/common/unicode/unistr.h', "/intl/icu/source/common/unicode/unistr.h",
'/intl/icu/source/common/unicode/unorm.h', "/intl/icu/source/common/unicode/unorm.h",
'/intl/icu/source/common/unicode/unorm2.h', "/intl/icu/source/common/unicode/unorm2.h",
'/intl/icu/source/common/unicode/uobject.h', "/intl/icu/source/common/unicode/uobject.h",
'/intl/icu/source/common/unicode/urename.h', "/intl/icu/source/common/unicode/urename.h",
'/intl/icu/source/common/unicode/urep.h', "/intl/icu/source/common/unicode/urep.h",
'/intl/icu/source/common/unicode/ures.h', "/intl/icu/source/common/unicode/ures.h",
'/intl/icu/source/common/unicode/uscript.h', "/intl/icu/source/common/unicode/uscript.h",
'/intl/icu/source/common/unicode/uset.h', "/intl/icu/source/common/unicode/uset.h",
'/intl/icu/source/common/unicode/usetiter.h', "/intl/icu/source/common/unicode/usetiter.h",
'/intl/icu/source/common/unicode/ushape.h', "/intl/icu/source/common/unicode/ushape.h",
'/intl/icu/source/common/unicode/usprep.h', "/intl/icu/source/common/unicode/usprep.h",
'/intl/icu/source/common/unicode/ustring.h', "/intl/icu/source/common/unicode/ustring.h",
'/intl/icu/source/common/unicode/ustringtrie.h', "/intl/icu/source/common/unicode/ustringtrie.h",
'/intl/icu/source/common/unicode/utext.h', "/intl/icu/source/common/unicode/utext.h",
'/intl/icu/source/common/unicode/utf.h', "/intl/icu/source/common/unicode/utf.h",
'/intl/icu/source/common/unicode/utf16.h', "/intl/icu/source/common/unicode/utf16.h",
'/intl/icu/source/common/unicode/utf32.h', "/intl/icu/source/common/unicode/utf32.h",
'/intl/icu/source/common/unicode/utf8.h', "/intl/icu/source/common/unicode/utf8.h",
'/intl/icu/source/common/unicode/utf_old.h', "/intl/icu/source/common/unicode/utf_old.h",
'/intl/icu/source/common/unicode/utrace.h', "/intl/icu/source/common/unicode/utrace.h",
'/intl/icu/source/common/unicode/utypes.h', "/intl/icu/source/common/unicode/utypes.h",
'/intl/icu/source/common/unicode/uvernum.h', "/intl/icu/source/common/unicode/uvernum.h",
'/intl/icu/source/common/unicode/uversion.h', "/intl/icu/source/common/unicode/uversion.h",
] ]

View file

@ -7,69 +7,69 @@
# Also see <http://www.icu-project.org/repos/icu/tags/latest/icu4c/readme.html#RecBuild> for the # Also see <http://www.icu-project.org/repos/icu/tags/latest/icu4c/readme.html#RecBuild> for the
# recommended build options when compiling ICU. # recommended build options when compiling ICU.
# Don't use icu namespace automatically in client code. # Don't use icu namespace automatically in client code.
DEFINES['U_USING_ICU_NAMESPACE'] = 0 DEFINES["U_USING_ICU_NAMESPACE"] = 0
# Don't include obsolete header files. # Don't include obsolete header files.
DEFINES['U_NO_DEFAULT_INCLUDE_UTF_HEADERS'] = 1 DEFINES["U_NO_DEFAULT_INCLUDE_UTF_HEADERS"] = 1
DEFINES['U_HIDE_OBSOLETE_UTF_OLD_H'] = 1 DEFINES["U_HIDE_OBSOLETE_UTF_OLD_H"] = 1
# Remove chunks of the library that we don't need (yet). # Remove chunks of the library that we don't need (yet).
DEFINES['UCONFIG_NO_LEGACY_CONVERSION'] = True DEFINES["UCONFIG_NO_LEGACY_CONVERSION"] = True
DEFINES['UCONFIG_NO_TRANSLITERATION'] = True DEFINES["UCONFIG_NO_TRANSLITERATION"] = True
DEFINES['UCONFIG_NO_REGULAR_EXPRESSIONS'] = True DEFINES["UCONFIG_NO_REGULAR_EXPRESSIONS"] = True
DEFINES['UCONFIG_NO_BREAK_ITERATION'] = True DEFINES["UCONFIG_NO_BREAK_ITERATION"] = True
# We don't need to pass data to and from legacy char* APIs. # We don't need to pass data to and from legacy char* APIs.
DEFINES['U_CHARSET_IS_UTF8'] = True DEFINES["U_CHARSET_IS_UTF8"] = True
# Add 'explicit' keyword to UnicodeString constructors. # Add 'explicit' keyword to UnicodeString constructors.
DEFINES['UNISTR_FROM_CHAR_EXPLICIT'] = "explicit" DEFINES["UNISTR_FROM_CHAR_EXPLICIT"] = "explicit"
DEFINES['UNISTR_FROM_STRING_EXPLICIT'] = "explicit" DEFINES["UNISTR_FROM_STRING_EXPLICIT"] = "explicit"
# Disable dynamic loading of ICU data as a loadable library. # Disable dynamic loading of ICU data as a loadable library.
DEFINES['U_ENABLE_DYLOAD'] = 0 DEFINES["U_ENABLE_DYLOAD"] = 0
if not CONFIG['HAVE_LANGINFO_CODESET']: if not CONFIG["HAVE_LANGINFO_CODESET"]:
DEFINES['U_HAVE_NL_LANGINFO_CODESET'] = 0 DEFINES["U_HAVE_NL_LANGINFO_CODESET"] = 0
if CONFIG['MOZ_DEBUG']: if CONFIG["MOZ_DEBUG"]:
DEFINES['U_DEBUG'] = 1 DEFINES["U_DEBUG"] = 1
# ICU requires RTTI # ICU requires RTTI
if CONFIG['CC_TYPE'] in ('clang', 'gcc'): if CONFIG["CC_TYPE"] in ("clang", "gcc"):
CXXFLAGS += ['-frtti'] CXXFLAGS += ["-frtti"]
elif CONFIG['OS_TARGET'] == 'WINNT': elif CONFIG["OS_TARGET"] == "WINNT":
# Remove the -GR- flag so we don't get a bunch of warning spam. # Remove the -GR- flag so we don't get a bunch of warning spam.
COMPILE_FLAGS['OS_CXXFLAGS'] = [ COMPILE_FLAGS["OS_CXXFLAGS"] = [
f for f in COMPILE_FLAGS['OS_CXXFLAGS'] if f != '-GR-' f for f in COMPILE_FLAGS["OS_CXXFLAGS"] if f != "-GR-"
] + ['-GR'] ] + ["-GR"]
DisableStlWrapping() DisableStlWrapping()
AllowCompilerWarnings() AllowCompilerWarnings()
# We allow compiler warnings, but we can at least cut down on spammy # We allow compiler warnings, but we can at least cut down on spammy
# warnings that get triggered for every file. # warnings that get triggered for every file.
if CONFIG['CC_TYPE'] in ('clang', 'clang-cl'): if CONFIG["CC_TYPE"] in ("clang", "clang-cl"):
CFLAGS += [ CFLAGS += [
'-Wno-c++20-compat', "-Wno-c++20-compat",
'-Wno-comma', "-Wno-comma",
'-Wno-implicit-const-int-float-conversion', "-Wno-implicit-const-int-float-conversion",
'-Wno-macro-redefined', "-Wno-macro-redefined",
'-Wno-microsoft-include', "-Wno-microsoft-include",
'-Wno-tautological-unsigned-enum-zero-compare', "-Wno-tautological-unsigned-enum-zero-compare",
'-Wno-unreachable-code-loop-increment', "-Wno-unreachable-code-loop-increment",
'-Wno-unreachable-code-return', "-Wno-unreachable-code-return",
] ]
CXXFLAGS += [ CXXFLAGS += [
'-Wno-c++20-compat', "-Wno-c++20-compat",
'-Wno-comma', "-Wno-comma",
'-Wno-implicit-const-int-float-conversion', "-Wno-implicit-const-int-float-conversion",
'-Wno-macro-redefined', "-Wno-macro-redefined",
'-Wno-microsoft-include', "-Wno-microsoft-include",
'-Wno-tautological-unsigned-enum-zero-compare', "-Wno-tautological-unsigned-enum-zero-compare",
'-Wno-unreachable-code-loop-increment', "-Wno-unreachable-code-loop-increment",
'-Wno-unreachable-code-return', "-Wno-unreachable-code-return",
] ]
for k, v in DEFINES.items(): for k, v in DEFINES.items():
if k != 'UCONFIG_NO_LEGACY_CONVERSION': if k != "UCONFIG_NO_LEGACY_CONVERSION":
HOST_DEFINES[k] = v HOST_DEFINES[k] = v

View file

@ -1,344 +1,344 @@
# THIS FILE IS GENERATED BY /intl/icu_sources_data.py DO NOT EDIT # THIS FILE IS GENERATED BY /intl/icu_sources_data.py DO NOT EDIT
sources = [ sources = [
'/intl/icu/source/i18n/astro.cpp', "/intl/icu/source/i18n/astro.cpp",
'/intl/icu/source/i18n/basictz.cpp', "/intl/icu/source/i18n/basictz.cpp",
'/intl/icu/source/i18n/bocsu.cpp', "/intl/icu/source/i18n/bocsu.cpp",
'/intl/icu/source/i18n/buddhcal.cpp', "/intl/icu/source/i18n/buddhcal.cpp",
'/intl/icu/source/i18n/calendar.cpp', "/intl/icu/source/i18n/calendar.cpp",
'/intl/icu/source/i18n/cecal.cpp', "/intl/icu/source/i18n/cecal.cpp",
'/intl/icu/source/i18n/chnsecal.cpp', "/intl/icu/source/i18n/chnsecal.cpp",
'/intl/icu/source/i18n/choicfmt.cpp', "/intl/icu/source/i18n/choicfmt.cpp",
'/intl/icu/source/i18n/coleitr.cpp', "/intl/icu/source/i18n/coleitr.cpp",
'/intl/icu/source/i18n/coll.cpp', "/intl/icu/source/i18n/coll.cpp",
'/intl/icu/source/i18n/collation.cpp', "/intl/icu/source/i18n/collation.cpp",
'/intl/icu/source/i18n/collationbuilder.cpp', "/intl/icu/source/i18n/collationbuilder.cpp",
'/intl/icu/source/i18n/collationcompare.cpp', "/intl/icu/source/i18n/collationcompare.cpp",
'/intl/icu/source/i18n/collationdata.cpp', "/intl/icu/source/i18n/collationdata.cpp",
'/intl/icu/source/i18n/collationdatabuilder.cpp', "/intl/icu/source/i18n/collationdatabuilder.cpp",
'/intl/icu/source/i18n/collationdatareader.cpp', "/intl/icu/source/i18n/collationdatareader.cpp",
'/intl/icu/source/i18n/collationdatawriter.cpp', "/intl/icu/source/i18n/collationdatawriter.cpp",
'/intl/icu/source/i18n/collationfastlatin.cpp', "/intl/icu/source/i18n/collationfastlatin.cpp",
'/intl/icu/source/i18n/collationfastlatinbuilder.cpp', "/intl/icu/source/i18n/collationfastlatinbuilder.cpp",
'/intl/icu/source/i18n/collationfcd.cpp', "/intl/icu/source/i18n/collationfcd.cpp",
'/intl/icu/source/i18n/collationiterator.cpp', "/intl/icu/source/i18n/collationiterator.cpp",
'/intl/icu/source/i18n/collationkeys.cpp', "/intl/icu/source/i18n/collationkeys.cpp",
'/intl/icu/source/i18n/collationroot.cpp', "/intl/icu/source/i18n/collationroot.cpp",
'/intl/icu/source/i18n/collationrootelements.cpp', "/intl/icu/source/i18n/collationrootelements.cpp",
'/intl/icu/source/i18n/collationruleparser.cpp', "/intl/icu/source/i18n/collationruleparser.cpp",
'/intl/icu/source/i18n/collationsets.cpp', "/intl/icu/source/i18n/collationsets.cpp",
'/intl/icu/source/i18n/collationsettings.cpp', "/intl/icu/source/i18n/collationsettings.cpp",
'/intl/icu/source/i18n/collationtailoring.cpp', "/intl/icu/source/i18n/collationtailoring.cpp",
'/intl/icu/source/i18n/collationweights.cpp', "/intl/icu/source/i18n/collationweights.cpp",
'/intl/icu/source/i18n/compactdecimalformat.cpp', "/intl/icu/source/i18n/compactdecimalformat.cpp",
'/intl/icu/source/i18n/coptccal.cpp', "/intl/icu/source/i18n/coptccal.cpp",
'/intl/icu/source/i18n/curramt.cpp', "/intl/icu/source/i18n/curramt.cpp",
'/intl/icu/source/i18n/currfmt.cpp', "/intl/icu/source/i18n/currfmt.cpp",
'/intl/icu/source/i18n/currpinf.cpp', "/intl/icu/source/i18n/currpinf.cpp",
'/intl/icu/source/i18n/currunit.cpp', "/intl/icu/source/i18n/currunit.cpp",
'/intl/icu/source/i18n/dangical.cpp', "/intl/icu/source/i18n/dangical.cpp",
'/intl/icu/source/i18n/datefmt.cpp', "/intl/icu/source/i18n/datefmt.cpp",
'/intl/icu/source/i18n/dayperiodrules.cpp', "/intl/icu/source/i18n/dayperiodrules.cpp",
'/intl/icu/source/i18n/dcfmtsym.cpp', "/intl/icu/source/i18n/dcfmtsym.cpp",
'/intl/icu/source/i18n/decContext.cpp', "/intl/icu/source/i18n/decContext.cpp",
'/intl/icu/source/i18n/decimfmt.cpp', "/intl/icu/source/i18n/decimfmt.cpp",
'/intl/icu/source/i18n/decNumber.cpp', "/intl/icu/source/i18n/decNumber.cpp",
'/intl/icu/source/i18n/displayoptions.cpp', "/intl/icu/source/i18n/displayoptions.cpp",
'/intl/icu/source/i18n/dtfmtsym.cpp', "/intl/icu/source/i18n/dtfmtsym.cpp",
'/intl/icu/source/i18n/dtitvfmt.cpp', "/intl/icu/source/i18n/dtitvfmt.cpp",
'/intl/icu/source/i18n/dtitvinf.cpp', "/intl/icu/source/i18n/dtitvinf.cpp",
'/intl/icu/source/i18n/dtptngen.cpp', "/intl/icu/source/i18n/dtptngen.cpp",
'/intl/icu/source/i18n/dtrule.cpp', "/intl/icu/source/i18n/dtrule.cpp",
'/intl/icu/source/i18n/erarules.cpp', "/intl/icu/source/i18n/erarules.cpp",
'/intl/icu/source/i18n/ethpccal.cpp', "/intl/icu/source/i18n/ethpccal.cpp",
'/intl/icu/source/i18n/fmtable.cpp', "/intl/icu/source/i18n/fmtable.cpp",
'/intl/icu/source/i18n/format.cpp', "/intl/icu/source/i18n/format.cpp",
'/intl/icu/source/i18n/formatted_string_builder.cpp', "/intl/icu/source/i18n/formatted_string_builder.cpp",
'/intl/icu/source/i18n/formattedval_iterimpl.cpp', "/intl/icu/source/i18n/formattedval_iterimpl.cpp",
'/intl/icu/source/i18n/formattedval_sbimpl.cpp', "/intl/icu/source/i18n/formattedval_sbimpl.cpp",
'/intl/icu/source/i18n/formattedvalue.cpp', "/intl/icu/source/i18n/formattedvalue.cpp",
'/intl/icu/source/i18n/fphdlimp.cpp', "/intl/icu/source/i18n/fphdlimp.cpp",
'/intl/icu/source/i18n/fpositer.cpp', "/intl/icu/source/i18n/fpositer.cpp",
'/intl/icu/source/i18n/gregocal.cpp', "/intl/icu/source/i18n/gregocal.cpp",
'/intl/icu/source/i18n/gregoimp.cpp', "/intl/icu/source/i18n/gregoimp.cpp",
'/intl/icu/source/i18n/hebrwcal.cpp', "/intl/icu/source/i18n/hebrwcal.cpp",
'/intl/icu/source/i18n/indiancal.cpp', "/intl/icu/source/i18n/indiancal.cpp",
'/intl/icu/source/i18n/islamcal.cpp', "/intl/icu/source/i18n/islamcal.cpp",
'/intl/icu/source/i18n/iso8601cal.cpp', "/intl/icu/source/i18n/iso8601cal.cpp",
'/intl/icu/source/i18n/japancal.cpp', "/intl/icu/source/i18n/japancal.cpp",
'/intl/icu/source/i18n/listformatter.cpp', "/intl/icu/source/i18n/listformatter.cpp",
'/intl/icu/source/i18n/measfmt.cpp', "/intl/icu/source/i18n/measfmt.cpp",
'/intl/icu/source/i18n/measunit.cpp', "/intl/icu/source/i18n/measunit.cpp",
'/intl/icu/source/i18n/measunit_extra.cpp', "/intl/icu/source/i18n/measunit_extra.cpp",
'/intl/icu/source/i18n/measure.cpp', "/intl/icu/source/i18n/measure.cpp",
'/intl/icu/source/i18n/msgfmt.cpp', "/intl/icu/source/i18n/msgfmt.cpp",
'/intl/icu/source/i18n/nfrs.cpp', "/intl/icu/source/i18n/nfrs.cpp",
'/intl/icu/source/i18n/nfrule.cpp', "/intl/icu/source/i18n/nfrule.cpp",
'/intl/icu/source/i18n/nfsubs.cpp', "/intl/icu/source/i18n/nfsubs.cpp",
'/intl/icu/source/i18n/number_affixutils.cpp', "/intl/icu/source/i18n/number_affixutils.cpp",
'/intl/icu/source/i18n/number_asformat.cpp', "/intl/icu/source/i18n/number_asformat.cpp",
'/intl/icu/source/i18n/number_capi.cpp', "/intl/icu/source/i18n/number_capi.cpp",
'/intl/icu/source/i18n/number_compact.cpp', "/intl/icu/source/i18n/number_compact.cpp",
'/intl/icu/source/i18n/number_currencysymbols.cpp', "/intl/icu/source/i18n/number_currencysymbols.cpp",
'/intl/icu/source/i18n/number_decimalquantity.cpp', "/intl/icu/source/i18n/number_decimalquantity.cpp",
'/intl/icu/source/i18n/number_decimfmtprops.cpp', "/intl/icu/source/i18n/number_decimfmtprops.cpp",
'/intl/icu/source/i18n/number_fluent.cpp', "/intl/icu/source/i18n/number_fluent.cpp",
'/intl/icu/source/i18n/number_formatimpl.cpp', "/intl/icu/source/i18n/number_formatimpl.cpp",
'/intl/icu/source/i18n/number_grouping.cpp', "/intl/icu/source/i18n/number_grouping.cpp",
'/intl/icu/source/i18n/number_integerwidth.cpp', "/intl/icu/source/i18n/number_integerwidth.cpp",
'/intl/icu/source/i18n/number_longnames.cpp', "/intl/icu/source/i18n/number_longnames.cpp",
'/intl/icu/source/i18n/number_mapper.cpp', "/intl/icu/source/i18n/number_mapper.cpp",
'/intl/icu/source/i18n/number_modifiers.cpp', "/intl/icu/source/i18n/number_modifiers.cpp",
'/intl/icu/source/i18n/number_multiplier.cpp', "/intl/icu/source/i18n/number_multiplier.cpp",
'/intl/icu/source/i18n/number_notation.cpp', "/intl/icu/source/i18n/number_notation.cpp",
'/intl/icu/source/i18n/number_output.cpp', "/intl/icu/source/i18n/number_output.cpp",
'/intl/icu/source/i18n/number_padding.cpp', "/intl/icu/source/i18n/number_padding.cpp",
'/intl/icu/source/i18n/number_patternmodifier.cpp', "/intl/icu/source/i18n/number_patternmodifier.cpp",
'/intl/icu/source/i18n/number_patternstring.cpp', "/intl/icu/source/i18n/number_patternstring.cpp",
'/intl/icu/source/i18n/number_rounding.cpp', "/intl/icu/source/i18n/number_rounding.cpp",
'/intl/icu/source/i18n/number_scientific.cpp', "/intl/icu/source/i18n/number_scientific.cpp",
'/intl/icu/source/i18n/number_simple.cpp', "/intl/icu/source/i18n/number_simple.cpp",
'/intl/icu/source/i18n/number_skeletons.cpp', "/intl/icu/source/i18n/number_skeletons.cpp",
'/intl/icu/source/i18n/number_symbolswrapper.cpp', "/intl/icu/source/i18n/number_symbolswrapper.cpp",
'/intl/icu/source/i18n/number_usageprefs.cpp', "/intl/icu/source/i18n/number_usageprefs.cpp",
'/intl/icu/source/i18n/number_utils.cpp', "/intl/icu/source/i18n/number_utils.cpp",
'/intl/icu/source/i18n/numfmt.cpp', "/intl/icu/source/i18n/numfmt.cpp",
'/intl/icu/source/i18n/numparse_affixes.cpp', "/intl/icu/source/i18n/numparse_affixes.cpp",
'/intl/icu/source/i18n/numparse_compositions.cpp', "/intl/icu/source/i18n/numparse_compositions.cpp",
'/intl/icu/source/i18n/numparse_currency.cpp', "/intl/icu/source/i18n/numparse_currency.cpp",
'/intl/icu/source/i18n/numparse_decimal.cpp', "/intl/icu/source/i18n/numparse_decimal.cpp",
'/intl/icu/source/i18n/numparse_impl.cpp', "/intl/icu/source/i18n/numparse_impl.cpp",
'/intl/icu/source/i18n/numparse_parsednumber.cpp', "/intl/icu/source/i18n/numparse_parsednumber.cpp",
'/intl/icu/source/i18n/numparse_scientific.cpp', "/intl/icu/source/i18n/numparse_scientific.cpp",
'/intl/icu/source/i18n/numparse_symbols.cpp', "/intl/icu/source/i18n/numparse_symbols.cpp",
'/intl/icu/source/i18n/numparse_validators.cpp', "/intl/icu/source/i18n/numparse_validators.cpp",
'/intl/icu/source/i18n/numrange_capi.cpp', "/intl/icu/source/i18n/numrange_capi.cpp",
'/intl/icu/source/i18n/numrange_fluent.cpp', "/intl/icu/source/i18n/numrange_fluent.cpp",
'/intl/icu/source/i18n/numrange_impl.cpp', "/intl/icu/source/i18n/numrange_impl.cpp",
'/intl/icu/source/i18n/numsys.cpp', "/intl/icu/source/i18n/numsys.cpp",
'/intl/icu/source/i18n/olsontz.cpp', "/intl/icu/source/i18n/olsontz.cpp",
'/intl/icu/source/i18n/persncal.cpp', "/intl/icu/source/i18n/persncal.cpp",
'/intl/icu/source/i18n/pluralranges.cpp', "/intl/icu/source/i18n/pluralranges.cpp",
'/intl/icu/source/i18n/plurfmt.cpp', "/intl/icu/source/i18n/plurfmt.cpp",
'/intl/icu/source/i18n/plurrule.cpp', "/intl/icu/source/i18n/plurrule.cpp",
'/intl/icu/source/i18n/quantityformatter.cpp', "/intl/icu/source/i18n/quantityformatter.cpp",
'/intl/icu/source/i18n/rbnf.cpp', "/intl/icu/source/i18n/rbnf.cpp",
'/intl/icu/source/i18n/rbtz.cpp', "/intl/icu/source/i18n/rbtz.cpp",
'/intl/icu/source/i18n/region.cpp', "/intl/icu/source/i18n/region.cpp",
'/intl/icu/source/i18n/reldatefmt.cpp', "/intl/icu/source/i18n/reldatefmt.cpp",
'/intl/icu/source/i18n/reldtfmt.cpp', "/intl/icu/source/i18n/reldtfmt.cpp",
'/intl/icu/source/i18n/rulebasedcollator.cpp', "/intl/icu/source/i18n/rulebasedcollator.cpp",
'/intl/icu/source/i18n/scriptset.cpp', "/intl/icu/source/i18n/scriptset.cpp",
'/intl/icu/source/i18n/search.cpp', "/intl/icu/source/i18n/search.cpp",
'/intl/icu/source/i18n/selfmt.cpp', "/intl/icu/source/i18n/selfmt.cpp",
'/intl/icu/source/i18n/sharedbreakiterator.cpp', "/intl/icu/source/i18n/sharedbreakiterator.cpp",
'/intl/icu/source/i18n/simpletz.cpp', "/intl/icu/source/i18n/simpletz.cpp",
'/intl/icu/source/i18n/smpdtfmt.cpp', "/intl/icu/source/i18n/smpdtfmt.cpp",
'/intl/icu/source/i18n/smpdtfst.cpp', "/intl/icu/source/i18n/smpdtfst.cpp",
'/intl/icu/source/i18n/sortkey.cpp', "/intl/icu/source/i18n/sortkey.cpp",
'/intl/icu/source/i18n/standardplural.cpp', "/intl/icu/source/i18n/standardplural.cpp",
'/intl/icu/source/i18n/string_segment.cpp', "/intl/icu/source/i18n/string_segment.cpp",
'/intl/icu/source/i18n/stsearch.cpp', "/intl/icu/source/i18n/stsearch.cpp",
'/intl/icu/source/i18n/taiwncal.cpp', "/intl/icu/source/i18n/taiwncal.cpp",
'/intl/icu/source/i18n/timezone.cpp', "/intl/icu/source/i18n/timezone.cpp",
'/intl/icu/source/i18n/tmunit.cpp', "/intl/icu/source/i18n/tmunit.cpp",
'/intl/icu/source/i18n/tmutamt.cpp', "/intl/icu/source/i18n/tmutamt.cpp",
'/intl/icu/source/i18n/tmutfmt.cpp', "/intl/icu/source/i18n/tmutfmt.cpp",
'/intl/icu/source/i18n/tzfmt.cpp', "/intl/icu/source/i18n/tzfmt.cpp",
'/intl/icu/source/i18n/tzgnames.cpp', "/intl/icu/source/i18n/tzgnames.cpp",
'/intl/icu/source/i18n/tznames.cpp', "/intl/icu/source/i18n/tznames.cpp",
'/intl/icu/source/i18n/tznames_impl.cpp', "/intl/icu/source/i18n/tznames_impl.cpp",
'/intl/icu/source/i18n/tzrule.cpp', "/intl/icu/source/i18n/tzrule.cpp",
'/intl/icu/source/i18n/tztrans.cpp', "/intl/icu/source/i18n/tztrans.cpp",
'/intl/icu/source/i18n/ucal.cpp', "/intl/icu/source/i18n/ucal.cpp",
'/intl/icu/source/i18n/ucln_in.cpp', "/intl/icu/source/i18n/ucln_in.cpp",
'/intl/icu/source/i18n/ucol.cpp', "/intl/icu/source/i18n/ucol.cpp",
'/intl/icu/source/i18n/ucol_res.cpp', "/intl/icu/source/i18n/ucol_res.cpp",
'/intl/icu/source/i18n/ucol_sit.cpp', "/intl/icu/source/i18n/ucol_sit.cpp",
'/intl/icu/source/i18n/ucoleitr.cpp', "/intl/icu/source/i18n/ucoleitr.cpp",
'/intl/icu/source/i18n/udat.cpp', "/intl/icu/source/i18n/udat.cpp",
'/intl/icu/source/i18n/udateintervalformat.cpp', "/intl/icu/source/i18n/udateintervalformat.cpp",
'/intl/icu/source/i18n/udatpg.cpp', "/intl/icu/source/i18n/udatpg.cpp",
'/intl/icu/source/i18n/ufieldpositer.cpp', "/intl/icu/source/i18n/ufieldpositer.cpp",
'/intl/icu/source/i18n/uitercollationiterator.cpp', "/intl/icu/source/i18n/uitercollationiterator.cpp",
'/intl/icu/source/i18n/ulistformatter.cpp', "/intl/icu/source/i18n/ulistformatter.cpp",
'/intl/icu/source/i18n/umsg.cpp', "/intl/icu/source/i18n/umsg.cpp",
'/intl/icu/source/i18n/units_complexconverter.cpp', "/intl/icu/source/i18n/units_complexconverter.cpp",
'/intl/icu/source/i18n/units_converter.cpp', "/intl/icu/source/i18n/units_converter.cpp",
'/intl/icu/source/i18n/units_data.cpp', "/intl/icu/source/i18n/units_data.cpp",
'/intl/icu/source/i18n/units_router.cpp', "/intl/icu/source/i18n/units_router.cpp",
'/intl/icu/source/i18n/unum.cpp', "/intl/icu/source/i18n/unum.cpp",
'/intl/icu/source/i18n/unumsys.cpp', "/intl/icu/source/i18n/unumsys.cpp",
'/intl/icu/source/i18n/upluralrules.cpp', "/intl/icu/source/i18n/upluralrules.cpp",
'/intl/icu/source/i18n/usearch.cpp', "/intl/icu/source/i18n/usearch.cpp",
'/intl/icu/source/i18n/uspoof.cpp', "/intl/icu/source/i18n/uspoof.cpp",
'/intl/icu/source/i18n/uspoof_impl.cpp', "/intl/icu/source/i18n/uspoof_impl.cpp",
'/intl/icu/source/i18n/utf16collationiterator.cpp', "/intl/icu/source/i18n/utf16collationiterator.cpp",
'/intl/icu/source/i18n/utf8collationiterator.cpp', "/intl/icu/source/i18n/utf8collationiterator.cpp",
'/intl/icu/source/i18n/utmscale.cpp', "/intl/icu/source/i18n/utmscale.cpp",
'/intl/icu/source/i18n/vtzone.cpp', "/intl/icu/source/i18n/vtzone.cpp",
'/intl/icu/source/i18n/windtfmt.cpp', "/intl/icu/source/i18n/windtfmt.cpp",
'/intl/icu/source/i18n/winnmfmt.cpp', "/intl/icu/source/i18n/winnmfmt.cpp",
'/intl/icu/source/i18n/wintzimpl.cpp', "/intl/icu/source/i18n/wintzimpl.cpp",
'/intl/icu/source/i18n/zonemeta.cpp', "/intl/icu/source/i18n/zonemeta.cpp",
] ]
other_sources = [ other_sources = [
'/intl/icu/source/i18n/alphaindex.cpp', "/intl/icu/source/i18n/alphaindex.cpp",
'/intl/icu/source/i18n/anytrans.cpp', "/intl/icu/source/i18n/anytrans.cpp",
'/intl/icu/source/i18n/brktrans.cpp', "/intl/icu/source/i18n/brktrans.cpp",
'/intl/icu/source/i18n/casetrn.cpp', "/intl/icu/source/i18n/casetrn.cpp",
'/intl/icu/source/i18n/cpdtrans.cpp', "/intl/icu/source/i18n/cpdtrans.cpp",
'/intl/icu/source/i18n/csdetect.cpp', "/intl/icu/source/i18n/csdetect.cpp",
'/intl/icu/source/i18n/csmatch.cpp', "/intl/icu/source/i18n/csmatch.cpp",
'/intl/icu/source/i18n/csr2022.cpp', "/intl/icu/source/i18n/csr2022.cpp",
'/intl/icu/source/i18n/csrecog.cpp', "/intl/icu/source/i18n/csrecog.cpp",
'/intl/icu/source/i18n/csrmbcs.cpp', "/intl/icu/source/i18n/csrmbcs.cpp",
'/intl/icu/source/i18n/csrsbcs.cpp', "/intl/icu/source/i18n/csrsbcs.cpp",
'/intl/icu/source/i18n/csrucode.cpp', "/intl/icu/source/i18n/csrucode.cpp",
'/intl/icu/source/i18n/csrutf8.cpp', "/intl/icu/source/i18n/csrutf8.cpp",
'/intl/icu/source/i18n/double-conversion-bignum-dtoa.cpp', "/intl/icu/source/i18n/double-conversion-bignum-dtoa.cpp",
'/intl/icu/source/i18n/double-conversion-bignum.cpp', "/intl/icu/source/i18n/double-conversion-bignum.cpp",
'/intl/icu/source/i18n/double-conversion-cached-powers.cpp', "/intl/icu/source/i18n/double-conversion-cached-powers.cpp",
'/intl/icu/source/i18n/double-conversion-double-to-string.cpp', "/intl/icu/source/i18n/double-conversion-double-to-string.cpp",
'/intl/icu/source/i18n/double-conversion-fast-dtoa.cpp', "/intl/icu/source/i18n/double-conversion-fast-dtoa.cpp",
'/intl/icu/source/i18n/double-conversion-string-to-double.cpp', "/intl/icu/source/i18n/double-conversion-string-to-double.cpp",
'/intl/icu/source/i18n/double-conversion-strtod.cpp', "/intl/icu/source/i18n/double-conversion-strtod.cpp",
'/intl/icu/source/i18n/esctrn.cpp', "/intl/icu/source/i18n/esctrn.cpp",
'/intl/icu/source/i18n/fmtable_cnv.cpp', "/intl/icu/source/i18n/fmtable_cnv.cpp",
'/intl/icu/source/i18n/funcrepl.cpp', "/intl/icu/source/i18n/funcrepl.cpp",
'/intl/icu/source/i18n/gender.cpp', "/intl/icu/source/i18n/gender.cpp",
'/intl/icu/source/i18n/inputext.cpp', "/intl/icu/source/i18n/inputext.cpp",
'/intl/icu/source/i18n/name2uni.cpp', "/intl/icu/source/i18n/name2uni.cpp",
'/intl/icu/source/i18n/nortrans.cpp', "/intl/icu/source/i18n/nortrans.cpp",
'/intl/icu/source/i18n/nultrans.cpp', "/intl/icu/source/i18n/nultrans.cpp",
'/intl/icu/source/i18n/quant.cpp', "/intl/icu/source/i18n/quant.cpp",
'/intl/icu/source/i18n/rbt.cpp', "/intl/icu/source/i18n/rbt.cpp",
'/intl/icu/source/i18n/rbt_data.cpp', "/intl/icu/source/i18n/rbt_data.cpp",
'/intl/icu/source/i18n/rbt_pars.cpp', "/intl/icu/source/i18n/rbt_pars.cpp",
'/intl/icu/source/i18n/rbt_rule.cpp', "/intl/icu/source/i18n/rbt_rule.cpp",
'/intl/icu/source/i18n/rbt_set.cpp', "/intl/icu/source/i18n/rbt_set.cpp",
'/intl/icu/source/i18n/regexcmp.cpp', "/intl/icu/source/i18n/regexcmp.cpp",
'/intl/icu/source/i18n/regeximp.cpp', "/intl/icu/source/i18n/regeximp.cpp",
'/intl/icu/source/i18n/regexst.cpp', "/intl/icu/source/i18n/regexst.cpp",
'/intl/icu/source/i18n/regextxt.cpp', "/intl/icu/source/i18n/regextxt.cpp",
'/intl/icu/source/i18n/rematch.cpp', "/intl/icu/source/i18n/rematch.cpp",
'/intl/icu/source/i18n/remtrans.cpp', "/intl/icu/source/i18n/remtrans.cpp",
'/intl/icu/source/i18n/repattrn.cpp', "/intl/icu/source/i18n/repattrn.cpp",
'/intl/icu/source/i18n/scientificnumberformatter.cpp', "/intl/icu/source/i18n/scientificnumberformatter.cpp",
'/intl/icu/source/i18n/strmatch.cpp', "/intl/icu/source/i18n/strmatch.cpp",
'/intl/icu/source/i18n/strrepl.cpp', "/intl/icu/source/i18n/strrepl.cpp",
'/intl/icu/source/i18n/titletrn.cpp', "/intl/icu/source/i18n/titletrn.cpp",
'/intl/icu/source/i18n/tolowtrn.cpp', "/intl/icu/source/i18n/tolowtrn.cpp",
'/intl/icu/source/i18n/toupptrn.cpp', "/intl/icu/source/i18n/toupptrn.cpp",
'/intl/icu/source/i18n/translit.cpp', "/intl/icu/source/i18n/translit.cpp",
'/intl/icu/source/i18n/transreg.cpp', "/intl/icu/source/i18n/transreg.cpp",
'/intl/icu/source/i18n/tridpars.cpp', "/intl/icu/source/i18n/tridpars.cpp",
'/intl/icu/source/i18n/ucsdet.cpp', "/intl/icu/source/i18n/ucsdet.cpp",
'/intl/icu/source/i18n/ulocdata.cpp', "/intl/icu/source/i18n/ulocdata.cpp",
'/intl/icu/source/i18n/unesctrn.cpp', "/intl/icu/source/i18n/unesctrn.cpp",
'/intl/icu/source/i18n/uni2name.cpp', "/intl/icu/source/i18n/uni2name.cpp",
'/intl/icu/source/i18n/uregex.cpp', "/intl/icu/source/i18n/uregex.cpp",
'/intl/icu/source/i18n/uregexc.cpp', "/intl/icu/source/i18n/uregexc.cpp",
'/intl/icu/source/i18n/uregion.cpp', "/intl/icu/source/i18n/uregion.cpp",
'/intl/icu/source/i18n/uspoof_build.cpp', "/intl/icu/source/i18n/uspoof_build.cpp",
'/intl/icu/source/i18n/uspoof_conf.cpp', "/intl/icu/source/i18n/uspoof_conf.cpp",
'/intl/icu/source/i18n/utrans.cpp', "/intl/icu/source/i18n/utrans.cpp",
'/intl/icu/source/i18n/vzone.cpp', "/intl/icu/source/i18n/vzone.cpp",
'/intl/icu/source/i18n/zrule.cpp', "/intl/icu/source/i18n/zrule.cpp",
'/intl/icu/source/i18n/ztrans.cpp', "/intl/icu/source/i18n/ztrans.cpp",
] ]
EXPORTS.unicode += [ EXPORTS.unicode += [
'/intl/icu/source/i18n/unicode/alphaindex.h', "/intl/icu/source/i18n/unicode/alphaindex.h",
'/intl/icu/source/i18n/unicode/basictz.h', "/intl/icu/source/i18n/unicode/basictz.h",
'/intl/icu/source/i18n/unicode/calendar.h', "/intl/icu/source/i18n/unicode/calendar.h",
'/intl/icu/source/i18n/unicode/choicfmt.h', "/intl/icu/source/i18n/unicode/choicfmt.h",
'/intl/icu/source/i18n/unicode/coleitr.h', "/intl/icu/source/i18n/unicode/coleitr.h",
'/intl/icu/source/i18n/unicode/coll.h', "/intl/icu/source/i18n/unicode/coll.h",
'/intl/icu/source/i18n/unicode/compactdecimalformat.h', "/intl/icu/source/i18n/unicode/compactdecimalformat.h",
'/intl/icu/source/i18n/unicode/curramt.h', "/intl/icu/source/i18n/unicode/curramt.h",
'/intl/icu/source/i18n/unicode/currpinf.h', "/intl/icu/source/i18n/unicode/currpinf.h",
'/intl/icu/source/i18n/unicode/currunit.h', "/intl/icu/source/i18n/unicode/currunit.h",
'/intl/icu/source/i18n/unicode/datefmt.h', "/intl/icu/source/i18n/unicode/datefmt.h",
'/intl/icu/source/i18n/unicode/dcfmtsym.h', "/intl/icu/source/i18n/unicode/dcfmtsym.h",
'/intl/icu/source/i18n/unicode/decimfmt.h', "/intl/icu/source/i18n/unicode/decimfmt.h",
'/intl/icu/source/i18n/unicode/displayoptions.h', "/intl/icu/source/i18n/unicode/displayoptions.h",
'/intl/icu/source/i18n/unicode/dtfmtsym.h', "/intl/icu/source/i18n/unicode/dtfmtsym.h",
'/intl/icu/source/i18n/unicode/dtitvfmt.h', "/intl/icu/source/i18n/unicode/dtitvfmt.h",
'/intl/icu/source/i18n/unicode/dtitvinf.h', "/intl/icu/source/i18n/unicode/dtitvinf.h",
'/intl/icu/source/i18n/unicode/dtptngen.h', "/intl/icu/source/i18n/unicode/dtptngen.h",
'/intl/icu/source/i18n/unicode/dtrule.h', "/intl/icu/source/i18n/unicode/dtrule.h",
'/intl/icu/source/i18n/unicode/fieldpos.h', "/intl/icu/source/i18n/unicode/fieldpos.h",
'/intl/icu/source/i18n/unicode/fmtable.h', "/intl/icu/source/i18n/unicode/fmtable.h",
'/intl/icu/source/i18n/unicode/format.h', "/intl/icu/source/i18n/unicode/format.h",
'/intl/icu/source/i18n/unicode/formattednumber.h', "/intl/icu/source/i18n/unicode/formattednumber.h",
'/intl/icu/source/i18n/unicode/formattedvalue.h', "/intl/icu/source/i18n/unicode/formattedvalue.h",
'/intl/icu/source/i18n/unicode/fpositer.h', "/intl/icu/source/i18n/unicode/fpositer.h",
'/intl/icu/source/i18n/unicode/gender.h', "/intl/icu/source/i18n/unicode/gender.h",
'/intl/icu/source/i18n/unicode/gregocal.h', "/intl/icu/source/i18n/unicode/gregocal.h",
'/intl/icu/source/i18n/unicode/listformatter.h', "/intl/icu/source/i18n/unicode/listformatter.h",
'/intl/icu/source/i18n/unicode/measfmt.h', "/intl/icu/source/i18n/unicode/measfmt.h",
'/intl/icu/source/i18n/unicode/measunit.h', "/intl/icu/source/i18n/unicode/measunit.h",
'/intl/icu/source/i18n/unicode/measure.h', "/intl/icu/source/i18n/unicode/measure.h",
'/intl/icu/source/i18n/unicode/msgfmt.h', "/intl/icu/source/i18n/unicode/msgfmt.h",
'/intl/icu/source/i18n/unicode/nounit.h', "/intl/icu/source/i18n/unicode/nounit.h",
'/intl/icu/source/i18n/unicode/numberformatter.h', "/intl/icu/source/i18n/unicode/numberformatter.h",
'/intl/icu/source/i18n/unicode/numberrangeformatter.h', "/intl/icu/source/i18n/unicode/numberrangeformatter.h",
'/intl/icu/source/i18n/unicode/numfmt.h', "/intl/icu/source/i18n/unicode/numfmt.h",
'/intl/icu/source/i18n/unicode/numsys.h', "/intl/icu/source/i18n/unicode/numsys.h",
'/intl/icu/source/i18n/unicode/plurfmt.h', "/intl/icu/source/i18n/unicode/plurfmt.h",
'/intl/icu/source/i18n/unicode/plurrule.h', "/intl/icu/source/i18n/unicode/plurrule.h",
'/intl/icu/source/i18n/unicode/rbnf.h', "/intl/icu/source/i18n/unicode/rbnf.h",
'/intl/icu/source/i18n/unicode/rbtz.h', "/intl/icu/source/i18n/unicode/rbtz.h",
'/intl/icu/source/i18n/unicode/regex.h', "/intl/icu/source/i18n/unicode/regex.h",
'/intl/icu/source/i18n/unicode/region.h', "/intl/icu/source/i18n/unicode/region.h",
'/intl/icu/source/i18n/unicode/reldatefmt.h', "/intl/icu/source/i18n/unicode/reldatefmt.h",
'/intl/icu/source/i18n/unicode/scientificnumberformatter.h', "/intl/icu/source/i18n/unicode/scientificnumberformatter.h",
'/intl/icu/source/i18n/unicode/search.h', "/intl/icu/source/i18n/unicode/search.h",
'/intl/icu/source/i18n/unicode/selfmt.h', "/intl/icu/source/i18n/unicode/selfmt.h",
'/intl/icu/source/i18n/unicode/simplenumberformatter.h', "/intl/icu/source/i18n/unicode/simplenumberformatter.h",
'/intl/icu/source/i18n/unicode/simpletz.h', "/intl/icu/source/i18n/unicode/simpletz.h",
'/intl/icu/source/i18n/unicode/smpdtfmt.h', "/intl/icu/source/i18n/unicode/smpdtfmt.h",
'/intl/icu/source/i18n/unicode/sortkey.h', "/intl/icu/source/i18n/unicode/sortkey.h",
'/intl/icu/source/i18n/unicode/stsearch.h', "/intl/icu/source/i18n/unicode/stsearch.h",
'/intl/icu/source/i18n/unicode/tblcoll.h', "/intl/icu/source/i18n/unicode/tblcoll.h",
'/intl/icu/source/i18n/unicode/timezone.h', "/intl/icu/source/i18n/unicode/timezone.h",
'/intl/icu/source/i18n/unicode/tmunit.h', "/intl/icu/source/i18n/unicode/tmunit.h",
'/intl/icu/source/i18n/unicode/tmutamt.h', "/intl/icu/source/i18n/unicode/tmutamt.h",
'/intl/icu/source/i18n/unicode/tmutfmt.h', "/intl/icu/source/i18n/unicode/tmutfmt.h",
'/intl/icu/source/i18n/unicode/translit.h', "/intl/icu/source/i18n/unicode/translit.h",
'/intl/icu/source/i18n/unicode/tzfmt.h', "/intl/icu/source/i18n/unicode/tzfmt.h",
'/intl/icu/source/i18n/unicode/tznames.h', "/intl/icu/source/i18n/unicode/tznames.h",
'/intl/icu/source/i18n/unicode/tzrule.h', "/intl/icu/source/i18n/unicode/tzrule.h",
'/intl/icu/source/i18n/unicode/tztrans.h', "/intl/icu/source/i18n/unicode/tztrans.h",
'/intl/icu/source/i18n/unicode/ucal.h', "/intl/icu/source/i18n/unicode/ucal.h",
'/intl/icu/source/i18n/unicode/ucol.h', "/intl/icu/source/i18n/unicode/ucol.h",
'/intl/icu/source/i18n/unicode/ucoleitr.h', "/intl/icu/source/i18n/unicode/ucoleitr.h",
'/intl/icu/source/i18n/unicode/ucsdet.h', "/intl/icu/source/i18n/unicode/ucsdet.h",
'/intl/icu/source/i18n/unicode/udat.h', "/intl/icu/source/i18n/unicode/udat.h",
'/intl/icu/source/i18n/unicode/udateintervalformat.h', "/intl/icu/source/i18n/unicode/udateintervalformat.h",
'/intl/icu/source/i18n/unicode/udatpg.h', "/intl/icu/source/i18n/unicode/udatpg.h",
'/intl/icu/source/i18n/unicode/udisplayoptions.h', "/intl/icu/source/i18n/unicode/udisplayoptions.h",
'/intl/icu/source/i18n/unicode/ufieldpositer.h', "/intl/icu/source/i18n/unicode/ufieldpositer.h",
'/intl/icu/source/i18n/unicode/uformattable.h', "/intl/icu/source/i18n/unicode/uformattable.h",
'/intl/icu/source/i18n/unicode/uformattednumber.h', "/intl/icu/source/i18n/unicode/uformattednumber.h",
'/intl/icu/source/i18n/unicode/uformattedvalue.h', "/intl/icu/source/i18n/unicode/uformattedvalue.h",
'/intl/icu/source/i18n/unicode/ugender.h', "/intl/icu/source/i18n/unicode/ugender.h",
'/intl/icu/source/i18n/unicode/ulistformatter.h', "/intl/icu/source/i18n/unicode/ulistformatter.h",
'/intl/icu/source/i18n/unicode/ulocdata.h', "/intl/icu/source/i18n/unicode/ulocdata.h",
'/intl/icu/source/i18n/unicode/umsg.h', "/intl/icu/source/i18n/unicode/umsg.h",
'/intl/icu/source/i18n/unicode/unirepl.h', "/intl/icu/source/i18n/unicode/unirepl.h",
'/intl/icu/source/i18n/unicode/unum.h', "/intl/icu/source/i18n/unicode/unum.h",
'/intl/icu/source/i18n/unicode/unumberformatter.h', "/intl/icu/source/i18n/unicode/unumberformatter.h",
'/intl/icu/source/i18n/unicode/unumberoptions.h', "/intl/icu/source/i18n/unicode/unumberoptions.h",
'/intl/icu/source/i18n/unicode/unumberrangeformatter.h', "/intl/icu/source/i18n/unicode/unumberrangeformatter.h",
'/intl/icu/source/i18n/unicode/unumsys.h', "/intl/icu/source/i18n/unicode/unumsys.h",
'/intl/icu/source/i18n/unicode/upluralrules.h', "/intl/icu/source/i18n/unicode/upluralrules.h",
'/intl/icu/source/i18n/unicode/uregex.h', "/intl/icu/source/i18n/unicode/uregex.h",
'/intl/icu/source/i18n/unicode/uregion.h', "/intl/icu/source/i18n/unicode/uregion.h",
'/intl/icu/source/i18n/unicode/ureldatefmt.h', "/intl/icu/source/i18n/unicode/ureldatefmt.h",
'/intl/icu/source/i18n/unicode/usearch.h', "/intl/icu/source/i18n/unicode/usearch.h",
'/intl/icu/source/i18n/unicode/usimplenumberformatter.h', "/intl/icu/source/i18n/unicode/usimplenumberformatter.h",
'/intl/icu/source/i18n/unicode/uspoof.h', "/intl/icu/source/i18n/unicode/uspoof.h",
'/intl/icu/source/i18n/unicode/utmscale.h', "/intl/icu/source/i18n/unicode/utmscale.h",
'/intl/icu/source/i18n/unicode/utrans.h', "/intl/icu/source/i18n/unicode/utrans.h",
'/intl/icu/source/i18n/unicode/vtzone.h', "/intl/icu/source/i18n/unicode/vtzone.h",
] ]

View file

@ -1,4 +1,4 @@
# THIS FILE IS GENERATED BY /intl/icu_sources_data.py DO NOT EDIT # THIS FILE IS GENERATED BY /intl/icu_sources_data.py DO NOT EDIT
sources = [ sources = [
'/intl/icu/source/tools/icupkg/icupkg.cpp', "/intl/icu/source/tools/icupkg/icupkg.cpp",
] ]

View file

@ -1,27 +1,27 @@
# THIS FILE IS GENERATED BY /intl/icu_sources_data.py DO NOT EDIT # THIS FILE IS GENERATED BY /intl/icu_sources_data.py DO NOT EDIT
sources = [ sources = [
'/intl/icu/source/tools/toolutil/collationinfo.cpp', "/intl/icu/source/tools/toolutil/collationinfo.cpp",
'/intl/icu/source/tools/toolutil/dbgutil.cpp', "/intl/icu/source/tools/toolutil/dbgutil.cpp",
'/intl/icu/source/tools/toolutil/denseranges.cpp', "/intl/icu/source/tools/toolutil/denseranges.cpp",
'/intl/icu/source/tools/toolutil/filestrm.cpp', "/intl/icu/source/tools/toolutil/filestrm.cpp",
'/intl/icu/source/tools/toolutil/filetools.cpp', "/intl/icu/source/tools/toolutil/filetools.cpp",
'/intl/icu/source/tools/toolutil/flagparser.cpp', "/intl/icu/source/tools/toolutil/flagparser.cpp",
'/intl/icu/source/tools/toolutil/package.cpp', "/intl/icu/source/tools/toolutil/package.cpp",
'/intl/icu/source/tools/toolutil/pkg_genc.cpp', "/intl/icu/source/tools/toolutil/pkg_genc.cpp",
'/intl/icu/source/tools/toolutil/pkg_gencmn.cpp', "/intl/icu/source/tools/toolutil/pkg_gencmn.cpp",
'/intl/icu/source/tools/toolutil/pkg_icu.cpp', "/intl/icu/source/tools/toolutil/pkg_icu.cpp",
'/intl/icu/source/tools/toolutil/pkgitems.cpp', "/intl/icu/source/tools/toolutil/pkgitems.cpp",
'/intl/icu/source/tools/toolutil/ppucd.cpp', "/intl/icu/source/tools/toolutil/ppucd.cpp",
'/intl/icu/source/tools/toolutil/swapimpl.cpp', "/intl/icu/source/tools/toolutil/swapimpl.cpp",
'/intl/icu/source/tools/toolutil/toolutil.cpp', "/intl/icu/source/tools/toolutil/toolutil.cpp",
'/intl/icu/source/tools/toolutil/ucbuf.cpp', "/intl/icu/source/tools/toolutil/ucbuf.cpp",
'/intl/icu/source/tools/toolutil/ucln_tu.cpp', "/intl/icu/source/tools/toolutil/ucln_tu.cpp",
'/intl/icu/source/tools/toolutil/ucm.cpp', "/intl/icu/source/tools/toolutil/ucm.cpp",
'/intl/icu/source/tools/toolutil/ucmstate.cpp', "/intl/icu/source/tools/toolutil/ucmstate.cpp",
'/intl/icu/source/tools/toolutil/udbgutil.cpp', "/intl/icu/source/tools/toolutil/udbgutil.cpp",
'/intl/icu/source/tools/toolutil/unewdata.cpp', "/intl/icu/source/tools/toolutil/unewdata.cpp",
'/intl/icu/source/tools/toolutil/uoptions.cpp', "/intl/icu/source/tools/toolutil/uoptions.cpp",
'/intl/icu/source/tools/toolutil/uparse.cpp', "/intl/icu/source/tools/toolutil/uparse.cpp",
'/intl/icu/source/tools/toolutil/writesrc.cpp', "/intl/icu/source/tools/toolutil/writesrc.cpp",
'/intl/icu/source/tools/toolutil/xmlparser.cpp', "/intl/icu/source/tools/toolutil/xmlparser.cpp",
] ]

View file

@ -16,46 +16,45 @@
# file a Core:XPCOM bug with a title like "STL: Review exception # file a Core:XPCOM bug with a title like "STL: Review exception
# safety of <foo> for gcc and MSVC". # safety of <foo> for gcc and MSVC".
stl_headers = [ stl_headers = [
'new', "new",
# FIXME: these headers haven't been reviewed yet, but we use them # FIXME: these headers haven't been reviewed yet, but we use them
# unsafely in Gecko, so we might as well prevent them from # unsafely in Gecko, so we might as well prevent them from
# throwing exceptions # throwing exceptions
'algorithm', "algorithm",
'atomic', "atomic",
'cassert', "cassert",
'climits', "climits",
'cmath', "cmath",
'condition_variable', "condition_variable",
'cstdarg', "cstdarg",
'cstdio', "cstdio",
'cstdlib', "cstdlib",
'cstring', "cstring",
'cwchar', "cwchar",
'deque', "deque",
'functional', "functional",
'ios', "ios",
'iosfwd', "iosfwd",
'iostream', "iostream",
'istream', "istream",
'iterator', "iterator",
'limits', "limits",
'list', "list",
'map', "map",
'memory', "memory",
'mutex', "mutex",
'ostream', "ostream",
'regex', "regex",
'set', "set",
'shared_mutex', "shared_mutex",
'stack', "stack",
'string', "string",
'thread', "thread",
'tuple', "tuple",
'type_traits', "type_traits",
'unordered_map', "unordered_map",
'unordered_set', "unordered_set",
'utility', "utility",
'vector', "vector",
'xutility', "xutility",
] ]

File diff suppressed because it is too large Load diff

View file

@ -3,31 +3,34 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this # License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
@template @template
def CompiledModules(*modules): def CompiledModules(*modules):
compiled_directory_whitelist = ( compiled_directory_whitelist = ("devtools/client/debugger/src",)
"devtools/client/debugger/src",
)
if not RELATIVEDIR.startswith(compiled_directory_whitelist): if not RELATIVEDIR.startswith(compiled_directory_whitelist):
error("File in directory provided to CompiledModules not allowed: " + RELATIVEDIR) error(
"File in directory provided to CompiledModules not allowed: " + RELATIVEDIR
)
# HACK. Template export() propagation is janky so we have to re-implement the # HACK. Template export() propagation is janky so we have to re-implement the
# logic for computing FINAL_TARGET from scratch. Here we emulate the # logic for computing FINAL_TARGET from scratch. Here we emulate the
# DIST_SUBDIR export in devtools/moz.build. # DIST_SUBDIR export in devtools/moz.build.
if CONFIG['MOZ_BUILD_APP'] == 'browser': if CONFIG["MOZ_BUILD_APP"] == "browser":
final_target = '/dist/bin/browser' final_target = "/dist/bin/browser"
else: else:
final_target = '/dist/bin' final_target = "/dist/bin"
final = '/'.join([final_target, 'chrome/devtools/modules', RELATIVEDIR]) final = "/".join([final_target, "chrome/devtools/modules", RELATIVEDIR])
# For the same reason as https://searchfox.org/mozilla-central/source/mobile/android/base/moz.build#180-184 # For the same reason as https://searchfox.org/mozilla-central/source/mobile/android/base/moz.build#180-184
# we have to insert a first entry as recursivemake overrides the first entry and we end up with empty files # we have to insert a first entry as recursivemake overrides the first entry and we end up with empty files
# for the first file only. # for the first file only.
GeneratedFile( GeneratedFile(
"node.stub", *[final + '/' + module for module in modules], "node.stub",
script='/python/mozbuild/mozbuild/action/node.py', *[final + "/" + module for module in modules],
entry_point='generate', script="/python/mozbuild/mozbuild/action/node.py",
inputs=['/devtools/client/shared/build/build.js'] + entry_point="generate",
[module for module in modules], inputs=["/devtools/client/shared/build/build.js"]
flags=['/'.join([TOPOBJDIR, final])]) + [module for module in modules],
flags=["/".join([TOPOBJDIR, final])]
)

View file

@ -4,9 +4,10 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this # License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
@template @template
def DevToolsModules(*modules): def DevToolsModules(*modules):
'''Installs JS modules at a resource:// path that corresponds directly to """Installs JS modules at a resource:// path that corresponds directly to
their source tree location. their source tree location.
For this to work as intended, a moz.build file should be placed in each For this to work as intended, a moz.build file should be placed in each
@ -14,27 +15,30 @@ def DevToolsModules(*modules):
its own directory. Subdirectories should use their own moz.build. its own directory. Subdirectories should use their own moz.build.
By following this pattern, there's less magic to require() and resource:// By following this pattern, there's less magic to require() and resource://
paths, since they now match the source tree.''' paths, since they now match the source tree."""
for m in modules: for m in modules:
if '/' in m: if "/" in m:
error('DevToolsModules must be used from the same directory as ' + error(
'the files to be installed.') "DevToolsModules must be used from the same directory as "
+ "the files to be installed."
)
# jar.mn manifest files are typically used to install files to chrome # jar.mn manifest files are typically used to install files to chrome
# locations. Instead of doing this, use this DevToolsModules syntax via # locations. Instead of doing this, use this DevToolsModules syntax via
# moz.build files to do the installation so that we can enforce correct # moz.build files to do the installation so that we can enforce correct
# paths based on source tree location. # paths based on source tree location.
base = FINAL_TARGET_FILES.chrome.devtools.modules base = FINAL_TARGET_FILES.chrome.devtools.modules
for dir in RELATIVEDIR.split('/'): for dir in RELATIVEDIR.split("/"):
base = base[dir] base = base[dir]
base += [m for m in modules] base += [m for m in modules]
@template @template
def RenamedDevToolsModules(source, target): def RenamedDevToolsModules(source, target):
''' Helper function to ship a file (source) with a distinct name (target). """Helper function to ship a file (source) with a distinct name (target).
This will ship the file the same way DevToolsModule does it, to resource://devtools/''' This will ship the file the same way DevToolsModule does it, to resource://devtools/
"""
base = FINAL_TARGET_FILES.chrome.devtools.modules base = FINAL_TARGET_FILES.chrome.devtools.modules
for dir in RELATIVEDIR.split("/"): for dir in RELATIVEDIR.split("/"):

View file

@ -10,33 +10,39 @@
# start: # start:
# https://source.chromium.org/search?q=usage:%23if.*def.*%5B%5E_%5D$%20AND%20path:%5C.h%20AND%20path:%5Ethird_party%2Fwebrtc&ss=chromium # https://source.chromium.org/search?q=usage:%23if.*def.*%5B%5E_%5D$%20AND%20path:%5C.h%20AND%20path:%5Ethird_party%2Fwebrtc&ss=chromium
if CONFIG['MOZ_WEBRTC']: if CONFIG["MOZ_WEBRTC"]:
DEFINES['HAVE_UINT64_T'] = True DEFINES["HAVE_UINT64_T"] = True
DEFINES['WEBRTC_MOZILLA_BUILD'] = True DEFINES["WEBRTC_MOZILLA_BUILD"] = True
DEFINES['RTC_ENABLE_VP9'] = True DEFINES["RTC_ENABLE_VP9"] = True
if CONFIG['OS_TARGET'] != 'WINNT': if CONFIG["OS_TARGET"] != "WINNT":
DEFINES['WEBRTC_POSIX'] = True DEFINES["WEBRTC_POSIX"] = True
DEFINES['WEBRTC_BUILD_LIBEVENT'] = True DEFINES["WEBRTC_BUILD_LIBEVENT"] = True
if CONFIG['OS_TARGET'] == 'Linux': if CONFIG["OS_TARGET"] == "Linux":
DEFINES['WEBRTC_LINUX'] = True DEFINES["WEBRTC_LINUX"] = True
if CONFIG['CPU_ARCH'] == 'x86' or CONFIG['CPU_ARCH'] == 'x86_64' or \ if (
CONFIG['CPU_ARCH'] == 'arm' or CONFIG['CPU_ARCH'] == 'aarch64' or \ CONFIG["CPU_ARCH"] == "x86"
(CONFIG['TARGET_ENDIANNESS'] == 'little' and CONFIG['CPU_ARCH'].startswith('mips')): or CONFIG["CPU_ARCH"] == "x86_64"
DEFINES['WEBRTC_USE_PIPEWIRE'] = True or CONFIG["CPU_ARCH"] == "arm"
elif CONFIG['OS_TARGET'] == 'Darwin': or CONFIG["CPU_ARCH"] == "aarch64"
DEFINES['WEBRTC_MAC'] = True or (
elif CONFIG['OS_TARGET'] == 'WINNT': CONFIG["TARGET_ENDIANNESS"] == "little"
DEFINES['WEBRTC_WIN'] = True and CONFIG["CPU_ARCH"].startswith("mips")
DEFINES['RTC_ENABLE_WIN_WGC'] = True )
DEFINES['HAVE_WINSOCK2_H'] = True ):
elif CONFIG['OS_TARGET'] in ('DragonFly', 'FreeBSD', 'NetBSD', 'OpenBSD'): DEFINES["WEBRTC_USE_PIPEWIRE"] = True
DEFINES['WEBRTC_BSD'] = True elif CONFIG["OS_TARGET"] == "Darwin":
elif CONFIG['OS_TARGET'] == 'Android': DEFINES["WEBRTC_MAC"] = True
DEFINES['WEBRTC_LINUX'] = True elif CONFIG["OS_TARGET"] == "WINNT":
DEFINES['WEBRTC_ANDROID'] = True DEFINES["WEBRTC_WIN"] = True
DEFINES["RTC_ENABLE_WIN_WGC"] = True
if CONFIG['MOZ_X11']: DEFINES["HAVE_WINSOCK2_H"] = True
DEFINES['WEBRTC_USE_X11'] = True elif CONFIG["OS_TARGET"] in ("DragonFly", "FreeBSD", "NetBSD", "OpenBSD"):
DEFINES["WEBRTC_BSD"] = True
elif CONFIG["OS_TARGET"] == "Android":
DEFINES["WEBRTC_LINUX"] = True
DEFINES["WEBRTC_ANDROID"] = True
if CONFIG["MOZ_X11"]:
DEFINES["WEBRTC_USE_X11"] = True

View file

@ -4,6 +4,7 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this # License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
@template @template
def HunspellIncludes(): def HunspellIncludes():
ForceInclude('hunspell_alloc_hooks.h') ForceInclude("hunspell_alloc_hooks.h")

View file

@ -5,24 +5,24 @@
# file, You can obtain one at http://mozilla.org/MPL/2.0/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
LOCAL_INCLUDES += [ LOCAL_INCLUDES += [
'!/ipc/ipdl/_ipdlheaders', "!/ipc/ipdl/_ipdlheaders",
'/ipc/chromium/src', "/ipc/chromium/src",
] ]
if CONFIG['OS_ARCH'] == 'WINNT': if CONFIG["OS_ARCH"] == "WINNT":
OS_LIBS += [ OS_LIBS += [
'shell32', "shell32",
'dbghelp', "dbghelp",
] ]
DEFINES['UNICODE'] = True DEFINES["UNICODE"] = True
DEFINES['_UNICODE'] = True DEFINES["_UNICODE"] = True
DEFINES['_CRT_RAND_S'] = True DEFINES["_CRT_RAND_S"] = True
DEFINES['CERT_CHAIN_PARA_HAS_EXTRA_FIELDS'] = True DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True
DEFINES['_SECURE_ATL'] = True DEFINES["_SECURE_ATL"] = True
DEFINES['CHROMIUM_BUILD'] = True DEFINES["CHROMIUM_BUILD"] = True
DEFINES['U_STATIC_IMPLEMENTATION'] = True DEFINES["U_STATIC_IMPLEMENTATION"] = True
DEFINES['WIN32'] = True DEFINES["WIN32"] = True
DEFINES['_WIN32'] = True DEFINES["_WIN32"] = True
DEFINES['_WINDOWS'] = True DEFINES["_WINDOWS"] = True
DEFINES['WIN32_LEAN_AND_MEAN'] = True DEFINES["WIN32_LEAN_AND_MEAN"] = True

View file

@ -4,41 +4,40 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this # License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
if CONFIG['COMPILE_ENVIRONMENT']: if CONFIG["COMPILE_ENVIRONMENT"]:
DIRS += [ DIRS += [
'/js/src', "/js/src",
] ]
else: else:
TEST_DIRS += [ TEST_DIRS += [
'/js/src/tests', "/js/src/tests",
] ]
if CONFIG['JS_STANDALONE'] and CONFIG['OS_ARCH'] != 'WINNT': if CONFIG["JS_STANDALONE"] and CONFIG["OS_ARCH"] != "WINNT":
DIRS += [ DIRS += [
'/build/unix', "/build/unix",
] ]
DIRS += [ DIRS += [
'/config/external/fdlibm', "/config/external/fdlibm",
'/config/external/nspr', "/config/external/nspr",
'/config/external/zlib', "/config/external/zlib",
'/memory', "/memory",
'/mfbt', "/mfbt",
'/mozglue', "/mozglue",
] ]
if CONFIG['JS_HAS_INTL_API']: if CONFIG["JS_HAS_INTL_API"]:
DIRS += [ DIRS += [
'/config/external/icu', "/config/external/icu",
] ]
if CONFIG['COMPILE_ENVIRONMENT'] and CONFIG['BUILD_CTYPES']: if CONFIG["COMPILE_ENVIRONMENT"] and CONFIG["BUILD_CTYPES"]:
DIRS += [ DIRS += [
'/config/external/ffi', "/config/external/ffi",
] ]
if CONFIG['JS_STANDALONE'] and CONFIG['FUZZING']: if CONFIG["JS_STANDALONE"] and CONFIG["FUZZING"]:
DIRS += [ DIRS += [
'/tools/fuzzing/', "/tools/fuzzing/",
] ]

View file

@ -6,17 +6,21 @@
# Some huge-mapping optimization instead of bounds checks on supported # Some huge-mapping optimization instead of bounds checks on supported
# platforms. # platforms.
if CONFIG['JS_CODEGEN_X64'] or CONFIG['JS_CODEGEN_ARM64'] or CONFIG['JS_CODEGEN_RISCV64']: if (
DEFINES['WASM_SUPPORTS_HUGE_MEMORY'] = True CONFIG["JS_CODEGEN_X64"]
or CONFIG["JS_CODEGEN_ARM64"]
or CONFIG["JS_CODEGEN_RISCV64"]
):
DEFINES["WASM_SUPPORTS_HUGE_MEMORY"] = True
# Enables CACHEIR_LOGS to diagnose IC coverage, and # Enables CACHEIR_LOGS to diagnose IC coverage, and
# Structured spewer for diagnostics # Structured spewer for diagnostics
if CONFIG['MOZ_DEBUG'] or CONFIG['NIGHTLY_BUILD']: if CONFIG["MOZ_DEBUG"] or CONFIG["NIGHTLY_BUILD"]:
DEFINES['JS_CACHEIR_SPEW'] = True DEFINES["JS_CACHEIR_SPEW"] = True
DEFINES['JS_STRUCTURED_SPEW'] = True DEFINES["JS_STRUCTURED_SPEW"] = True
# CTypes # CTypes
if CONFIG['JS_HAS_CTYPES']: if CONFIG["JS_HAS_CTYPES"]:
DEFINES['JS_HAS_CTYPES'] = True DEFINES["JS_HAS_CTYPES"] = True
if not CONFIG['MOZ_SYSTEM_FFI']: if not CONFIG["MOZ_SYSTEM_FFI"]:
DEFINES['FFI_BUILDING'] = True DEFINES["FFI_BUILDING"] = True

View file

@ -5,14 +5,14 @@
# file, You can obtain one at http://mozilla.org/MPL/2.0/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
# ICU pkg-config flags # ICU pkg-config flags
CXXFLAGS += CONFIG['MOZ_ICU_CFLAGS'] CXXFLAGS += CONFIG["MOZ_ICU_CFLAGS"]
if CONFIG['CC_TYPE'] in ('clang', 'gcc'): if CONFIG["CC_TYPE"] in ("clang", "gcc"):
# Error on bad printf-like format strings # Error on bad printf-like format strings
CXXFLAGS += ['-Werror=format'] CXXFLAGS += ["-Werror=format"]
# gcc is buggy and warns on our attempts to JS_PUBLIC_API our # gcc is buggy and warns on our attempts to JS_PUBLIC_API our
# forward-declarations or explicit template instantiations. See # forward-declarations or explicit template instantiations. See
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50044 # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50044
if CONFIG['CC_TYPE'] == 'gcc': if CONFIG["CC_TYPE"] == "gcc":
CXXFLAGS += ['-Wno-attributes'] CXXFLAGS += ["-Wno-attributes"]

View file

@ -8,8 +8,8 @@
# Gecko build performs equivalents elsewhere in its configuration. # Gecko build performs equivalents elsewhere in its configuration.
USE_LIBS += [ USE_LIBS += [
'jsrust', "jsrust",
'zlib', "zlib",
] ]
if CONFIG["OS_ARCH"] == "WINNT": if CONFIG["OS_ARCH"] == "WINNT":

View file

@ -6,13 +6,13 @@
# Indirectly necessary for chromium's lock.h, included from LogAlloc.cpp # Indirectly necessary for chromium's lock.h, included from LogAlloc.cpp
EXPORTS.mozilla += [ EXPORTS.mozilla += [
'/mozglue/misc/Printf.h', "/mozglue/misc/Printf.h",
'/xpcom/base/Logging.h', "/xpcom/base/Logging.h",
] ]
DIRS += [ DIRS += [
'/memory', "/memory",
'/mfbt', "/mfbt",
] ]
EXPORTS.mozilla += [ EXPORTS.mozilla += [
@ -24,4 +24,4 @@ if CONFIG["OS_ARCH"] == "WINNT":
EXPORTS.mozilla += [ EXPORTS.mozilla += [
"/mozglue/misc/StackWalk_windows.h", "/mozglue/misc/StackWalk_windows.h",
"/mozglue/misc/StackWalkThread.h", "/mozglue/misc/StackWalkThread.h",
] ]

View file

@ -3,9 +3,9 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this # License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
include('/toolkit/toolkit.mozbuild') include("/toolkit/toolkit.mozbuild")
DIRS += [ DIRS += [
'/%s' % CONFIG['MOZ_BRANDING_DIRECTORY'], "/%s" % CONFIG["MOZ_BRANDING_DIRECTORY"],
'/mobile/android', "/mobile/android",
] ]

View file

@ -2,5 +2,5 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this # License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
if CONFIG['OS_TARGET'] == 'Darwin' and CONFIG['MOZ_REPLACE_MALLOC']: if CONFIG["OS_TARGET"] == "Darwin" and CONFIG["MOZ_REPLACE_MALLOC"]:
LDFLAGS += ['-Wl,-U,_replace_init'] LDFLAGS += ["-Wl,-U,_replace_init"]

View file

@ -1,23 +1,26 @@
# Any copyright is dedicated to the Public Domain. # Any copyright is dedicated to the Public Domain.
# http://creativecommons.org/publicdomain/zero/1.0/ # http://creativecommons.org/publicdomain/zero/1.0/
@template @template
def Library(name): def Library(name):
LIBRARY_NAME = name LIBRARY_NAME = name
@template @template
def SharedLibrary(name): def SharedLibrary(name):
FORCE_SHARED_LIB = True FORCE_SHARED_LIB = True
LIBRARY_NAME = name LIBRARY_NAME = name
@template @template
def Binary(): def Binary():
# Add -lfoo for testing purposes. # Add -lfoo for testing purposes.
OS_LIBS += ['foo'] OS_LIBS += ["foo"]
@template @template
def Program(name): def Program(name):
PROGRAM = name PROGRAM = name
Binary() Binary()

View file

@ -3,19 +3,23 @@ def Template(foo, bar=[]):
SOURCES += foo SOURCES += foo
DIRS += bar DIRS += bar
@template @template
def TemplateError(foo): def TemplateError(foo):
ILLEGAL = foo ILLEGAL = foo
@template @template
def TemplateGlobalVariable(): def TemplateGlobalVariable():
SOURCES += illegal SOURCES += illegal
@template @template
def TemplateGlobalUPPERVariable(): def TemplateGlobalUPPERVariable():
SOURCES += DIRS SOURCES += DIRS
@template @template
def TemplateInherit(foo): def TemplateInherit(foo):
USE_LIBS += ['foo'] USE_LIBS += ["foo"]
Template(foo) Template(foo)

View file

@ -4,6 +4,7 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this # License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
@template @template
def RLBoxLibrary(name): def RLBoxLibrary(name):
WASM_SOURCES += [ WASM_SOURCES += [

View file

@ -6,5 +6,5 @@
# test, because of the requirement of the top-level directory containing # test, because of the requirement of the top-level directory containing
# config/*.mk. # config/*.mk.
DIRS += [ DIRS += [
'python/mozbuild/mozbuild/test/backend/data/build', "python/mozbuild/mozbuild/test/backend/data/build",
] ]

View file

@ -4,5 +4,4 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this # License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
DEFINES['TELEMETRY_PING_FORMAT_VERSION'] = 4 DEFINES["TELEMETRY_PING_FORMAT_VERSION"] = 4

View file

@ -5,30 +5,30 @@
# file, You can obtain one at http://mozilla.org/MPL/2.0/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
LOCAL_INCLUDES += [ LOCAL_INCLUDES += [
'/toolkit/crashreporter/breakpad-client', "/toolkit/crashreporter/breakpad-client",
'/toolkit/crashreporter/google-breakpad/src', "/toolkit/crashreporter/google-breakpad/src",
] ]
# Suppress warnings in third-party code. # Suppress warnings in third-party code.
if CONFIG['CC_TYPE'] == 'clang-cl': if CONFIG["CC_TYPE"] == "clang-cl":
CXXFLAGS += [ CXXFLAGS += [
'-Wno-macro-redefined', "-Wno-macro-redefined",
] ]
elif CONFIG['CC_TYPE'] in ('clang', 'gcc'): elif CONFIG["CC_TYPE"] in ("clang", "gcc"):
CXXFLAGS += [ CXXFLAGS += [
'-Wno-unused-local-typedefs', "-Wno-unused-local-typedefs",
'-Wno-deprecated-declarations', "-Wno-deprecated-declarations",
'-Wno-bool-compare', "-Wno-bool-compare",
'-Wno-unused-but-set-variable', "-Wno-unused-but-set-variable",
] ]
if CONFIG['CC_TYPE'] in ('clang', 'clang-cl'): if CONFIG["CC_TYPE"] in ("clang", "clang-cl"):
CXXFLAGS += [ CXXFLAGS += [
'-Wno-c++11-narrowing', "-Wno-c++11-narrowing",
] ]
CXXFLAGS += [ CXXFLAGS += [
'-Wno-implicit-fallthrough', "-Wno-implicit-fallthrough",
] ]
DEFINES['NO_STABS_SUPPORT'] = True DEFINES["NO_STABS_SUPPORT"] = True

View file

@ -6,81 +6,85 @@
gkrust_features = [] gkrust_features = []
if CONFIG['MOZ_DEBUG']: if CONFIG["MOZ_DEBUG"]:
gkrust_features += [ gkrust_features += [
'gecko_debug', "gecko_debug",
'gecko_refcount_logging', "gecko_refcount_logging",
] ]
if CONFIG['MOZ_TSAN']: if CONFIG["MOZ_TSAN"]:
gkrust_features += ['thread_sanitizer'] gkrust_features += ["thread_sanitizer"]
if CONFIG['MOZ_WEBRENDER_DEBUGGER']: if CONFIG["MOZ_WEBRENDER_DEBUGGER"]:
gkrust_features += ['webrender_debugger'] gkrust_features += ["webrender_debugger"]
if CONFIG['MOZ_PULSEAUDIO']: if CONFIG["MOZ_PULSEAUDIO"]:
gkrust_features += ['cubeb_pulse_rust'] gkrust_features += ["cubeb_pulse_rust"]
if CONFIG['MOZ_AUDIOUNIT_RUST']: if CONFIG["MOZ_AUDIOUNIT_RUST"]:
gkrust_features += ['cubeb_coreaudio_rust'] gkrust_features += ["cubeb_coreaudio_rust"]
if CONFIG['MOZ_RUST_SIMD']: if CONFIG["MOZ_RUST_SIMD"]:
gkrust_features += ['simd-accel'] gkrust_features += ["simd-accel"]
# This feature is not yet supported on all platforms, and this check needs to # This feature is not yet supported on all platforms, and this check needs to
# match MOZ_CUBEB_REMOTING in CubebUtils.cpp. # match MOZ_CUBEB_REMOTING in CubebUtils.cpp.
if CONFIG['OS_ARCH'] == 'Linux' or CONFIG['OS_ARCH'] == 'Darwin' or CONFIG['OS_ARCH'] == 'WINNT': if (
gkrust_features += ['cubeb-remoting'] CONFIG["OS_ARCH"] == "Linux"
or CONFIG["OS_ARCH"] == "Darwin"
or CONFIG["OS_ARCH"] == "WINNT"
):
gkrust_features += ["cubeb-remoting"]
if CONFIG['MOZ_MEMORY']: if CONFIG["MOZ_MEMORY"]:
gkrust_features += ['moz_memory'] gkrust_features += ["moz_memory"]
if CONFIG['MOZ_PLACES']: if CONFIG["MOZ_PLACES"]:
gkrust_features += ['moz_places'] gkrust_features += ["moz_places"]
if CONFIG['JS_ENABLE_SMOOSH']: if CONFIG["JS_ENABLE_SMOOSH"]:
gkrust_features += ['smoosh'] gkrust_features += ["smoosh"]
if CONFIG['MOZ_GECKO_PROFILER']: if CONFIG["MOZ_GECKO_PROFILER"]:
gkrust_features += ['gecko_profiler'] gkrust_features += ["gecko_profiler"]
if CONFIG['MOZ_GECKO_PROFILER_PARSE_ELF']: if CONFIG["MOZ_GECKO_PROFILER_PARSE_ELF"]:
gkrust_features += ['gecko_profiler_parse_elf'] gkrust_features += ["gecko_profiler_parse_elf"]
if CONFIG['MOZ_BITS_DOWNLOAD']: if CONFIG["MOZ_BITS_DOWNLOAD"]:
gkrust_features += ['bitsdownload'] gkrust_features += ["bitsdownload"]
if CONFIG['LIBFUZZER']: if CONFIG["LIBFUZZER"]:
gkrust_features += ['libfuzzer'] gkrust_features += ["libfuzzer"]
if CONFIG['MOZ_WEBRTC']: if CONFIG["MOZ_WEBRTC"]:
gkrust_features += ['webrtc'] gkrust_features += ["webrtc"]
# We need to tell Glean it is being built with Gecko. # We need to tell Glean it is being built with Gecko.
gkrust_features += ['glean_with_gecko'] gkrust_features += ["glean_with_gecko"]
if not CONFIG['MOZILLA_OFFICIAL']: if not CONFIG["MOZILLA_OFFICIAL"]:
gkrust_features += ['glean_disable_upload'] gkrust_features += ["glean_disable_upload"]
if CONFIG['OS_TARGET'] != 'Android': if CONFIG["OS_TARGET"] != "Android":
gkrust_features += ['glean_million_queue'] gkrust_features += ["glean_million_queue"]
if CONFIG['MOZ_ENABLE_DBUS']: if CONFIG["MOZ_ENABLE_DBUS"]:
gkrust_features += ['with_dbus'] gkrust_features += ["with_dbus"]
if CONFIG["MOZ_CRASHREPORTER"]: if CONFIG["MOZ_CRASHREPORTER"]:
gkrust_features += ['crashreporter'] gkrust_features += ["crashreporter"]
if CONFIG['MOZ_OXIDIZED_BREAKPAD']: if CONFIG["MOZ_OXIDIZED_BREAKPAD"]:
gkrust_features += ['oxidized_breakpad'] gkrust_features += ["oxidized_breakpad"]
if CONFIG["MOZ_WEBMIDI_MIDIR_IMPL"]: if CONFIG["MOZ_WEBMIDI_MIDIR_IMPL"]:
gkrust_features += ['webmidi_midir_impl'] gkrust_features += ["webmidi_midir_impl"]
if CONFIG["MOZ_UNIFFI_FIXTURES"]: if CONFIG["MOZ_UNIFFI_FIXTURES"]:
gkrust_features += ['uniffi_fixtures'] gkrust_features += ["uniffi_fixtures"]
if CONFIG["MOZ_ICU4X"]: if CONFIG["MOZ_ICU4X"]:
gkrust_features += ['icu4x'] gkrust_features += ["icu4x"]
# This must remain last. # This must remain last.
gkrust_features = ["gkrust-shared/%s" % f for f in gkrust_features] gkrust_features = ["gkrust-shared/%s" % f for f in gkrust_features]

View file

@ -4,188 +4,191 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this # License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
include('/js/app.mozbuild') include("/js/app.mozbuild")
PYTHON_UNITTEST_MANIFESTS += [ PYTHON_UNITTEST_MANIFESTS += [
'/layout/tools/reftest/selftest/python.ini', "/layout/tools/reftest/selftest/python.ini",
'/testing/condprofile/condprof/tests/python.ini', "/testing/condprofile/condprof/tests/python.ini",
'/testing/marionette/harness/marionette_harness/tests/harness_unit/python.ini', "/testing/marionette/harness/marionette_harness/tests/harness_unit/python.ini",
'/testing/mochitest/tests/python/python.ini', "/testing/mochitest/tests/python/python.ini",
'/testing/raptor/test/python.ini', "/testing/raptor/test/python.ini",
'/testing/talos/talos/unittests/python.ini' "/testing/talos/talos/unittests/python.ini",
] ]
DIRS += [ DIRS += [
'/tools', "/tools",
'/xpcom/xpidl', "/xpcom/xpidl",
] ]
if CONFIG['COMPILE_ENVIRONMENT']: if CONFIG["COMPILE_ENVIRONMENT"]:
DIRS += [ DIRS += [
'/config/external', "/config/external",
'/security', "/security",
] ]
if CONFIG['ENABLE_TESTS']: if CONFIG["ENABLE_TESTS"]:
DIRS += [ DIRS += [
'/toolkit/library/gtest/rust', "/toolkit/library/gtest/rust",
] ]
if not CONFIG['MOZ_OVERRIDE_GKRUST']: if not CONFIG["MOZ_OVERRIDE_GKRUST"]:
DIRS += [ DIRS += [
'/toolkit/library/rust', "/toolkit/library/rust",
] ]
if CONFIG['MOZ_SANDBOX']: if CONFIG["MOZ_SANDBOX"]:
DIRS += ['/security/sandbox'] DIRS += ["/security/sandbox"]
if CONFIG["MOZ_USING_WASM_SANDBOXING"] and CONFIG["COMPILE_ENVIRONMENT"]: if CONFIG["MOZ_USING_WASM_SANDBOXING"] and CONFIG["COMPILE_ENVIRONMENT"]:
DIRS += ["/security/rlbox"] DIRS += ["/security/rlbox"]
# the signing related bits of libmar depend on nss # the signing related bits of libmar depend on nss
if CONFIG['MOZ_UPDATER']: if CONFIG["MOZ_UPDATER"]:
DIRS += ['/modules/libmar'] DIRS += ["/modules/libmar"]
DIRS += [ DIRS += [
'/config/external/freetype2', "/config/external/freetype2",
'/xpcom', "/xpcom",
'/modules/libpref', "/modules/libpref",
'/intl', "/intl",
'/netwerk', "/netwerk",
] ]
if CONFIG['MOZ_AUTH_EXTENSION']: if CONFIG["MOZ_AUTH_EXTENSION"]:
DIRS += ['/extensions/auth'] DIRS += ["/extensions/auth"]
if CONFIG['MOZ_UPDATER'] and CONFIG['OS_TARGET'] != 'Android': if CONFIG["MOZ_UPDATER"] and CONFIG["OS_TARGET"] != "Android":
DIRS += [ DIRS += [
'/toolkit/mozapps/update/updater/bspatch', "/toolkit/mozapps/update/updater/bspatch",
'/other-licenses/bsdiff', "/other-licenses/bsdiff",
] ]
# Gecko/Core components. # Gecko/Core components.
DIRS += [ DIRS += [
'/ipc', "/ipc",
'/hal', "/hal",
'/js/loader', "/js/loader",
'/js/xpconnect', "/js/xpconnect",
'/modules/libjar', "/modules/libjar",
'/storage', "/storage",
] ]
if CONFIG['COMPILE_ENVIRONMENT']: if CONFIG["COMPILE_ENVIRONMENT"]:
DIRS += [ DIRS += [
'/media/libyuv', "/media/libyuv",
] ]
DIRS += [ DIRS += [
'/extensions/permissions', "/extensions/permissions",
] ]
if CONFIG['MOZ_WEBRTC'] and CONFIG['COMPILE_ENVIRONMENT']: if CONFIG["MOZ_WEBRTC"] and CONFIG["COMPILE_ENVIRONMENT"]:
DIRS += [ DIRS += [
'/media/webrtc', "/media/webrtc",
'/dom/media/webrtc/transport', "/dom/media/webrtc/transport",
] ]
if CONFIG['ENABLE_TESTS']: if CONFIG["ENABLE_TESTS"]:
DIRS += ['/testing/specialpowers'] DIRS += ["/testing/specialpowers"]
DIRS += [ DIRS += [
'/testing/gtest', "/testing/gtest",
'/uriloader', "/uriloader",
'/caps', "/caps",
'/parser', "/parser",
'/gfx', "/gfx",
'/image', "/image",
'/dom', "/dom",
'/view', "/view",
'/widget', "/widget",
'/editor', "/editor",
'/layout', "/layout",
'/docshell', "/docshell",
'/xpfe/appshell' "/xpfe/appshell",
] ]
if CONFIG['MOZ_UNIVERSALCHARDET']: if CONFIG["MOZ_UNIVERSALCHARDET"]:
DIRS += ['/extensions/universalchardet'] DIRS += ["/extensions/universalchardet"]
if CONFIG['ACCESSIBILITY']: if CONFIG["ACCESSIBILITY"]:
DIRS += ['/accessible'] DIRS += ["/accessible"]
else: else:
DIRS += ['/accessible/ipc'] DIRS += ["/accessible/ipc"]
# toolkit # toolkit
# This must precede xpfe. # This must precede xpfe.
if CONFIG['MOZ_JPROF']: if CONFIG["MOZ_JPROF"]:
DIRS += ['/tools/jprof'] DIRS += ["/tools/jprof"]
DIRS += [ DIRS += [
'/tools/code-coverage', "/tools/code-coverage",
'/tools/performance', "/tools/performance",
'/tools/power', "/tools/power",
'/tools/profiler', "/tools/profiler",
'/extensions/spellcheck', "/extensions/spellcheck",
'/security/certverifier', "/security/certverifier",
'/security/manager', "/security/manager",
'/toolkit', "/toolkit",
] ]
if CONFIG['MOZ_PREF_EXTENSIONS']: if CONFIG["MOZ_PREF_EXTENSIONS"]:
DIRS += ['/extensions/pref'] DIRS += ["/extensions/pref"]
DIRS += [ DIRS += [
'/devtools', "/devtools",
'/toolkit/library', "/toolkit/library",
'/services', "/services",
'/startupcache', "/startupcache",
'/other-licenses/snappy', "/other-licenses/snappy",
] ]
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gtk': if CONFIG["MOZ_WIDGET_TOOLKIT"] == "gtk":
DIRS += [ DIRS += [
'/media/mozva', "/media/mozva",
'/toolkit/system/gnome', "/toolkit/system/gnome",
] ]
if CONFIG['ENABLE_WEBDRIVER']: if CONFIG["ENABLE_WEBDRIVER"]:
DIRS += [ DIRS += [
'/remote', "/remote",
'/testing/firefox-ui', "/testing/firefox-ui",
'/testing/marionette', "/testing/marionette",
'/toolkit/components/telemetry/tests/marionette', "/toolkit/components/telemetry/tests/marionette",
] ]
if CONFIG['MOZ_GECKODRIVER'] and not CONFIG['MOZ_TSAN'] and not CONFIG['FUZZING_INTERFACES']: if (
DIRS += ['/testing/geckodriver'] CONFIG["MOZ_GECKODRIVER"]
and not CONFIG["MOZ_TSAN"]
and not CONFIG["FUZZING_INTERFACES"]
):
DIRS += ["/testing/geckodriver"]
DIRS += [ DIRS += [
'/media/gmp-clearkey/0.1', "/media/gmp-clearkey/0.1",
] ]
if CONFIG['ENABLE_TESTS']: if CONFIG["ENABLE_TESTS"]:
DIRS += [ DIRS += [
'/testing/mochitest', "/testing/mochitest",
'/testing/xpcshell', "/testing/xpcshell",
'/testing/tools/minidumpwriter', "/testing/tools/minidumpwriter",
'/testing/tools/screenshot', "/testing/tools/screenshot",
'/testing/profiles', "/testing/profiles",
'/testing/modules', "/testing/modules",
'/testing/runtimes', "/testing/runtimes",
'/testing/web-platform', "/testing/web-platform",
'/testing/extensions', "/testing/extensions",
] ]
if CONFIG['MOZ_MEMORY']: if CONFIG["MOZ_MEMORY"]:
DIRS += ['/memory/gtest'] DIRS += ["/memory/gtest"]
if CONFIG['MOZ_WEBRTC']: if CONFIG["MOZ_WEBRTC"]:
DIRS += [ DIRS += [
'/dom/media/webrtc/transport/test', "/dom/media/webrtc/transport/test",
] ]
if CONFIG['FUZZING']: if CONFIG["FUZZING"]:
DIRS += ['/tools/fuzzing'] DIRS += ["/tools/fuzzing"]

View file

@ -3,12 +3,12 @@
# file, You can obtain one at http://mozilla.org/MPL/2.0/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
DIRS += [ DIRS += [
'/toolkit/crashreporter/google-breakpad/src/common', "/toolkit/crashreporter/google-breakpad/src/common",
'/toolkit/crashreporter/google-breakpad/src/processor', "/toolkit/crashreporter/google-breakpad/src/processor",
'/tools/crashreporter/injector', "/tools/crashreporter/injector",
] ]
if CONFIG['OS_TARGET'] in ('Linux', 'Android'): if CONFIG["OS_TARGET"] in ("Linux", "Android"):
DIRS += [ DIRS += [
'/toolkit/crashreporter/google-breakpad/src/common/linux', "/toolkit/crashreporter/google-breakpad/src/common/linux",
] ]

View file

@ -4,10 +4,10 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this # License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
include('libfuzzer-flags.mozbuild') include("libfuzzer-flags.mozbuild")
if CONFIG['FUZZING']: if CONFIG["FUZZING"]:
if CONFIG['LIBFUZZER']: if CONFIG["LIBFUZZER"]:
# Add trace-pc coverage for libfuzzer # Add trace-pc coverage for libfuzzer
CFLAGS += libfuzzer_flags CFLAGS += libfuzzer_flags
CXXFLAGS += libfuzzer_flags CXXFLAGS += libfuzzer_flags

View file

@ -6,6 +6,5 @@
libfuzzer_flags = [] libfuzzer_flags = []
if CONFIG['LIBFUZZER_FLAGS']: if CONFIG["LIBFUZZER_FLAGS"]:
libfuzzer_flags += CONFIG['LIBFUZZER_FLAGS'] libfuzzer_flags += CONFIG["LIBFUZZER_FLAGS"]

View file

@ -2,4 +2,4 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this # License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
include('/toolkit/toolkit.mozbuild') include("/toolkit/toolkit.mozbuild")

View file

@ -3,7 +3,7 @@
# file, You can obtain one at http://mozilla.org/MPL/2.0/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
DIRS += [ DIRS += [
'/modules/libmar/src', "/modules/libmar/src",
'/modules/libmar/tool', "/modules/libmar/tool",
'/other-licenses/bsdiff', "/other-licenses/bsdiff",
] ]

View file

@ -2,60 +2,60 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this # License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
if CONFIG['MOZ_MAINTENANCE_SERVICE'] or \ if (
CONFIG['MOZ_UPDATE_AGENT'] or \ CONFIG["MOZ_MAINTENANCE_SERVICE"]
CONFIG['MOZ_UPDATER']: or CONFIG["MOZ_UPDATE_AGENT"]
or CONFIG["MOZ_UPDATER"]
):
DIRS += [ DIRS += [
'/toolkit/mozapps/update/common', "/toolkit/mozapps/update/common",
] ]
if CONFIG['MOZ_DEFAULT_BROWSER_AGENT']: if CONFIG["MOZ_DEFAULT_BROWSER_AGENT"]:
DIRS += [ DIRS += [
'/toolkit/components/jsoncpp/src/lib_json', "/toolkit/components/jsoncpp/src/lib_json",
'/toolkit/mozapps/defaultagent', "/toolkit/mozapps/defaultagent",
] ]
if CONFIG['MOZ_MAINTENANCE_SERVICE']: if CONFIG["MOZ_MAINTENANCE_SERVICE"]:
DIRS += [ DIRS += ["/toolkit/components/maintenanceservice"]
'/toolkit/components/maintenanceservice'
]
if CONFIG['MOZ_UPDATER']: if CONFIG["MOZ_UPDATER"]:
# NSS (and NSPR). # NSS (and NSPR).
DIRS += [ DIRS += [
'/modules/xz-embedded', "/modules/xz-embedded",
'/config/external/nspr', "/config/external/nspr",
'/config/external/sqlite', "/config/external/sqlite",
'/config/external/zlib', "/config/external/zlib",
'/memory', "/memory",
'/mfbt', "/mfbt",
'/mozglue', "/mozglue",
'/security', "/security",
] ]
# The signing related bits of libmar depend on NSS. # The signing related bits of libmar depend on NSS.
DIRS += [ DIRS += [
'/modules/libmar', "/modules/libmar",
'/other-licenses/bsdiff', "/other-licenses/bsdiff",
'/toolkit/mozapps/update/updater/bspatch', "/toolkit/mozapps/update/updater/bspatch",
'/toolkit/mozapps/update/updater', "/toolkit/mozapps/update/updater",
] ]
# Expose specific non-XPCOM headers when building standalone. # Expose specific non-XPCOM headers when building standalone.
if not CONFIG['MOZ_UPDATER']: if not CONFIG["MOZ_UPDATER"]:
# When building the updater, we build /mozglue, which includes this. # When building the updater, we build /mozglue, which includes this.
EXPORTS.mozilla += [ EXPORTS.mozilla += [
'/mozglue/misc/DynamicallyLinkedFunctionPtr.h', "/mozglue/misc/DynamicallyLinkedFunctionPtr.h",
] ]
EXPORTS.mozilla += [ EXPORTS.mozilla += [
'/toolkit/xre/CmdLineAndEnvUtils.h', "/toolkit/xre/CmdLineAndEnvUtils.h",
'/widget/windows/WinHeaderOnlyUtils.h', "/widget/windows/WinHeaderOnlyUtils.h",
] ]
EXPORTS += [ EXPORTS += [
'/xpcom/base/nsAutoRef.h', "/xpcom/base/nsAutoRef.h",
'/xpcom/base/nsWindowsHelpers.h', "/xpcom/base/nsWindowsHelpers.h",
'/xpcom/string/nsCharTraits.h', "/xpcom/string/nsCharTraits.h",
'/xpcom/string/nsUTF8Utils.h', "/xpcom/string/nsUTF8Utils.h",
] ]

View file

@ -5,18 +5,13 @@
# file, You can obtain one at http://mozilla.org/MPL/2.0/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
xpcom_glue_src_lcppsrcs = [ xpcom_glue_src_lcppsrcs = [
'FileUtils.cpp', "FileUtils.cpp",
'MemUtils.cpp', "MemUtils.cpp",
'XREAppData.cpp', "XREAppData.cpp",
] ]
xpcom_glue_src_cppsrcs = [ xpcom_glue_src_cppsrcs = ["/xpcom/glue/%s" % s for s in xpcom_glue_src_lcppsrcs]
'/xpcom/glue/%s' % s for s in xpcom_glue_src_lcppsrcs
]
xpcom_gluens_src_lcppsrcs = [ xpcom_gluens_src_lcppsrcs = []
]
xpcom_gluens_src_cppsrcs = [ xpcom_gluens_src_cppsrcs = ["/xpcom/glue/%s" % s for s in xpcom_gluens_src_lcppsrcs]
'/xpcom/glue/%s' % s for s in xpcom_gluens_src_lcppsrcs
]