toolkit/mozapps/update/updater/moz.build

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/toolkit/mozapps/update/updater/moz.build	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,84 @@
     1.4 +# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
     1.5 +# vim: set filetype=python:
     1.6 +# This Source Code Form is subject to the terms of the Mozilla Public
     1.7 +# License, v. 2.0. If a copy of the MPL was not distributed with this
     1.8 +# file, You can obtain one at http://mozilla.org/MPL/2.0/.
     1.9 +
    1.10 +PROGRAM = 'updater'
    1.11 +
    1.12 +SOURCES += [
    1.13 +    'archivereader.cpp',
    1.14 +    'bspatch.cpp',
    1.15 +    'updater.cpp',
    1.16 +]
    1.17 +
    1.18 +have_progressui = 0
    1.19 +if CONFIG['OS_ARCH'] == 'WINNT':
    1.20 +    have_progressui = 1
    1.21 +    SOURCES += [
    1.22 +        'loaddlls.cpp',
    1.23 +        'progressui_win.cpp',
    1.24 +        'win_dirent.cpp',
    1.25 +    ]
    1.26 +    RCINCLUDE = 'updater.rc'
    1.27 +    DEFINES['UNICODE'] = True
    1.28 +    DEFINES['_UNICODE'] = True
    1.29 +    DEFINES['NOMINMAX'] = True
    1.30 +    USE_STATIC_LIBS = True
    1.31 +
    1.32 +    # Pick up nsWindowsRestart.cpp
    1.33 +    LOCAL_INCLUDES += [
    1.34 +        '/toolkit/xre',
    1.35 +    ]
    1.36 +
    1.37 +if CONFIG['MOZ_ENABLE_GTK']:
    1.38 +    have_progressui = 1
    1.39 +    SOURCES += [
    1.40 +        'progressui_gtk.cpp',
    1.41 +    ]
    1.42 +
    1.43 +if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
    1.44 +    have_progressui = 1
    1.45 +    SOURCES += [
    1.46 +        'launchchild_osx.mm',
    1.47 +        'progressui_osx.mm',
    1.48 +    ]
    1.49 +    LDFLAGS += ['-framework Cocoa']
    1.50 +elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk':
    1.51 +    have_progressui = 1
    1.52 +    SOURCES += [
    1.53 +        'automounter_gonk.cpp',
    1.54 +        'progressui_gonk.cpp',
    1.55 +    ]
    1.56 +    DISABLE_STL_WRAPPING = True
    1.57 +
    1.58 +if have_progressui == 0:
    1.59 +    SOURCES += [
    1.60 +        'progressui_null.cpp',
    1.61 +    ]
    1.62 +
    1.63 +DEFINES['NS_NO_XPCOM'] = True
    1.64 +DISABLE_STL_WRAPPING = True
    1.65 +for var in ('MAR_CHANNEL_ID', 'MOZ_APP_VERSION'):
    1.66 +    DEFINES[var] = '"%s"' % CONFIG[var]
    1.67 +
    1.68 +LOCAL_INCLUDES += [
    1.69 +    '../common',
    1.70 +    '/xpcom/glue',
    1.71 +]
    1.72 +
    1.73 +DELAYLOAD_DLLS += [
    1.74 +    'crypt32.dll',
    1.75 +    'userenv.dll',
    1.76 +    'wsock32.dll',
    1.77 +]
    1.78 +
    1.79 +if CONFIG['_MSC_VER']:
    1.80 +    WIN32_EXE_LDFLAGS += ['-ENTRY:wmainCRTStartup']
    1.81 +elif CONFIG['OS_ARCH'] == 'WINNT':
    1.82 +    WIN32_EXE_LDFLAGS += ['-municode']
    1.83 +
    1.84 +if CONFIG['MOZ_UPDATE_CHANNEL'] in ('beta', 'release', 'esr'):
    1.85 +    DEFINES['MAR_SIGNING_RELEASE_BETA'] = '1'
    1.86 +elif CONFIG['MOZ_UPDATE_CHANNEL'] in ('nightly', 'aurora', 'nightly-elm', 'nightly-profiling', 'nightly-oak', 'nightly-ux'):
    1.87 +    DEFINES['MAR_SIGNING_AURORA_NIGHTLY'] = '1'

mercurial