# ------------------------------------------------------------------- # Project file for the NPAPI test plugin # # See 'Tools/qmake/README' for an overview of the build system # ------------------------------------------------------------------- TEMPLATE = lib TARGET = TestNetscapePlugIn load(features) CONFIG += plugin SOURCES += \ PluginObject.cpp \ PluginTest.cpp \ TestObject.cpp \ main.cpp \ Tests/DocumentOpenInDestroyStream.cpp \ Tests/EvaluateJSAfterRemovingPluginElement.cpp \ Tests/FormValue.cpp \ Tests/GetURLNotifyWithURLThatFailsToLoad.cpp \ Tests/GetURLWithJavaScriptURL.cpp \ Tests/GetURLWithJavaScriptURLDestroyingPlugin.cpp \ Tests/GetUserAgentWithNullNPPFromNPPNew.cpp \ Tests/NPDeallocateCalledBeforeNPShutdown.cpp \ Tests/NPPSetWindowCalledDuringDestruction.cpp \ Tests/NPRuntimeObjectFromDestroyedPlugin.cpp \ Tests/NPRuntimeRemoveProperty.cpp \ Tests/NullNPPGetValuePointer.cpp \ Tests/PassDifferentNPPStruct.cpp \ Tests/PluginScriptableNPObjectInvokeDefault.cpp \ Tests/PrivateBrowsing.cpp WEBKIT += webcore # For NPAPI headers VPATH = ../../unix/TestNetscapePlugin ../../TestNetscapePlugIn INCLUDEPATH += \ ../../TestNetscapePlugIn/unix/ForwardingHeaders \ ../../TestNetscapePlugIn/unix/ForwardingHeaders/WebKit \ ../../TestNetscapePlugIn DESTDIR = $${ROOT_BUILD_DIR}/lib/plugins mac { CONFIG += plugin_bundle QMAKE_INFO_PLIST = ../../TestNetscapePlugIn/mac/Info.plist QMAKE_PLUGIN_BUNDLE_NAME = $$TARGET QMAKE_BUNDLE_LOCATION += "Contents/MacOS" !build_pass:CONFIG += build_all OBJECTIVE_SOURCES += PluginObjectMac.mm LIBS += -framework Carbon -framework Cocoa -framework QuartzCore } xlibAvailable() { PKGCONFIG += x11 DEFINES += XP_UNIX }