1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/dom/plugins/test/testplugin/testplugin.mk Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,44 @@ 1.4 +# 1.5 +# This Source Code Form is subject to the terms of the Mozilla Public 1.6 +# License, v. 2.0. If a copy of the MPL was not distributed with this file, 1.7 +# You can obtain one at http://mozilla.org/MPL/2.0/. 1.8 + 1.9 +ifeq ($(MOZ_WIDGET_TOOLKIT),qt) 1.10 +include $(topsrcdir)/config/config.mk 1.11 +CXXFLAGS += $(MOZ_QT_CFLAGS) 1.12 +CFLAGS += $(MOZ_QT_CFLAGS) 1.13 +EXTRA_DSO_LDOPTS = \ 1.14 + $(MOZ_QT_LIBS) \ 1.15 + $(XLDFLAGS) \ 1.16 + $(XLIBS) 1.17 +endif 1.18 + 1.19 +ifeq ($(MOZ_WIDGET_TOOLKIT),windows) 1.20 +OS_LIBS += $(call EXPAND_LIBNAME,msimg32) 1.21 + 1.22 +# Windows opt builds without PGO break nptest.dll 1.23 +MOZ_OPTIMIZE= 1.24 +endif 1.25 + 1.26 +TEST_PLUGIN_FILES = $(SHARED_LIBRARY) 1.27 + 1.28 +ifeq ($(MOZ_WIDGET_TOOLKIT),cocoa) 1.29 +MAC_PLIST_FILES += $(srcdir)/Info.plist 1.30 +MAC_PLIST_DEST = $(DIST)/plugins/$(COCOA_NAME).plugin/Contents 1.31 +TEST_PLUGIN_DEST = $(DIST)/plugins/$(COCOA_NAME).plugin/Contents/MacOS 1.32 +INSTALL_TARGETS += \ 1.33 + TEST_PLUGIN \ 1.34 + MAC_PLIST \ 1.35 + $(NULL) 1.36 +else 1.37 +TEST_PLUGIN_DEST = $(DIST)/plugins 1.38 +INSTALL_TARGETS += TEST_PLUGIN 1.39 +endif 1.40 + 1.41 +include $(topsrcdir)/config/rules.mk 1.42 + 1.43 +ifeq ($(MOZ_WIDGET_TOOLKIT),gtk2) 1.44 +CXXFLAGS += $(MOZ_GTK2_CFLAGS) 1.45 +CFLAGS += $(MOZ_GTK2_CFLAGS) 1.46 +EXTRA_DSO_LDOPTS += $(MOZ_GTK2_LIBS) $(XLDFLAGS) $(XLIBS) $(XEXT_LIBS) 1.47 +endif