2013-04-01 11:36:59 -07:00
|
|
|
# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-25 12:47:17 -08: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/.
|
|
|
|
|
2015-10-05 20:13:33 -07:00
|
|
|
if CONFIG['GAIADIR']:
|
|
|
|
GeckoProgram(CONFIG['MOZ_APP_NAME'] + "-bin")
|
|
|
|
else:
|
|
|
|
GeckoProgram(CONFIG['MOZ_APP_NAME'])
|
|
|
|
if CONFIG['MOZ_B2G_LOADER']:
|
2013-10-24 16:23:05 -07:00
|
|
|
SOURCES += [
|
2015-10-05 20:13:33 -07:00
|
|
|
'B2GLoader.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
]
|
2013-11-27 05:55:07 -08:00
|
|
|
|
2015-10-05 20:13:33 -07:00
|
|
|
SOURCES += [
|
|
|
|
'nsBrowserApp.cpp',
|
|
|
|
]
|
|
|
|
if CONFIG['_MSC_VER']:
|
|
|
|
# Always enter a Windows program through wmain, whether or not we're
|
|
|
|
# a console application.
|
|
|
|
WIN32_EXE_LDFLAGS += ['-ENTRY:wmainCRTStartup']
|
|
|
|
|
|
|
|
USE_LIBS += [
|
|
|
|
'zlib',
|
|
|
|
]
|
2014-07-22 21:30:52 -07:00
|
|
|
|
2014-07-07 23:37:57 -07:00
|
|
|
for var in ('MOZ_APP_NAME', 'MOZ_APP_VERSION', 'MOZ_UPDATER'):
|
2013-11-27 05:55:07 -08:00
|
|
|
DEFINES[var] = CONFIG[var]
|
2014-02-10 10:41:02 -08:00
|
|
|
|
|
|
|
LOCAL_INCLUDES += [
|
2015-11-03 21:20:20 -08:00
|
|
|
'!/build',
|
2014-02-10 10:41:02 -08:00
|
|
|
'/toolkit/xre',
|
|
|
|
'/xpcom/base',
|
|
|
|
'/xpcom/build',
|
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk':
|
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'/widget/gonk/libdisplay',
|
|
|
|
]
|
2014-02-26 12:49:00 -08:00
|
|
|
|
|
|
|
LDFLAGS += ['-Wl,--export-dynamic']
|
2014-03-04 16:39:06 -08:00
|
|
|
|
2014-07-22 21:30:52 -07:00
|
|
|
USE_LIBS += [
|
|
|
|
'display',
|
|
|
|
'mozpng',
|
|
|
|
]
|
2014-08-05 15:25:33 -07:00
|
|
|
OS_LIBS += [
|
|
|
|
'ui',
|
|
|
|
'EGL',
|
|
|
|
'hardware_legacy',
|
|
|
|
'hardware',
|
|
|
|
'cutils',
|
|
|
|
]
|
|
|
|
OS_LIBS += CONFIG['MOZ_ZLIB_LIBS']
|
2015-03-18 14:34:48 -07:00
|
|
|
if CONFIG['ANDROID_VERSION'] in ('17', '18', '19', '21', '22'):
|
2014-08-05 15:25:33 -07:00
|
|
|
OS_LIBS += [
|
|
|
|
'gui',
|
|
|
|
'suspend',
|
|
|
|
]
|
|
|
|
OS_LIBS += [
|
|
|
|
'binder',
|
|
|
|
'utils',
|
|
|
|
]
|
|
|
|
|
2014-03-04 16:39:06 -08:00
|
|
|
DISABLE_STL_WRAPPING = True
|
2014-08-05 15:25:33 -07:00
|
|
|
|
|
|
|
if CONFIG['OS_ARCH'] == 'WINNT':
|
|
|
|
OS_LIBS += [
|
|
|
|
'version',
|
|
|
|
]
|
2014-12-10 22:56:31 -08:00
|
|
|
|
2015-08-25 09:14:38 -07:00
|
|
|
if CONFIG['GNU_CXX']:
|
|
|
|
CXXFLAGS += ['-Wshadow']
|
|
|
|
|
2015-11-27 16:42:40 -08:00
|
|
|
JS_PREFERENCE_PP_FILES += [
|
2015-01-20 10:07:03 -08:00
|
|
|
'b2g.js',
|
|
|
|
]
|
|
|
|
|
2015-11-26 16:09:07 -08:00
|
|
|
FINAL_TARGET_PP_FILES += [
|
2015-05-27 07:37:00 -07:00
|
|
|
'ua-update.json.in',
|
|
|
|
]
|