2013-04-01 18:36:59 +00:00
|
|
|
# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-25 21:19:09 +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/.
|
|
|
|
|
|
|
|
TEST_DIRS += ['test']
|
2013-03-12 17:17:46 +00:00
|
|
|
|
|
|
|
XPIDL_SOURCES += [
|
|
|
|
'nsINativeAppSupport.idl',
|
|
|
|
]
|
|
|
|
|
2013-03-12 17:20:41 +00:00
|
|
|
if CONFIG['OS_ARCH'] == 'WINNT':
|
|
|
|
XPIDL_SOURCES += [
|
|
|
|
'nsIWinAppHelper.idl',
|
|
|
|
]
|
|
|
|
|
2013-03-19 18:47:00 +00:00
|
|
|
MODULE = 'xulapp'
|
|
|
|
|
2013-04-16 19:24:43 +00:00
|
|
|
if CONFIG['MOZ_INSTRUMENT_EVENT_LOOP']:
|
|
|
|
EXPORTS += ['EventTracer.h']
|
|
|
|
|
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
|
|
|
|
EXPORTS += ['nsWindowsDllInterceptor.h']
|
2013-04-23 21:54:15 +00:00
|
|
|
CPP_SOURCES += [
|
|
|
|
'nsNativeAppSupportWin.cpp',
|
|
|
|
'nsWindowsDllBlocklist.cpp',
|
|
|
|
]
|
2013-04-16 19:24:43 +00:00
|
|
|
elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
|
|
|
|
EXPORTS += ['MacQuirks.h']
|
2013-04-23 21:54:15 +00:00
|
|
|
CPP_SOURCES += [
|
|
|
|
'nsCommandLineServiceMac.cpp',
|
|
|
|
]
|
2013-08-22 06:55:59 +00:00
|
|
|
CMMSRCS += [
|
|
|
|
'MacApplicationDelegate.mm',
|
|
|
|
'MacAutoreleasePool.mm',
|
|
|
|
'MacLaunchHelper.mm',
|
|
|
|
'nsNativeAppSupportCocoa.mm',
|
|
|
|
]
|
2013-04-16 19:24:43 +00:00
|
|
|
elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'qt':
|
|
|
|
EXPORTS += ['nsQAppInstance.h']
|
2013-04-23 21:54:15 +00:00
|
|
|
CPP_SOURCES += [
|
|
|
|
'moc_nsNativeAppSupportQt.cpp',
|
|
|
|
'nsNativeAppSupportQt.cpp',
|
|
|
|
'nsQAppInstance.cpp',
|
|
|
|
]
|
|
|
|
elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'os2':
|
|
|
|
CPP_SOURCES += [
|
|
|
|
'nsNativeAppSupportOS2.cpp',
|
|
|
|
]
|
2013-06-10 12:36:26 +00:00
|
|
|
elif CONFIG['MOZ_ENABLE_GTK']:
|
2013-04-23 21:54:15 +00:00
|
|
|
CPP_SOURCES += [
|
|
|
|
'nsNativeAppSupportUnix.cpp',
|
|
|
|
]
|
|
|
|
else:
|
|
|
|
CPP_SOURCES += [
|
|
|
|
'nsNativeAppSupportDefault.cpp',
|
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG['MOZ_X11']:
|
|
|
|
CPP_SOURCES += [
|
|
|
|
'nsX11ErrorHandler.cpp',
|
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'android':
|
|
|
|
CPP_SOURCES += [
|
|
|
|
'nsAndroidStartup.cpp',
|
|
|
|
]
|
|
|
|
|
|
|
|
CPP_SOURCES += [
|
|
|
|
'CreateAppData.cpp',
|
|
|
|
'ProfileReset.cpp',
|
|
|
|
'nsAppRunner.cpp',
|
|
|
|
'nsConsoleWriter.cpp',
|
|
|
|
'nsEmbedFunctions.cpp',
|
|
|
|
'nsNativeAppSupportBase.cpp',
|
|
|
|
'nsSigHandlers.cpp',
|
|
|
|
'nsXREDirProvider.cpp',
|
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG['MOZ_GL_DEFAULT_PROVIDER'] == 'GLX':
|
|
|
|
CPP_SOURCES += [
|
|
|
|
'glxtest.cpp',
|
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG['MOZ_INSTRUMENT_EVENT_LOOP']:
|
|
|
|
CPP_SOURCES += [
|
|
|
|
'EventTracer.cpp',
|
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG['MOZ_UPDATER']:
|
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] != 'android':
|
|
|
|
CPP_SOURCES += [
|
|
|
|
'nsUpdateDriver.cpp',
|
|
|
|
]
|
2013-08-22 06:56:01 +00:00
|
|
|
|
|
|
|
LIBXUL_LIBRARY = True
|
|
|
|
|
2013-08-22 06:56:01 +00:00
|
|
|
MSVC_ENABLE_PGO = True
|
|
|
|
|
2013-08-15 13:02:09 +00:00
|
|
|
LIBRARY_NAME = 'xulapp_s'
|
|
|
|
|