DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Mercurial (d1ed7de67f5a)

VCS Links

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
# 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/.

XPCSHELL_TESTS_MANIFESTS += ['unit_aus_update/xpcshell.ini']

if CONFIG['MOZ_WIDGET_TOOLKIT'] != 'android':
    MOCHITEST_CHROME_MANIFESTS += ['chrome/chrome.ini']
    XPCSHELL_TESTS_MANIFESTS += ['unit_base_updater/xpcshell.ini']

    if CONFIG['MOZ_MAINTENANCE_SERVICE'] and not CONFIG['HAVE_64BIT_BUILD']:
        XPCSHELL_TESTS_MANIFESTS += ['unit_service_updater/xpcshell.ini']

    SIMPLE_PROGRAMS = [
        'TestAUSHelper',
        'TestAUSReadStrings',
    ]

    SOURCES += [
        '%s.cpp' % s for s in SIMPLE_PROGRAMS
    ]

    LOCAL_INCLUDES += [
        '/toolkit/mozapps/update',
        '/toolkit/mozapps/update/common',
    ]

    if CONFIG['OS_ARCH'] == 'WINNT':
        USE_LIBS += [
            'updatecommon-standalone',
        ]
    else:
        USE_LIBS += [
            'updatecommon',
        ]

    if CONFIG['OS_ARCH'] == 'WINNT':
        OS_LIBS += [
            'wintrust',
            'shlwapi',
        ]

for var in ('MOZ_APP_NAME', 'MOZ_APP_BASENAME', 'MOZ_APP_DISPLAYNAME',
            'MOZ_APP_VENDOR', 'BIN_SUFFIX', 'MOZ_DEBUG'):
    DEFINES[var] = CONFIG[var]

DEFINES['NS_NO_XPCOM'] = True

if CONFIG['MOZ_MAINTENANCE_SERVICE'] and not CONFIG['HAVE_64BIT_BUILD']:
    DEFINES['MOZ_MAINTENANCE_SERVICE'] = CONFIG['MOZ_MAINTENANCE_SERVICE']

# For debugging purposes only
#DEFINES['DISABLE_UPDATER_AUTHENTICODE_CHECK'] = True

if CONFIG['OS_ARCH'] == 'WINNT':
    DEFINES['UNICODE'] = True
    DEFINES['_UNICODE'] = True
    USE_STATIC_LIBS = True
    if CONFIG['GNU_CC']:
        WIN32_EXE_LDFLAGS += ['-municode']