1 # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
2 # vim: set filetype=python:
3 # This Source Code Form is subject to the terms of the Mozilla Public
4 # License, v. 2.0. If a copy of the MPL was not distributed with this
5 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
15 if CONFIG['VERIFY_MAR_SIGNATURE']:
20 if CONFIG['OS_ARCH'] == 'WINNT':
27 RCINCLUDE = '%supdater.rc' % updater_rel_path
28 DEFINES['UNICODE'] = True
29 DEFINES['_UNICODE'] = True
30 DEFINES['NOMINMAX'] = True
31 USE_STATIC_LIBS = True
33 # Pick up nsWindowsRestart.cpp
38 'updatecommon-standalone',
48 elif CONFIG['OS_ARCH'] == 'Linux' and CONFIG['VERIFY_MAR_SIGNATURE']:
54 OS_LIBS += CONFIG['NSPR_LIBS']
64 if CONFIG['MOZ_NATIVE_BZ2']:
65 OS_LIBS += CONFIG['MOZ_BZ2_LIBS']
71 if CONFIG['MOZ_ENABLE_GTK']:
77 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
85 '-framework Security',
88 if have_progressui == 0:
90 'progressui_null.cpp',
93 SOURCES += sorted(srcs)
95 DEFINES['NS_NO_XPCOM'] = True
96 DISABLE_STL_WRAPPING = True
97 for var in ('MAR_CHANNEL_ID', 'MOZ_APP_VERSION'):
98 DEFINES[var] = '"%s"' % CONFIG[var]
101 '/toolkit/mozapps/update/common',
112 if CONFIG['_MSC_VER']:
113 WIN32_EXE_LDFLAGS += ['-ENTRY:wmainCRTStartup']
114 elif CONFIG['OS_ARCH'] == 'WINNT':
115 WIN32_EXE_LDFLAGS += ['-municode']
117 if CONFIG['MOZ_WIDGET_GTK']:
118 CXXFLAGS += CONFIG['TK_CFLAGS']
119 OS_LIBS += CONFIG['TK_LIBS']