1TEMPLATE = lib 2TARGET = TestNetscapePlugIn 3 4VPATH = ../../unix/TestNetscapePlugin ../../TestNetscapePlugIn 5isEmpty(OUTPUT_DIR): OUTPUT_DIR = ../../../.. 6include(../../../../Source/WebKit.pri) 7 8DESTDIR = $$OUTPUT_DIR/lib/plugins 9 10mac { 11 CONFIG += plugin 12 CONFIG += plugin_bundle 13 QMAKE_INFO_PLIST = ../../TestNetscapePlugIn/mac/Info.plist 14 QMAKE_PLUGIN_BUNDLE_NAME = $$TARGET 15 QMAKE_BUNDLE_LOCATION += "Contents/MacOS" 16 17 !build_pass:CONFIG += build_all 18 debug_and_release:TARGET = $$qtLibraryTarget($$TARGET) 19} 20 21INCLUDEPATH += ../../../../Source/JavaScriptCore \ 22 ../../unix/TestNetscapePlugin/ForwardingHeaders \ 23 ../../unix/TestNetscapePlugin/ForwardingHeaders/WebKit \ 24 ../../../../Source/WebCore \ 25 ../../../../Source/WebCore/bridge \ 26 ../../TestNetscapePlugIn 27 28SOURCES = PluginObject.cpp \ 29 PluginTest.cpp \ 30 TestObject.cpp \ 31 Tests/DocumentOpenInDestroyStream.cpp \ 32 Tests/EvaluateJSAfterRemovingPluginElement.cpp \ 33 Tests/GetURLWithJavaScriptURLDestroyingPlugin.cpp \ 34 Tests/GetUserAgentWithNullNPPFromNPPNew.cpp \ 35 Tests/NPDeallocateCalledBeforeNPShutdown.cpp \ 36 Tests/NPPSetWindowCalledDuringDestruction.cpp \ 37 Tests/NPRuntimeObjectFromDestroyedPlugin.cpp \ 38 Tests/NPRuntimeRemoveProperty.cpp \ 39 Tests/NullNPPGetValuePointer.cpp \ 40 Tests/PassDifferentNPPStruct.cpp \ 41 Tests/PluginScriptableNPObjectInvokeDefault.cpp 42 43mac { 44 SOURCES += ../../TestNetscapePlugIn/main.cpp 45 OBJECTIVE_SOURCES += PluginObjectMac.mm 46 LIBS += -framework Carbon -framework Cocoa -framework QuartzCore 47} else { 48 SOURCES += ../../unix/TestNetscapePlugin/TestNetscapePlugin.cpp 49} 50 51DEFINES -= QT_ASCII_CAST_WARNINGS 52 53!win32:!embedded:!mac:!symbian { 54 LIBS += -lX11 55} 56