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