2016-07-14 16:16:42 +00:00
|
|
|
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-25 20:47:17 +00: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-06 03:13:33 +00:00
|
|
|
if CONFIG['GAIADIR']:
|
|
|
|
GeckoProgram(CONFIG['MOZ_APP_NAME'] + "-bin")
|
|
|
|
else:
|
|
|
|
GeckoProgram(CONFIG['MOZ_APP_NAME'])
|
2013-11-27 13:55:07 +00:00
|
|
|
|
2015-10-06 03:13:33 +00: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-23 04:30:52 +00:00
|
|
|
|
2014-07-08 06:37:57 +00:00
|
|
|
for var in ('MOZ_APP_NAME', 'MOZ_APP_VERSION', 'MOZ_UPDATER'):
|
2013-11-27 13:55:07 +00:00
|
|
|
DEFINES[var] = CONFIG[var]
|
2014-02-10 18:41:02 +00:00
|
|
|
|
|
|
|
LOCAL_INCLUDES += [
|
2015-11-04 05:20:20 +00:00
|
|
|
'!/build',
|
2014-02-10 18:41:02 +00:00
|
|
|
'/toolkit/xre',
|
|
|
|
'/xpcom/base',
|
|
|
|
'/xpcom/build',
|
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk':
|
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'/widget/gonk/libdisplay',
|
|
|
|
]
|
2014-02-26 20:49:00 +00:00
|
|
|
|
|
|
|
LDFLAGS += ['-Wl,--export-dynamic']
|
2014-03-05 00:39:06 +00:00
|
|
|
|
2014-07-23 04:30:52 +00:00
|
|
|
USE_LIBS += [
|
|
|
|
'display',
|
|
|
|
'mozpng',
|
|
|
|
]
|
2014-08-05 22:25:33 +00:00
|
|
|
OS_LIBS += [
|
|
|
|
'ui',
|
|
|
|
'EGL',
|
|
|
|
'hardware_legacy',
|
|
|
|
'hardware',
|
|
|
|
'cutils',
|
|
|
|
]
|
|
|
|
OS_LIBS += CONFIG['MOZ_ZLIB_LIBS']
|
2015-03-18 21:34:48 +00:00
|
|
|
if CONFIG['ANDROID_VERSION'] in ('17', '18', '19', '21', '22'):
|
2014-08-05 22:25:33 +00:00
|
|
|
OS_LIBS += [
|
|
|
|
'gui',
|
|
|
|
'suspend',
|
|
|
|
]
|
|
|
|
OS_LIBS += [
|
|
|
|
'binder',
|
|
|
|
'utils',
|
|
|
|
]
|
|
|
|
|
2014-03-05 00:39:06 +00:00
|
|
|
DISABLE_STL_WRAPPING = True
|
2014-08-05 22:25:33 +00:00
|
|
|
|
|
|
|
if CONFIG['OS_ARCH'] == 'WINNT':
|
|
|
|
OS_LIBS += [
|
|
|
|
'version',
|
|
|
|
]
|
2014-12-11 06:56:31 +00:00
|
|
|
|
2015-11-28 00:42:40 +00:00
|
|
|
JS_PREFERENCE_PP_FILES += [
|
2015-01-20 18:07:03 +00:00
|
|
|
'b2g.js',
|
|
|
|
]
|
|
|
|
|
2015-11-27 00:09:07 +00:00
|
|
|
FINAL_TARGET_PP_FILES += [
|
2015-05-27 14:37:00 +00:00
|
|
|
'ua-update.json.in',
|
|
|
|
]
|