1 # -*- Mode: python; c-basic-offset: 4; 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/.
7 if not CONFIG['LIBXUL_SDK']:
9 GeckoProgram(CONFIG['MOZ_APP_NAME'] + "-bin")
11 GeckoProgram(CONFIG['MOZ_APP_NAME'])
12 if CONFIG['MOZ_B2G_LOADER']:
20 if CONFIG['_MSC_VER']:
21 # Always enter a Windows program through wmain, whether or not we're
22 # a console application.
23 WIN32_EXE_LDFLAGS += ['-ENTRY:wmainCRTStartup']
29 for var in ('MOZ_APP_NAME', 'MOZ_APP_VERSION', 'MOZ_UPDATER'):
30 DEFINES[var] = CONFIG[var]
32 GENERATED_INCLUDES += [
42 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk':
44 '/widget/gonk/libdisplay',
47 LDFLAGS += ['-Wl,--export-dynamic']
60 OS_LIBS += CONFIG['MOZ_ZLIB_LIBS']
61 if CONFIG['ANDROID_VERSION'] in ('17', '18', '19', '21', '22'):
71 DISABLE_STL_WRAPPING = True
73 if CONFIG['OS_ARCH'] == 'WINNT':
78 FAIL_ON_WARNINGS = True