toolkit/mozapps/update/updater/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 PROGRAM = 'updater'
michael@0 8
michael@0 9 SOURCES += [
michael@0 10 'archivereader.cpp',
michael@0 11 'bspatch.cpp',
michael@0 12 'updater.cpp',
michael@0 13 ]
michael@0 14
michael@0 15 have_progressui = 0
michael@0 16 if CONFIG['OS_ARCH'] == 'WINNT':
michael@0 17 have_progressui = 1
michael@0 18 SOURCES += [
michael@0 19 'loaddlls.cpp',
michael@0 20 'progressui_win.cpp',
michael@0 21 'win_dirent.cpp',
michael@0 22 ]
michael@0 23 RCINCLUDE = 'updater.rc'
michael@0 24 DEFINES['UNICODE'] = True
michael@0 25 DEFINES['_UNICODE'] = True
michael@0 26 DEFINES['NOMINMAX'] = True
michael@0 27 USE_STATIC_LIBS = True
michael@0 28
michael@0 29 # Pick up nsWindowsRestart.cpp
michael@0 30 LOCAL_INCLUDES += [
michael@0 31 '/toolkit/xre',
michael@0 32 ]
michael@0 33
michael@0 34 if CONFIG['MOZ_ENABLE_GTK']:
michael@0 35 have_progressui = 1
michael@0 36 SOURCES += [
michael@0 37 'progressui_gtk.cpp',
michael@0 38 ]
michael@0 39
michael@0 40 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
michael@0 41 have_progressui = 1
michael@0 42 SOURCES += [
michael@0 43 'launchchild_osx.mm',
michael@0 44 'progressui_osx.mm',
michael@0 45 ]
michael@0 46 LDFLAGS += ['-framework Cocoa']
michael@0 47 elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk':
michael@0 48 have_progressui = 1
michael@0 49 SOURCES += [
michael@0 50 'automounter_gonk.cpp',
michael@0 51 'progressui_gonk.cpp',
michael@0 52 ]
michael@0 53 DISABLE_STL_WRAPPING = True
michael@0 54
michael@0 55 if have_progressui == 0:
michael@0 56 SOURCES += [
michael@0 57 'progressui_null.cpp',
michael@0 58 ]
michael@0 59
michael@0 60 DEFINES['NS_NO_XPCOM'] = True
michael@0 61 DISABLE_STL_WRAPPING = True
michael@0 62 for var in ('MAR_CHANNEL_ID', 'MOZ_APP_VERSION'):
michael@0 63 DEFINES[var] = '"%s"' % CONFIG[var]
michael@0 64
michael@0 65 LOCAL_INCLUDES += [
michael@0 66 '../common',
michael@0 67 '/xpcom/glue',
michael@0 68 ]
michael@0 69
michael@0 70 DELAYLOAD_DLLS += [
michael@0 71 'crypt32.dll',
michael@0 72 'userenv.dll',
michael@0 73 'wsock32.dll',
michael@0 74 ]
michael@0 75
michael@0 76 if CONFIG['_MSC_VER']:
michael@0 77 WIN32_EXE_LDFLAGS += ['-ENTRY:wmainCRTStartup']
michael@0 78 elif CONFIG['OS_ARCH'] == 'WINNT':
michael@0 79 WIN32_EXE_LDFLAGS += ['-municode']
michael@0 80
michael@0 81 if CONFIG['MOZ_UPDATE_CHANNEL'] in ('beta', 'release', 'esr'):
michael@0 82 DEFINES['MAR_SIGNING_RELEASE_BETA'] = '1'
michael@0 83 elif CONFIG['MOZ_UPDATE_CHANNEL'] in ('nightly', 'aurora', 'nightly-elm', 'nightly-profiling', 'nightly-oak', 'nightly-ux'):
michael@0 84 DEFINES['MAR_SIGNING_AURORA_NIGHTLY'] = '1'

mercurial