2016-07-14 16:16:42 +00:00
|
|
|
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-25 21:19:09 +00:00
|
|
|
# vim: set filetype=python:
|
|
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
# 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/.
|
|
|
|
|
2017-04-09 09:43:43 +00:00
|
|
|
with Files('**'):
|
|
|
|
BUG_COMPONENT = ('Toolkit', 'Build Config')
|
|
|
|
|
2016-01-05 01:40:00 +00:00
|
|
|
if CONFIG['MOZ_BUILD_APP'] == 'mobile/android':
|
|
|
|
DEFINES['MOZ_FENNEC'] = True
|
|
|
|
|
2016-09-26 16:34:06 +00:00
|
|
|
if 'gtk' in CONFIG['MOZ_WIDGET_TOOLKIT']:
|
|
|
|
DEFINES['MOZ_GTK'] = True
|
|
|
|
|
2016-01-05 01:40:00 +00:00
|
|
|
JAR_MANIFESTS += ['jar.mn']
|
2017-10-30 16:50:16 +00:00
|
|
|
|
|
|
|
GENERATED_FILES = [
|
|
|
|
'multilocale.json',
|
|
|
|
]
|
|
|
|
multilocale = GENERATED_FILES['multilocale.json']
|
|
|
|
multilocale.script = 'gen_multilocale.py'
|
|
|
|
FINAL_TARGET_FILES.res += [
|
|
|
|
'!multilocale.json',
|
|
|
|
]
|
2017-11-13 20:58:09 +00:00
|
|
|
|
|
|
|
if CONFIG['MOZ_CRASHREPORTER']:
|
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
|
|
|
|
# TODO: fixing bug 1223748 should let us remove this special case
|
|
|
|
LOCALIZED_FILES['crashreporter.app'].Contents.Resources += [
|
|
|
|
'en-US/crashreporter/crashreporter.ini'
|
|
|
|
]
|
|
|
|
else:
|
|
|
|
LOCALIZED_FILES += [
|
|
|
|
'en-US/crashreporter/crashreporter.ini'
|
|
|
|
]
|
2017-11-17 20:41:56 +00:00
|
|
|
|
|
|
|
LOCALIZED_GENERATED_FILES += ['update.locale']
|
|
|
|
update_locale = LOCALIZED_GENERATED_FILES['update.locale']
|
|
|
|
update_locale.script = 'generate_update_locale.py'
|
|
|
|
LOCALIZED_FILES += ['!update.locale']
|