2013-04-01 11:36:59 -07:00
|
|
|
# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-25 13:19:09 -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/.
|
|
|
|
|
2013-11-18 18:46:40 -08:00
|
|
|
LIBRARY_NAME = 'xul'
|
2013-06-18 05:13:42 -07:00
|
|
|
|
2013-10-24 16:23:05 -07:00
|
|
|
SOURCES += [
|
2013-11-22 08:00:32 -08:00
|
|
|
'nsStaticXULComponents.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG['OS_ARCH'] == 'WINNT':
|
2013-10-24 16:23:05 -07:00
|
|
|
SOURCES += [
|
2013-04-23 14:54:15 -07:00
|
|
|
'nsDllMain.cpp',
|
|
|
|
]
|
2014-02-10 10:41:02 -08:00
|
|
|
if not CONFIG['GNU_CC']:
|
|
|
|
LOCAL_INCLUDES += [
|
2014-03-04 14:19:24 -08:00
|
|
|
'/widget/windows',
|
|
|
|
'/xpcom/base',
|
|
|
|
]
|
|
|
|
RCINCLUDE = 'xulrunner.rc'
|
2013-06-17 12:21:01 -07:00
|
|
|
|
2014-02-05 20:14:32 -08:00
|
|
|
# component libraries
|
|
|
|
additional_defines = (
|
|
|
|
'MOZ_AUTH_EXTENSION',
|
|
|
|
'MOZ_GIO_COMPONENT',
|
|
|
|
'MOZ_JSDEBUGGER',
|
|
|
|
'MOZ_PERMISSIONS',
|
|
|
|
'MOZ_PREF_EXTENSIONS',
|
|
|
|
'MOZ_SPELLCHECK',
|
|
|
|
'MOZ_UNIVERSALCHARDET',
|
|
|
|
'MOZ_ZIPWRITER',
|
|
|
|
)
|
|
|
|
|
|
|
|
for var in additional_defines:
|
|
|
|
if CONFIG[var]:
|
|
|
|
DEFINES[var] = True
|
|
|
|
|
|
|
|
if CONFIG['MOZ_DEBUG'] and CONFIG['ENABLE_TESTS']:
|
|
|
|
DEFINES['ENABLE_LAYOUTDEBUG'] = True
|
|
|
|
|
2014-02-10 14:57:01 -08:00
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] not in ('android', 'gonk', 'qt',
|
2014-02-05 20:14:32 -08:00
|
|
|
'cocoa', 'windows') and \
|
|
|
|
CONFIG['MOZ_XUL']:
|
|
|
|
DEFINES['MOZ_FILEVIEW'] = True
|
|
|
|
|
|
|
|
# Platform-specific icon channel stuff - supported mostly-everywhere
|
2014-02-10 14:57:01 -08:00
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] in ('windows', 'mac', 'cocoa',
|
2014-02-05 20:14:32 -08:00
|
|
|
'gtk2', 'gtk3', 'qt', 'android'):
|
|
|
|
DEFINES['ICON_DECODER'] = True
|
|
|
|
|
2014-02-10 06:03:53 -08:00
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'/config',
|
|
|
|
# need widget/windows for resource.h (included from widget.rc)
|
|
|
|
'/widget/windows',
|
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG['OS_ARCH'] == 'WINNT' and not CONFIG['GNU_CC']:
|
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'/xpcom/base',
|
|
|
|
]
|
|
|
|
|
2013-12-03 09:33:57 -08:00
|
|
|
FAIL_ON_WARNINGS = True
|
|
|
|
|
2013-08-21 23:56:01 -07:00
|
|
|
MSVC_ENABLE_PGO = True
|
2013-11-18 18:47:45 -08:00
|
|
|
|
|
|
|
FORCE_SHARED_LIB = True
|
2014-02-06 11:17:44 -08:00
|
|
|
|
|
|
|
DELAYLOAD_DLLS += [
|
|
|
|
'comdlg32.dll',
|
|
|
|
'dbghelp.dll',
|
|
|
|
'psapi.dll',
|
|
|
|
'rasapi32.dll',
|
|
|
|
'rasdlg.dll',
|
|
|
|
'secur32.dll',
|
|
|
|
'wininet.dll',
|
|
|
|
'winspool.drv'
|
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG['MOZ_METRO']:
|
|
|
|
DELAYLOAD_DLLS += [
|
|
|
|
'API-MS-WIN-CORE-WINRT-L' + CONFIG['CRTEXPDLLVERSION'] + '.DLL',
|
|
|
|
'API-MS-WIN-CORE-WINRT-STRING-L' + CONFIG['CRTEXPDLLVERSION'] + '.DLL',
|
|
|
|
'uiautomationcore.dll'
|
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG['ACCESSIBILITY']:
|
|
|
|
DELAYLOAD_DLLS += ['oleacc.dll']
|
|
|
|
|
|
|
|
if CONFIG['MOZ_WEBRTC']:
|
|
|
|
DELAYLOAD_DLLS += ['msdmo.dll']
|
2014-03-10 17:18:33 -07:00
|
|
|
|
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
|
|
|
|
LDFLAGS += [
|
|
|
|
'-framework OpenGL',
|
|
|
|
'-framework SystemConfiguration',
|
|
|
|
'-framework QTKit',
|
|
|
|
'-framework IOKit',
|
|
|
|
'-F%s' % CONFIG['MACOS_PRIVATE_FRAMEWORKS_DIR'],
|
|
|
|
'-framework CoreUI',
|
|
|
|
]
|