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.

     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/.
     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
    16 ifeq ($(MOZ_WIDGET_TOOLKIT),windows)
    17 OS_LIBS  += $(call EXPAND_LIBNAME,msimg32)
    19 # Windows opt builds without PGO break nptest.dll
    20 MOZ_OPTIMIZE=
    21 endif
    23 TEST_PLUGIN_FILES = $(SHARED_LIBRARY)
    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
    38 include $(topsrcdir)/config/rules.mk
    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