michael@0: # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- michael@0: # vim: set filetype=python: michael@0: # This Source Code Form is subject to the terms of the Mozilla Public michael@0: # License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: # file, You can obtain one at http://mozilla.org/MPL/2.0/. michael@0: michael@0: NO_DIST_INSTALL = True michael@0: michael@0: UNIFIED_SOURCES += [ '%s/%s' % (relative_path, p) for p in [ michael@0: 'nptest.cpp', michael@0: 'nptest_utils.cpp', michael@0: ]] michael@0: michael@0: UNIFIED_SOURCES += [ michael@0: 'nptest_name.cpp', michael@0: ] michael@0: michael@0: toolkit = CONFIG['MOZ_WIDGET_TOOLKIT'] michael@0: if toolkit == 'cocoa': michael@0: UNIFIED_SOURCES += [ michael@0: relative_path + '/nptest_macosx.mm' michael@0: ] michael@0: elif toolkit == 'gtk2': michael@0: UNIFIED_SOURCES += [ michael@0: relative_path + '/nptest_gtk2.cpp', michael@0: ] michael@0: elif toolkit == 'android': michael@0: UNIFIED_SOURCES += [ michael@0: relative_path + '/nptest_droid.cpp', michael@0: ] michael@0: elif toolkit == 'qt': michael@0: UNIFIED_SOURCES += [ michael@0: relative_path + '/nptest_qt.cpp', michael@0: ] michael@0: elif toolkit == 'windows': michael@0: UNIFIED_SOURCES += [ michael@0: relative_path + '/nptest_windows.cpp', michael@0: ] michael@0: michael@0: FORCE_SHARED_LIB = True michael@0: michael@0: # must link statically with the CRT; nptest isn't Gecko code michael@0: USE_STATIC_LIBS = True michael@0: michael@0: # Don't use STL wrappers; nptest isn't Gecko code michael@0: DISABLE_STL_WRAPPING = True michael@0: michael@0: if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows': michael@0: RCFILE = 'nptest.rc' michael@0: RESFILE = 'nptest.res' michael@0: DEFFILE = SRCDIR + '/nptest.def' michael@0: michael@0: if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa' and '64' in CONFIG['OS_TEST']: michael@0: EXTRA_DSO_LDOPTS += ['-framework Carbon']