dom/plugins/test/testplugin/testplugin.mk

branch
TOR_BUG_3246
changeset 7
129ffea94266
equal deleted inserted replaced
-1:000000000000 0:ef81d5a6d623
1 #
2 # This Source Code Form is subject to the terms of the Mozilla Public
3 # License, v. 2.0. If a copy of the MPL was not distributed with this file,
4 # You can obtain one at http://mozilla.org/MPL/2.0/.
5
6 ifeq ($(MOZ_WIDGET_TOOLKIT),qt)
7 include $(topsrcdir)/config/config.mk
8 CXXFLAGS += $(MOZ_QT_CFLAGS)
9 CFLAGS += $(MOZ_QT_CFLAGS)
10 EXTRA_DSO_LDOPTS = \
11 $(MOZ_QT_LIBS) \
12 $(XLDFLAGS) \
13 $(XLIBS)
14 endif
15
16 ifeq ($(MOZ_WIDGET_TOOLKIT),windows)
17 OS_LIBS += $(call EXPAND_LIBNAME,msimg32)
18
19 # Windows opt builds without PGO break nptest.dll
20 MOZ_OPTIMIZE=
21 endif
22
23 TEST_PLUGIN_FILES = $(SHARED_LIBRARY)
24
25 ifeq ($(MOZ_WIDGET_TOOLKIT),cocoa)
26 MAC_PLIST_FILES += $(srcdir)/Info.plist
27 MAC_PLIST_DEST = $(DIST)/plugins/$(COCOA_NAME).plugin/Contents
28 TEST_PLUGIN_DEST = $(DIST)/plugins/$(COCOA_NAME).plugin/Contents/MacOS
29 INSTALL_TARGETS += \
30 TEST_PLUGIN \
31 MAC_PLIST \
32 $(NULL)
33 else
34 TEST_PLUGIN_DEST = $(DIST)/plugins
35 INSTALL_TARGETS += TEST_PLUGIN
36 endif
37
38 include $(topsrcdir)/config/rules.mk
39
40 ifeq ($(MOZ_WIDGET_TOOLKIT),gtk2)
41 CXXFLAGS += $(MOZ_GTK2_CFLAGS)
42 CFLAGS += $(MOZ_GTK2_CFLAGS)
43 EXTRA_DSO_LDOPTS += $(MOZ_GTK2_LIBS) $(XLDFLAGS) $(XLIBS) $(XEXT_LIBS)
44 endif

mercurial