Bumping manifests a=b2g-bump
[gecko.git] / b2g / app / moz.build
blob1f954057e02c3518e9ec285048f752946ed795a8
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         GeckoProgram(CONFIG['MOZ_APP_NAME'] + "-bin")
10     else:
11         GeckoProgram(CONFIG['MOZ_APP_NAME'])
12     if CONFIG['MOZ_B2G_LOADER']:
13         SOURCES += [
14             'B2GLoader.cpp',
15         ]
17     SOURCES += [
18         'nsBrowserApp.cpp',
19     ]
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']
25     USE_LIBS += [
26         'zlib',
27     ]
29 for var in ('MOZ_APP_NAME', 'MOZ_APP_VERSION', 'MOZ_UPDATER'):
30     DEFINES[var] = CONFIG[var]
32 GENERATED_INCLUDES += [
33     '/build',
36 LOCAL_INCLUDES += [
37     '/toolkit/xre',
38     '/xpcom/base',
39     '/xpcom/build',
42 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk':
43     LOCAL_INCLUDES += [
44         '/widget/gonk/libdisplay',
45     ]
47     LDFLAGS += ['-Wl,--export-dynamic']
49     USE_LIBS += [
50         'display',
51         'mozpng',
52     ]
53     OS_LIBS += [
54         'ui',
55         'EGL',
56         'hardware_legacy',
57         'hardware',
58         'cutils',
59     ]
60     OS_LIBS += CONFIG['MOZ_ZLIB_LIBS']
61     if CONFIG['ANDROID_VERSION'] in ('17', '18', '19', '21', '22'):
62         OS_LIBS += [
63             'gui',
64             'suspend',
65         ]
66     OS_LIBS += [
67         'binder',
68         'utils',
69     ]
71 DISABLE_STL_WRAPPING = True
73 if CONFIG['OS_ARCH'] == 'WINNT':
74     OS_LIBS += [
75         'version',
76     ]
78 FAIL_ON_WARNINGS = True