Source code

Revision control

Other Tools

1
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
2
# vim: set filetype=python:
3
# This Source Code Form is subject to the terms of the Mozilla Public
4
# License, v. 2.0. If a copy of the MPL was not distributed with this
5
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
6
7
JAR_MANIFESTS += ['jar.mn']
8
9
# If DIST_SUBDIR ever gets unset in browser this path might be wrong due to PREF_DIR changing.
10
LOCALIZED_PP_FILES.defaults.preferences += ['en-US/firefox-l10n.js']
11
12
if CONFIG['MOZ_CRASHREPORTER']:
13
LOCALIZED_FILES += ['en-US/crashreporter/crashreporter-override.ini']
14
15
if CONFIG['MOZ_UPDATER']:
16
LOCALIZED_GENERATED_FILES += ['updater.ini']
17
updater = LOCALIZED_GENERATED_FILES['updater.ini']
18
updater.script = 'generate_updater_ini.py'
19
updater.inputs = [
20
'en-US/updater/updater.ini',
21
'../installer/windows/nsis/updater_append.ini',
22
]
23
# Yes, this is weird, but what can you do? This file doesn't want to be in the DIST_SUBDIR,
24
# but we can't really move it to a different directory until we change how locale repacks
25
# work.
26
LOCALIZED_FILES['..'] += ['!updater.ini']
27
28
LOCALIZED_GENERATED_FILES += ['bookmarks.html']
29
bookmarks = LOCALIZED_GENERATED_FILES['bookmarks.html']
30
bookmarks.script = 'generate_bookmarks.py'
31
bookmarks.inputs = [
32
# This input will not be considered for localization.
33
'generic/profile/bookmarks.html.in',
34
# The `locales/en-US/` will be rewritten to the locale-specific path.
35
'en-US/profile/bookmarks.inc',
36
]
37
38
with Files("**"):
39
BUG_COMPONENT = ("Firefox Build System", "General")
40
41
with Files("all-locales"):
42
BUG_COMPONENT = ("Core", "Localization")
43
44
with Files("en-US/**"):
45
BUG_COMPONENT = ("Core", "Localization")
46
47
with Files("shipped-locales"):
48
BUG_COMPONENT = ("Core", "Localization")