dom/plugins/test/testplugin/testplugin.mozbuild

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     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/.
     7 NO_DIST_INSTALL = True
     9 UNIFIED_SOURCES += [ '%s/%s' % (relative_path, p) for p in [
    10     'nptest.cpp',
    11     'nptest_utils.cpp',
    12 ]]
    14 UNIFIED_SOURCES += [
    15     'nptest_name.cpp',
    16 ]
    18 toolkit = CONFIG['MOZ_WIDGET_TOOLKIT']
    19 if toolkit == 'cocoa':
    20     UNIFIED_SOURCES += [
    21         relative_path + '/nptest_macosx.mm'
    22     ]
    23 elif toolkit == 'gtk2':
    24     UNIFIED_SOURCES += [
    25         relative_path + '/nptest_gtk2.cpp',
    26     ]
    27 elif toolkit == 'android':
    28     UNIFIED_SOURCES += [
    29         relative_path + '/nptest_droid.cpp',
    30     ]
    31 elif toolkit == 'qt':
    32     UNIFIED_SOURCES += [
    33         relative_path + '/nptest_qt.cpp',
    34     ]
    35 elif toolkit == 'windows':
    36     UNIFIED_SOURCES += [
    37         relative_path + '/nptest_windows.cpp',
    38     ]
    40 FORCE_SHARED_LIB = True
    42 # must link statically with the CRT; nptest isn't Gecko code
    43 USE_STATIC_LIBS = True
    45 # Don't use STL wrappers; nptest isn't Gecko code
    46 DISABLE_STL_WRAPPING = True
    48 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
    49     RCFILE  = 'nptest.rc'
    50     RESFILE = 'nptest.res'
    51     DEFFILE = SRCDIR + '/nptest.def'
    53 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa' and '64' in CONFIG['OS_TEST']:
    54     EXTRA_DSO_LDOPTS += ['-framework Carbon']

mercurial