toolkit/xre/moz.build

Sat, 03 Jan 2015 20:18:00 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 03 Jan 2015 20:18:00 +0100
branch
TOR_BUG_3246
changeset 7
129ffea94266
permissions
-rw-r--r--

Conditionally enable double key logic according to:
private browsing mode or privacy.thirdparty.isolate preference and
implement in GetCookieStringCommon and FindCookie where it counts...
With some reservations of how to convince FindCookie users to test
condition and pass a nullptr when disabling double key logic.

michael@0 1 # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
michael@0 2 # vim: set filetype=python:
michael@0 3 # This Source Code Form is subject to the terms of the Mozilla Public
michael@0 4 # License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 5 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
michael@0 6
michael@0 7 if CONFIG['OS_ARCH'] == 'WINNT':
michael@0 8 TEST_DIRS += ['test/win']
michael@0 9
michael@0 10 MOCHITEST_MANIFESTS += ['test/mochitest.ini']
michael@0 11
michael@0 12 XPIDL_SOURCES += [
michael@0 13 'nsINativeAppSupport.idl',
michael@0 14 ]
michael@0 15
michael@0 16 if CONFIG['OS_ARCH'] == 'WINNT':
michael@0 17 XPIDL_SOURCES += [
michael@0 18 'nsIWinAppHelper.idl',
michael@0 19 ]
michael@0 20
michael@0 21 XPIDL_MODULE = 'xulapp'
michael@0 22
michael@0 23 if CONFIG['MOZ_INSTRUMENT_EVENT_LOOP']:
michael@0 24 EXPORTS += ['EventTracer.h']
michael@0 25
michael@0 26 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
michael@0 27 UNIFIED_SOURCES += [
michael@0 28 'nsNativeAppSupportWin.cpp',
michael@0 29 ]
michael@0 30 elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
michael@0 31 EXPORTS += ['MacQuirks.h']
michael@0 32 UNIFIED_SOURCES += [
michael@0 33 'nsCommandLineServiceMac.cpp',
michael@0 34 ]
michael@0 35 UNIFIED_SOURCES += [
michael@0 36 'MacApplicationDelegate.mm',
michael@0 37 'MacAutoreleasePool.mm',
michael@0 38 'MacLaunchHelper.mm',
michael@0 39 'nsNativeAppSupportCocoa.mm',
michael@0 40 ]
michael@0 41 elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'qt':
michael@0 42 EXPORTS += ['nsQAppInstance.h']
michael@0 43 GENERATED_SOURCES += [
michael@0 44 'moc_nsNativeAppSupportQt.cpp',
michael@0 45 ]
michael@0 46 SOURCES += [
michael@0 47 'nsNativeAppSupportQt.cpp',
michael@0 48 'nsQAppInstance.cpp',
michael@0 49 ]
michael@0 50 elif CONFIG['MOZ_ENABLE_GTK']:
michael@0 51 UNIFIED_SOURCES += [
michael@0 52 'nsNativeAppSupportUnix.cpp',
michael@0 53 ]
michael@0 54 else:
michael@0 55 UNIFIED_SOURCES += [
michael@0 56 'nsNativeAppSupportDefault.cpp',
michael@0 57 ]
michael@0 58
michael@0 59 if CONFIG['MOZ_X11']:
michael@0 60 UNIFIED_SOURCES += [
michael@0 61 'nsX11ErrorHandler.cpp',
michael@0 62 ]
michael@0 63
michael@0 64 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'android':
michael@0 65 UNIFIED_SOURCES += [
michael@0 66 'nsAndroidStartup.cpp',
michael@0 67 ]
michael@0 68
michael@0 69 UNIFIED_SOURCES += [
michael@0 70 'CreateAppData.cpp',
michael@0 71 'nsConsoleWriter.cpp',
michael@0 72 'nsNativeAppSupportBase.cpp',
michael@0 73 'nsSigHandlers.cpp',
michael@0 74 'nsXREDirProvider.cpp',
michael@0 75 'ProfileReset.cpp',
michael@0 76 ]
michael@0 77
michael@0 78 # nsAppRunner.cpp cannot be built in unified mode because it pulls in OS X system headers.
michael@0 79 # nsEmbedFunctions.cpp cannot be built in unified mode because it pulls in X11 headers.
michael@0 80 SOURCES += [
michael@0 81 'nsAppRunner.cpp',
michael@0 82 'nsEmbedFunctions.cpp',
michael@0 83 ]
michael@0 84
michael@0 85 if CONFIG['MOZ_GL_DEFAULT_PROVIDER'] == 'GLX':
michael@0 86 UNIFIED_SOURCES += [
michael@0 87 'glxtest.cpp',
michael@0 88 ]
michael@0 89
michael@0 90 if CONFIG['MOZ_INSTRUMENT_EVENT_LOOP']:
michael@0 91 UNIFIED_SOURCES += [
michael@0 92 'EventTracer.cpp',
michael@0 93 ]
michael@0 94
michael@0 95 if CONFIG['MOZ_UPDATER']:
michael@0 96 if CONFIG['MOZ_WIDGET_TOOLKIT'] != 'android':
michael@0 97 UNIFIED_SOURCES += [
michael@0 98 'nsUpdateDriver.cpp',
michael@0 99 ]
michael@0 100
michael@0 101 MSVC_ENABLE_PGO = True
michael@0 102
michael@0 103 LIBRARY_NAME = 'xulapp_s'
michael@0 104
michael@0 105 include('/ipc/chromium/chromium-config.mozbuild')
michael@0 106
michael@0 107 FINAL_LIBRARY = 'xul'
michael@0 108
michael@0 109 if CONFIG['MOZ_GL_DEFAULT_PROVIDER'] == 'GLX':
michael@0 110 DEFINES['USE_GLX_TEST'] = True
michael@0 111
michael@0 112 for var in ('MOZ_APP_NAME', 'MOZ_APP_BASENAME', 'MOZ_APP_VERSION', 'OS_TARGET',
michael@0 113 'MOZ_WIDGET_TOOLKIT'):
michael@0 114 DEFINES[var] = '"%s"' % CONFIG[var]
michael@0 115
michael@0 116 if CONFIG['MOZ_UPDATER'] and CONFIG['MOZ_WIDGET_TOOLKIT'] != 'android':
michael@0 117 DEFINES['MOZ_UPDATER'] = True
michael@0 118
michael@0 119 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
michael@0 120 DEFINES['WIN32_LEAN_AND_MEAN'] = True
michael@0 121 DEFINES['UNICODE'] = True
michael@0 122 DEFINES['_UNICODE'] = True
michael@0 123
michael@0 124 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'android':
michael@0 125 DEFINES['ANDROID_PACKAGE_NAME'] = '"%s"' % CONFIG['ANDROID_PACKAGE_NAME']
michael@0 126
michael@0 127 if CONFIG['TARGET_XPCOM_ABI']:
michael@0 128 DEFINES['TARGET_XPCOM_ABI'] = '"%s"' % CONFIG['TARGET_XPCOM_ABI']
michael@0 129 DEFINES['TARGET_OS_ABI'] = '"%s_%s"' % (CONFIG['OS_TARGET'],
michael@0 130 CONFIG['TARGET_XPCOM_ABI'])
michael@0 131
michael@0 132 if CONFIG['WRAP_SYSTEM_INCLUDES']:
michael@0 133 DEFINES['WRAP_SYSTEM_INCLUDES'] = True
michael@0 134
michael@0 135 if CONFIG['OS_ARCH'] == 'Linux' and 'lib64' in CONFIG['libdir']:
michael@0 136 DEFINES['HAVE_USR_LIB64_DIR'] = True
michael@0 137
michael@0 138 DEFINES['GRE_MILESTONE'] = CONFIG['GRE_MILESTONE']
michael@0 139
michael@0 140 for var in ('APP_VERSION', 'APP_ID'):
michael@0 141 DEFINES[var] = CONFIG['MOZ_%s' % var]
michael@0 142
michael@0 143 if CONFIG['MOZILLA_OFFICIAL']:
michael@0 144 DEFINES['MOZILLA_OFFICIAL'] = True
michael@0 145
michael@0 146 LOCAL_INCLUDES += [
michael@0 147 '../profile',
michael@0 148 '/config',
michael@0 149 '/dom/base',
michael@0 150 '/dom/ipc',
michael@0 151 '/testing/gtest/mozilla',
michael@0 152 '/toolkit/crashreporter',
michael@0 153 '/xpcom/build',
michael@0 154 ]
michael@0 155
michael@0 156 if CONFIG['MOZ_ENABLE_XREMOTE']:
michael@0 157 LOCAL_INCLUDES += [
michael@0 158 '/widget/xremoteclient',
michael@0 159 ]
michael@0 160

mercurial