diff options
-rw-r--r-- | build/dynamiclib.xcconfig | 9 | ||||
-rw-r--r-- | third_party/npapi/bindings/npapi.h | 1 | ||||
-rw-r--r-- | webkit/tools/npapi_layout_test_plugin/Info.plist | 48 | ||||
-rw-r--r-- | webkit/tools/npapi_layout_test_plugin/Info.r | 22 | ||||
-rw-r--r-- | webkit/tools/npapi_layout_test_plugin/npapi_layout_test_plugin.xcodeproj/project.pbxproj | 262 |
5 files changed, 342 insertions, 0 deletions
diff --git a/build/dynamiclib.xcconfig b/build/dynamiclib.xcconfig new file mode 100644 index 0000000..5096ebc --- /dev/null +++ b/build/dynamiclib.xcconfig @@ -0,0 +1,9 @@ +// Copyright (c) 2008 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// Dynamic libs need to be position independent +GCC_DYNAMIC_NO_PIC = NO + +// Dynamic libs should not have their external symbols stripped. +STRIP_STYLE = non-global
\ No newline at end of file diff --git a/third_party/npapi/bindings/npapi.h b/third_party/npapi/bindings/npapi.h index db74e55..954a0ed 100644 --- a/third_party/npapi/bindings/npapi.h +++ b/third_party/npapi/bindings/npapi.h @@ -527,6 +527,7 @@ typedef struct _NPPrint // BEGIN GOOGLE MODIFICATIONS #ifdef XP_MACOSX +typedef struct _NPNSMenu NPNSMenu; typedef NPNSMenu NPMenu; #else typedef void * NPMenu; diff --git a/webkit/tools/npapi_layout_test_plugin/Info.plist b/webkit/tools/npapi_layout_test_plugin/Info.plist new file mode 100644 index 0000000..b44a783 --- /dev/null +++ b/webkit/tools/npapi_layout_test_plugin/Info.plist @@ -0,0 +1,48 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> +<plist version="1.0"> +<dict> + <key>CFBundleDevelopmentRegion</key> + <string>English</string> + <key>CFBundleExecutable</key> + <string>TestNetscapePlugIn</string> + <key>CFBundleGetInfoString</key> + <string>420+, Copyright 2006 Apple Computer, Inc.</string> + <key>CFBundleIdentifier</key> + <string>com.apple.testnetscapeplugin</string> + <key>CFBundleInfoDictionaryVersion</key> + <string>6.0</string> + <key>CFBundleExecutable</key> + <string>${EXECUTABLE_NAME}</string> + <key>CFBundleName</key> + <string>${PRODUCT_NAME}</string> + <key>CFBundlePackageType</key> + <string>BRPL</string> + <key>CFBundleShortVersionString</key> + <string>1.0</string> + <key>CFBundleSignature</key> + <string>????</string> + <key>CFBundleVersion</key> + <string>1.0</string> + <key>CFPlugInDynamicRegisterFunction</key> + <string></string> + <key>CFPlugInDynamicRegistration</key> + <string>NO</string> + <key>WebPluginDescription</key> + <string>Simple Netscape plug-in that handles test content for WebKit</string> + <key>WebPluginMIMETypes</key> + <dict> + <key>application/x-webkit-test-netscape</key> + <dict> + <key>WebPluginExtensions</key> + <array> + <string>testnetscape</string> + </array> + <key>WebPluginTypeDescription</key> + <string>test netscape content</string> + </dict> + </dict> + <key>WebPluginName</key> + <string>WebKit Test PlugIn</string> +</dict> +</plist> diff --git a/webkit/tools/npapi_layout_test_plugin/Info.r b/webkit/tools/npapi_layout_test_plugin/Info.r new file mode 100644 index 0000000..69a73bc --- /dev/null +++ b/webkit/tools/npapi_layout_test_plugin/Info.r @@ -0,0 +1,22 @@ +// Copyright (c) 2008 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#include <Carbon/Carbon.r> + +// Ignored by WebKit, but included for completeness so that Mozilla and friends +// can load us. + +resource 'STR#' (126) { { + "Simple Netscape plug-in that handles test content for WebKit", + "WebKit Test PlugIn" +} }; + +resource 'STR#' (127) { { + "test netscape content" +} }; + +resource 'STR#' (128) { { + "application/x-webkit-test-netscape", + "testnetscape" +} }; diff --git a/webkit/tools/npapi_layout_test_plugin/npapi_layout_test_plugin.xcodeproj/project.pbxproj b/webkit/tools/npapi_layout_test_plugin/npapi_layout_test_plugin.xcodeproj/project.pbxproj new file mode 100644 index 0000000..2dff8e8 --- /dev/null +++ b/webkit/tools/npapi_layout_test_plugin/npapi_layout_test_plugin.xcodeproj/project.pbxproj @@ -0,0 +1,262 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 42; + objects = { + +/* Begin PBXBuildFile section */ + 825522200EE70F9800329CC8 /* Info.r in Rez */ = {isa = PBXBuildFile; fileRef = 8255220A0EE70E7B00329CC8 /* Info.r */; }; + 826F17010EE5DFC000D973C7 /* main.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 826F16FB0EE5DFC000D973C7 /* main.cpp */; }; + 826F17020EE5DFC000D973C7 /* PluginObject.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 826F16FC0EE5DFC000D973C7 /* PluginObject.cpp */; }; + 826F17030EE5DFC000D973C7 /* TestObject.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 826F16FF0EE5DFC000D973C7 /* TestObject.cpp */; }; +/* End PBXBuildFile section */ + +/* Begin PBXFileReference section */ + 8255220A0EE70E7B00329CC8 /* Info.r */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.rez; path = Info.r; sourceTree = "<group>"; }; + 825CC90F0EE5F3FC00037AEA /* dynamiclib.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = dynamiclib.xcconfig; sourceTree = "<group>"; }; + 826F16CB0EE5DD8400D973C7 /* common.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = common.xcconfig; sourceTree = "<group>"; }; + 826F16CC0EE5DD8400D973C7 /* debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = debug.xcconfig; sourceTree = "<group>"; }; + 826F16CD0EE5DD8400D973C7 /* executable.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = executable.xcconfig; sourceTree = "<group>"; }; + 826F16CE0EE5DD8400D973C7 /* release.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = release.xcconfig; sourceTree = "<group>"; }; + 826F16CF0EE5DD8400D973C7 /* staticlib.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = staticlib.xcconfig; sourceTree = "<group>"; }; + 826F16DC0EE5DE3800D973C7 /* NPAPILayoutTestPlugin.bundle */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = NPAPILayoutTestPlugin.bundle; sourceTree = BUILT_PRODUCTS_DIR; }; + 826F16F90EE5DFB300D973C7 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; }; + 826F16FB0EE5DFC000D973C7 /* main.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = main.cpp; sourceTree = "<group>"; }; + 826F16FC0EE5DFC000D973C7 /* PluginObject.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = PluginObject.cpp; sourceTree = "<group>"; }; + 826F16FD0EE5DFC000D973C7 /* PluginObject.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PluginObject.h; sourceTree = "<group>"; }; + 826F16FF0EE5DFC000D973C7 /* TestObject.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = TestObject.cpp; sourceTree = "<group>"; }; + 826F17000EE5DFC000D973C7 /* TestObject.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TestObject.h; sourceTree = "<group>"; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 826F16DA0EE5DE3800D973C7 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 826F16B80EE5DD4800D973C7 = { + isa = PBXGroup; + children = ( + 826F16CA0EE5DD8400D973C7 /* build */, + 826F16E90EE5DFA300D973C7 /* Source */, + 826F16E80EE5DF9100D973C7 /* Resources */, + 826F16DD0EE5DE3800D973C7 /* Products */, + ); + sourceTree = "<group>"; + }; + 826F16CA0EE5DD8400D973C7 /* build */ = { + isa = PBXGroup; + children = ( + 826F16CB0EE5DD8400D973C7 /* common.xcconfig */, + 826F16CC0EE5DD8400D973C7 /* debug.xcconfig */, + 825CC90F0EE5F3FC00037AEA /* dynamiclib.xcconfig */, + 826F16CD0EE5DD8400D973C7 /* executable.xcconfig */, + 826F16CE0EE5DD8400D973C7 /* release.xcconfig */, + 826F16CF0EE5DD8400D973C7 /* staticlib.xcconfig */, + ); + name = build; + path = ../../../build; + sourceTree = SOURCE_ROOT; + }; + 826F16DD0EE5DE3800D973C7 /* Products */ = { + isa = PBXGroup; + children = ( + 826F16DC0EE5DE3800D973C7 /* NPAPILayoutTestPlugin.bundle */, + ); + name = Products; + sourceTree = "<group>"; + }; + 826F16E80EE5DF9100D973C7 /* Resources */ = { + isa = PBXGroup; + children = ( + 826F16F90EE5DFB300D973C7 /* Info.plist */, + 8255220A0EE70E7B00329CC8 /* Info.r */, + ); + name = Resources; + sourceTree = "<group>"; + }; + 826F16E90EE5DFA300D973C7 /* Source */ = { + isa = PBXGroup; + children = ( + 826F16FB0EE5DFC000D973C7 /* main.cpp */, + 826F16FC0EE5DFC000D973C7 /* PluginObject.cpp */, + 826F16FD0EE5DFC000D973C7 /* PluginObject.h */, + 826F16FF0EE5DFC000D973C7 /* TestObject.cpp */, + 826F17000EE5DFC000D973C7 /* TestObject.h */, + ); + name = Source; + sourceTree = "<group>"; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 826F16DB0EE5DE3800D973C7 /* NPAPILayoutTestPlugin */ = { + isa = PBXNativeTarget; + buildConfigurationList = 826F16E20EE5DE3900D973C7 /* Build configuration list for PBXNativeTarget "NPAPILayoutTestPlugin" */; + buildPhases = ( + 826F16D80EE5DE3800D973C7 /* Resources */, + 826F16D90EE5DE3800D973C7 /* Sources */, + 826F16DA0EE5DE3800D973C7 /* Frameworks */, + 8255221D0EE70F6800329CC8 /* Rez */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = NPAPILayoutTestPlugin; + productName = NPAPILayoutTestPlugin; + productReference = 826F16DC0EE5DE3800D973C7 /* NPAPILayoutTestPlugin.bundle */; + productType = "com.apple.product-type.bundle"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 826F16BA0EE5DD4800D973C7 /* Project object */ = { + isa = PBXProject; + buildConfigurationList = 826F16BD0EE5DD4800D973C7 /* Build configuration list for PBXProject "npapi_layout_test_plugin" */; + compatibilityVersion = "Xcode 2.4"; + hasScannedForEncodings = 0; + mainGroup = 826F16B80EE5DD4800D973C7; + productRefGroup = 826F16DD0EE5DE3800D973C7 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 826F16DB0EE5DE3800D973C7 /* NPAPILayoutTestPlugin */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 826F16D80EE5DE3800D973C7 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXRezBuildPhase section */ + 8255221D0EE70F6800329CC8 /* Rez */ = { + isa = PBXRezBuildPhase; + buildActionMask = 2147483647; + files = ( + 825522200EE70F9800329CC8 /* Info.r in Rez */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXRezBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 826F16D90EE5DE3800D973C7 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 826F17010EE5DFC000D973C7 /* main.cpp in Sources */, + 826F17020EE5DFC000D973C7 /* PluginObject.cpp in Sources */, + 826F17030EE5DFC000D973C7 /* TestObject.cpp in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin XCBuildConfiguration section */ + 826F16BB0EE5DD4800D973C7 /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 826F16CC0EE5DD8400D973C7 /* debug.xcconfig */; + buildSettings = { + XCODEPROJ_DEPTH = ../../..; + }; + name = Debug; + }; + 826F16BC0EE5DD4800D973C7 /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 826F16CE0EE5DD8400D973C7 /* release.xcconfig */; + buildSettings = { + XCODEPROJ_DEPTH = ../../..; + }; + name = Release; + }; + 826F16E00EE5DE3900D973C7 /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 825CC90F0EE5F3FC00037AEA /* dynamiclib.xcconfig */; + buildSettings = { + DIR_THIRD_PARTY = "$(XCODEPROJ_DEPTH)/third_party"; + DIR_WEBKIT = "$(DIR_THIRD_PARTY)/WebKit"; + GCC_PREFIX_HEADER = "$(SYSTEM_LIBRARY_DIR)/Frameworks/Carbon.framework/Headers/Carbon.h"; + GCC_PREPROCESSOR_DEFINITIONS = "XP_MACOSX=1"; + GCC_SYMBOLS_PRIVATE_EXTERN = NO; + HEADER_SEARCH_PATHS = ( + "$(XCODEPROJ_DEPTH)", + "$(DIR_THIRD_PARTY)/npapi", + "$(DIR_WEBKIT)/JavaScriptCore", + ); + INFOPLIST_FILE = Info.plist; + OTHER_LDFLAGS = ( + "-framework", + Carbon, + ); + PRODUCT_NAME = NPAPILayoutTestPlugin; + WRAPPER_EXTENSION = bundle; + }; + name = Debug; + }; + 826F16E10EE5DE3900D973C7 /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 825CC90F0EE5F3FC00037AEA /* dynamiclib.xcconfig */; + buildSettings = { + DIR_THIRD_PARTY = "$(XCODEPROJ_DEPTH)/third_party"; + DIR_WEBKIT = "$(DIR_THIRD_PARTY)/WebKit"; + GCC_PREFIX_HEADER = "$(SYSTEM_LIBRARY_DIR)/Frameworks/Carbon.framework/Headers/Carbon.h"; + GCC_PREPROCESSOR_DEFINITIONS = ( + "$(GCC_PREPROCESSOR_DEFINITIONS)", + "XP_MACOSX=1", + ); + GCC_SYMBOLS_PRIVATE_EXTERN = NO; + HEADER_SEARCH_PATHS = ( + "$(XCODEPROJ_DEPTH)", + "$(DIR_THIRD_PARTY)/npapi", + "$(DIR_WEBKIT)/JavaScriptCore", + ); + INFOPLIST_FILE = Info.plist; + OTHER_LDFLAGS = ( + "-framework", + Carbon, + ); + PRODUCT_NAME = NPAPILayoutTestPlugin; + WRAPPER_EXTENSION = bundle; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 826F16BD0EE5DD4800D973C7 /* Build configuration list for PBXProject "npapi_layout_test_plugin" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 826F16BB0EE5DD4800D973C7 /* Debug */, + 826F16BC0EE5DD4800D973C7 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 826F16E20EE5DE3900D973C7 /* Build configuration list for PBXNativeTarget "NPAPILayoutTestPlugin" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 826F16E00EE5DE3900D973C7 /* Debug */, + 826F16E10EE5DE3900D973C7 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 826F16BA0EE5DD4800D973C7 /* Project object */; +} |