b2g/app/moz.build

changeset 0
6474c204b198
equal deleted inserted replaced
-1:000000000000 0:212eb5ff8b43
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/.
6
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']
19
20 DEFINES['XPCOM_GLUE'] = True
21
22 for var in ('MOZ_APP_NAME', 'MOZ_APP_VERSION', 'MOZ_UPDATER', 'MOZ_SERVICES_FXACCOUNTS'):
23 DEFINES[var] = CONFIG[var]
24
25 GENERATED_INCLUDES += [
26 '/build',
27 ]
28
29 LOCAL_INCLUDES += [
30 '/toolkit/xre',
31 '/xpcom/base',
32 '/xpcom/build',
33 ]
34
35 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk':
36 LOCAL_INCLUDES += [
37 '/widget/gonk/libdisplay',
38 ]
39
40 LDFLAGS += ['-Wl,--export-dynamic']
41
42 DISABLE_STL_WRAPPING = True

mercurial