2013-04-01 22:36:59 +04:00
|
|
|
# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-26 01:19:09 +04: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-19 06:46:40 +04:00
|
|
|
LIBRARY_NAME = 'xul'
|
2013-06-18 16:13:42 +04:00
|
|
|
|
2013-10-25 03:23:05 +04:00
|
|
|
SOURCES += [
|
2013-11-22 20:00:32 +04:00
|
|
|
'nsStaticXULComponents.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG['OS_ARCH'] == 'WINNT':
|
2013-10-25 03:23:05 +04:00
|
|
|
SOURCES += [
|
2013-04-24 01:54:15 +04:00
|
|
|
'nsDllMain.cpp',
|
|
|
|
]
|
2013-06-17 23:21:01 +04:00
|
|
|
|
2014-02-06 08:14:32 +04: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-11 02:57:01 +04:00
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] not in ('android', 'gonk', 'qt',
|
2014-02-06 08:14:32 +04:00
|
|
|
'cocoa', 'windows') and \
|
|
|
|
CONFIG['MOZ_XUL']:
|
|
|
|
DEFINES['MOZ_FILEVIEW'] = True
|
|
|
|
|
|
|
|
# Platform-specific icon channel stuff - supported mostly-everywhere
|
2014-02-11 02:57:01 +04:00
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] in ('windows', 'mac', 'cocoa',
|
2014-02-06 08:14:32 +04:00
|
|
|
'gtk2', 'gtk3', 'qt', 'android'):
|
|
|
|
DEFINES['ICON_DECODER'] = True
|
|
|
|
|
2014-02-10 18:03:53 +04: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 21:33:57 +04:00
|
|
|
FAIL_ON_WARNINGS = True
|
|
|
|
|
2014-03-31 15:21:38 +04:00
|
|
|
DIRS += ['build', 'gtest']
|