dom/plugins/test/testplugin/testplugin.mk

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

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

mercurial