Wed, 31 Dec 2014 06:55:50 +0100
Added tag UPSTREAM_283F7C6 for changeset ca08bd8f51b2
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']:
8 if CONFIG['GAIADIR']:
9 PROGRAM = CONFIG['MOZ_APP_NAME'] + "-bin"
10 else:
11 PROGRAM = CONFIG['MOZ_APP_NAME']
12 SOURCES += [
13 'nsBrowserApp.cpp',
14 ]
15 if CONFIG['_MSC_VER']:
16 # Always enter a Windows program through wmain, whether or not we're
17 # a console application.
18 WIN32_EXE_LDFLAGS += ['-ENTRY:wmainCRTStartup']
20 DEFINES['XPCOM_GLUE'] = True
22 for var in ('MOZ_APP_NAME', 'MOZ_APP_VERSION', 'MOZ_UPDATER', 'MOZ_SERVICES_FXACCOUNTS'):
23 DEFINES[var] = CONFIG[var]
25 GENERATED_INCLUDES += [
26 '/build',
27 ]
29 LOCAL_INCLUDES += [
30 '/toolkit/xre',
31 '/xpcom/base',
32 '/xpcom/build',
33 ]
35 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk':
36 LOCAL_INCLUDES += [
37 '/widget/gonk/libdisplay',
38 ]
40 LDFLAGS += ['-Wl,--export-dynamic']
42 DISABLE_STL_WRAPPING = True