toolkit/mozapps/update/tests/moz.build
author Ehsan Akhgari <ehsan@mozilla.com>
Tue, 11 Feb 2014 09:12:33 -0500
changeset 185252 3e252a679f72adfdd5fc2a8d527add97b4e312d1
parent 179073 66d27b7d4fb94825753b8b8f472a9f8dc18416e5
child 186235 3a37d3be57fa1b014c8ed72ac2cdcb84f9c02f1e
permissions -rw-r--r--
Bug 970745 - Move USE_STATIC_LIBS to moz.build; r=glandium

# -*- 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']:
        XPCSHELL_TESTS_MANIFESTS += ['unit_service_updater/xpcshell.ini']

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

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

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']:
    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