dom/plugins/test/testplugin/testplugin.mozbuild

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dom/plugins/test/testplugin/testplugin.mozbuild	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,54 @@
     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 +NO_DIST_INSTALL = True
    1.11 +
    1.12 +UNIFIED_SOURCES += [ '%s/%s' % (relative_path, p) for p in [
    1.13 +    'nptest.cpp',
    1.14 +    'nptest_utils.cpp',
    1.15 +]]
    1.16 +
    1.17 +UNIFIED_SOURCES += [
    1.18 +    'nptest_name.cpp',
    1.19 +]
    1.20 +
    1.21 +toolkit = CONFIG['MOZ_WIDGET_TOOLKIT']
    1.22 +if toolkit == 'cocoa':
    1.23 +    UNIFIED_SOURCES += [
    1.24 +        relative_path + '/nptest_macosx.mm'
    1.25 +    ]
    1.26 +elif toolkit == 'gtk2':
    1.27 +    UNIFIED_SOURCES += [
    1.28 +        relative_path + '/nptest_gtk2.cpp',
    1.29 +    ]
    1.30 +elif toolkit == 'android':
    1.31 +    UNIFIED_SOURCES += [
    1.32 +        relative_path + '/nptest_droid.cpp',
    1.33 +    ]
    1.34 +elif toolkit == 'qt':
    1.35 +    UNIFIED_SOURCES += [
    1.36 +        relative_path + '/nptest_qt.cpp',
    1.37 +    ]
    1.38 +elif toolkit == 'windows':
    1.39 +    UNIFIED_SOURCES += [
    1.40 +        relative_path + '/nptest_windows.cpp',
    1.41 +    ]
    1.42 +
    1.43 +FORCE_SHARED_LIB = True
    1.44 +
    1.45 +# must link statically with the CRT; nptest isn't Gecko code
    1.46 +USE_STATIC_LIBS = True
    1.47 +
    1.48 +# Don't use STL wrappers; nptest isn't Gecko code
    1.49 +DISABLE_STL_WRAPPING = True
    1.50 +
    1.51 +if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
    1.52 +    RCFILE  = 'nptest.rc'
    1.53 +    RESFILE = 'nptest.res'
    1.54 +    DEFFILE = SRCDIR + '/nptest.def'
    1.55 +
    1.56 +if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa' and '64' in CONFIG['OS_TEST']:
    1.57 +    EXTRA_DSO_LDOPTS += ['-framework Carbon']

mercurial