dom/plugins/test/testplugin/testplugin.mozbuild

changeset 0
6474c204b198
equal deleted inserted replaced
-1:000000000000 0:e7a70c8f0d68
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/.
6
7 NO_DIST_INSTALL = True
8
9 UNIFIED_SOURCES += [ '%s/%s' % (relative_path, p) for p in [
10 'nptest.cpp',
11 'nptest_utils.cpp',
12 ]]
13
14 UNIFIED_SOURCES += [
15 'nptest_name.cpp',
16 ]
17
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 ]
39
40 FORCE_SHARED_LIB = True
41
42 # must link statically with the CRT; nptest isn't Gecko code
43 USE_STATIC_LIBS = True
44
45 # Don't use STL wrappers; nptest isn't Gecko code
46 DISABLE_STL_WRAPPING = True
47
48 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
49 RCFILE = 'nptest.rc'
50 RESFILE = 'nptest.res'
51 DEFFILE = SRCDIR + '/nptest.def'
52
53 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa' and '64' in CONFIG['OS_TEST']:
54 EXTRA_DSO_LDOPTS += ['-framework Carbon']

mercurial