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/.
|
|
|
|
|
|
|
|
TEST_DIRS += ['test']
|
2013-03-12 10:17:46 -07:00
|
|
|
|
|
|
|
XPIDL_SOURCES += [
|
|
|
|
'nsINativeAppSupport.idl',
|
|
|
|
]
|
|
|
|
|
2013-03-12 10:20:41 -07:00
|
|
|
if CONFIG['OS_ARCH'] == 'WINNT':
|
|
|
|
XPIDL_SOURCES += [
|
|
|
|
'nsIWinAppHelper.idl',
|
|
|
|
]
|
|
|
|
|
2013-03-19 11:47:00 -07:00
|
|
|
MODULE = 'xulapp'
|
|
|
|
|
2013-04-16 12:24:43 -07:00
|
|
|
if CONFIG['MOZ_INSTRUMENT_EVENT_LOOP']:
|
|
|
|
EXPORTS += ['EventTracer.h']
|
|
|
|
|
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
|
|
|
|
EXPORTS += ['nsWindowsDllInterceptor.h']
|
2013-04-23 14:54:15 -07:00
|
|
|
CPP_SOURCES += [
|
|
|
|
'nsNativeAppSupportWin.cpp',
|
|
|
|
'nsWindowsDllBlocklist.cpp',
|
|
|
|
]
|
2013-04-16 12:24:43 -07:00
|
|
|
elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
|
|
|
|
EXPORTS += ['MacQuirks.h']
|
2013-04-23 14:54:15 -07:00
|
|
|
CPP_SOURCES += [
|
|
|
|
'nsCommandLineServiceMac.cpp',
|
|
|
|
]
|
2013-08-21 23:55:59 -07:00
|
|
|
CMMSRCS += [
|
|
|
|
'MacApplicationDelegate.mm',
|
|
|
|
'MacAutoreleasePool.mm',
|
|
|
|
'MacLaunchHelper.mm',
|
|
|
|
'nsNativeAppSupportCocoa.mm',
|
|
|
|
]
|
2013-04-16 12:24:43 -07:00
|
|
|
elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'qt':
|
|
|
|
EXPORTS += ['nsQAppInstance.h']
|
2013-04-23 14:54:15 -07:00
|
|
|
CPP_SOURCES += [
|
|
|
|
'moc_nsNativeAppSupportQt.cpp',
|
|
|
|
'nsNativeAppSupportQt.cpp',
|
|
|
|
'nsQAppInstance.cpp',
|
|
|
|
]
|
|
|
|
elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'os2':
|
|
|
|
CPP_SOURCES += [
|
|
|
|
'nsNativeAppSupportOS2.cpp',
|
|
|
|
]
|
2013-06-10 05:36:26 -07:00
|
|
|
elif CONFIG['MOZ_ENABLE_GTK']:
|
2013-04-23 14:54:15 -07: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-21 23:56:01 -07:00
|
|
|
|
|
|
|
LIBXUL_LIBRARY = True
|
|
|
|
|
2013-08-21 23:56:01 -07:00
|
|
|
MSVC_ENABLE_PGO = True
|
|
|
|
|