toolkit/library/moz.build

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/toolkit/library/moz.build	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,60 @@
     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 +LIBRARY_NAME = 'xul'
    1.11 +
    1.12 +SOURCES += [
    1.13 +    'nsStaticXULComponents.cpp',
    1.14 +]
    1.15 +
    1.16 +if CONFIG['OS_ARCH'] == 'WINNT':
    1.17 +    SOURCES += [
    1.18 +        'nsDllMain.cpp',
    1.19 +    ]
    1.20 +
    1.21 +# component libraries
    1.22 +additional_defines = (
    1.23 +    'MOZ_AUTH_EXTENSION',
    1.24 +    'MOZ_GIO_COMPONENT',
    1.25 +    'MOZ_JSDEBUGGER',
    1.26 +    'MOZ_PERMISSIONS',
    1.27 +    'MOZ_PREF_EXTENSIONS',
    1.28 +    'MOZ_SPELLCHECK',
    1.29 +    'MOZ_UNIVERSALCHARDET',
    1.30 +    'MOZ_ZIPWRITER',
    1.31 +)
    1.32 +
    1.33 +for var in additional_defines:
    1.34 +    if CONFIG[var]:
    1.35 +        DEFINES[var] = True
    1.36 +
    1.37 +if CONFIG['MOZ_DEBUG'] and CONFIG['ENABLE_TESTS']:
    1.38 +    DEFINES['ENABLE_LAYOUTDEBUG'] = True
    1.39 +
    1.40 +if CONFIG['MOZ_WIDGET_TOOLKIT'] not in ('android', 'gonk', 'qt',
    1.41 +                                        'cocoa', 'windows') and \
    1.42 +   CONFIG['MOZ_XUL']:
    1.43 +    DEFINES['MOZ_FILEVIEW'] = True
    1.44 +
    1.45 +# Platform-specific icon channel stuff - supported mostly-everywhere
    1.46 +if CONFIG['MOZ_WIDGET_TOOLKIT'] in ('windows', 'mac', 'cocoa',
    1.47 +                                    'gtk2', 'gtk3', 'qt', 'android'):
    1.48 +    DEFINES['ICON_DECODER'] = True
    1.49 +
    1.50 +LOCAL_INCLUDES += [
    1.51 +    '/config',
    1.52 +    # need widget/windows for resource.h (included from widget.rc)
    1.53 +    '/widget/windows',
    1.54 +]
    1.55 +
    1.56 +if CONFIG['OS_ARCH'] == 'WINNT' and not CONFIG['GNU_CC']:
    1.57 +    LOCAL_INCLUDES += [
    1.58 +        '/xpcom/base',
    1.59 +    ]
    1.60 +
    1.61 +FAIL_ON_WARNINGS = True
    1.62 +
    1.63 +DIRS += ['build', 'gtest']

mercurial