'content.gyp:content_renderer',
'content.gyp:content_utility',
'content.gyp:content_worker',
+ 'content_resources.gyp:content_resources',
'content_shell_resources',
+ 'copy_test_netscape_plugin',
'test_support_content',
- 'content_resources.gyp:content_resources',
'../base/base.gyp:base',
'../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
'../components/components.gyp:breakpad_component',
'../net/net.gyp:net_resources',
'../skia/skia.gyp:skia',
'../third_party/WebKit/public/blink.gyp:blink',
- '../third_party/WebKit/public/blink_test_plugin.gyp:blink_test_plugin',
- '../third_party/WebKit/public/blink_test_runner.gyp:blink_test_support',
+ '../third_party/WebKit/public/blink.gyp:blink_web_test_support',
'../ui/events/events.gyp:events_base',
'../ui/gfx/gfx.gyp:gfx',
'../ui/gfx/gfx.gyp:gfx_geometry',
'../v8/tools/gyp/v8.gyp:v8',
'../webkit/common/user_agent/webkit_user_agent.gyp:user_agent',
'../webkit/common/webkit_common.gyp:webkit_common',
- '../webkit/glue/webkit_glue.gyp:glue',
'../webkit/webkit_resources.gyp:webkit_resources',
],
'include_dirs': [
'shell/renderer/test_runner/CppVariant.h',
'shell/renderer/test_runner/EventSender.cpp',
'shell/renderer/test_runner/EventSender.h',
- 'shell/renderer/test_runner/GamepadController.cpp',
- 'shell/renderer/test_runner/GamepadController.h',
'shell/renderer/test_runner/KeyCodeMapping.cpp',
'shell/renderer/test_runner/KeyCodeMapping.h',
'shell/renderer/test_runner/MockColorChooser.cpp',
'shell/renderer/test_runner/TestPlugin.h',
'shell/renderer/test_runner/TestRunner.cpp',
'shell/renderer/test_runner/TestRunner.h',
- 'shell/renderer/test_runner/TextInputController.cpp',
- 'shell/renderer/test_runner/TextInputController.h',
'shell/renderer/test_runner/WebAXObjectProxy.cpp',
'shell/renderer/test_runner/WebAXObjectProxy.h',
'shell/renderer/test_runner/WebFrameTestProxy.h',
'shell/renderer/test_runner/WebTestProxy.cpp',
'shell/renderer/test_runner/WebTestProxy.h',
'shell/renderer/test_runner/WebTestRunner.h',
- 'shell/renderer/test_runner/WebTestThemeControlWin.cpp',
- 'shell/renderer/test_runner/WebTestThemeControlWin.h',
'shell/renderer/test_runner/WebTestThemeEngineMac.h',
'shell/renderer/test_runner/WebTestThemeEngineMac.mm',
'shell/renderer/test_runner/WebTestThemeEngineMock.cpp',
'shell/renderer/test_runner/WebTestThemeEngineMock.h',
- 'shell/renderer/test_runner/WebTestThemeEngineWin.cpp',
- 'shell/renderer/test_runner/WebTestThemeEngineWin.h',
'shell/renderer/test_runner/WebUserMediaClientMock.cpp',
'shell/renderer/test_runner/WebUserMediaClientMock.h',
+ 'shell/renderer/test_runner/gamepad_controller.cc',
+ 'shell/renderer/test_runner/gamepad_controller.h',
+ 'shell/renderer/test_runner/text_input_controller.cc',
+ 'shell/renderer/test_runner/text_input_controller.h',
'shell/renderer/webkit_test_runner.cc',
'shell/renderer/webkit_test_runner.h',
'test/layouttest_support.cc',
},
},
'conditions': [
+ ['OS=="mac"', {
+ 'sources/': [
+ ['exclude', 'WebTestThemeEngineMock.cpp'],
+ ],
+ }],
['OS=="win" and win_use_allocator_shim==1', {
'dependencies': [
'../base/allocator/allocator.gyp:allocator',
'content_shell_jni_headers',
],
'dependencies!': [
- '../third_party/WebKit/public/blink_test_plugin.gyp:blink_test_plugin',
+ 'copy_test_netscape_plugin',
],
}, { # else: OS!="android"
'dependencies': [
# The test plugin relies on X11.
['OS=="linux" and use_x11==0', {
'dependencies!': [
- '../third_party/WebKit/public/blink_test_plugin.gyp:blink_test_plugin',
+ 'copy_test_netscape_plugin',
],
}],
['chromeos==1', {
}],
],
},
+ {
+ 'target_name': 'test_netscape_plugin',
+ 'type': 'loadable_module',
+ 'sources': [
+ 'shell/tools/plugin/PluginObject.cpp',
+ 'shell/tools/plugin/PluginObject.h',
+ 'shell/tools/plugin/PluginObjectMac.mm',
+ 'shell/tools/plugin/PluginTest.cpp',
+ 'shell/tools/plugin/PluginTest.h',
+ 'shell/tools/plugin/TestObject.cpp',
+ 'shell/tools/plugin/Tests/DocumentOpenInDestroyStream.cpp',
+ 'shell/tools/plugin/Tests/EvaluateJSAfterRemovingPluginElement.cpp',
+ 'shell/tools/plugin/Tests/FormValue.cpp',
+ 'shell/tools/plugin/Tests/GetURLNotifyWithURLThatFailsToLoad.cpp',
+ 'shell/tools/plugin/Tests/GetURLWithJavaScriptURL.cpp',
+ 'shell/tools/plugin/Tests/GetURLWithJavaScriptURLDestroyingPlugin.cpp',
+ 'shell/tools/plugin/Tests/GetUserAgentWithNullNPPFromNPPNew.cpp',
+ 'shell/tools/plugin/Tests/LeakWindowScriptableObject.cpp',
+ 'shell/tools/plugin/Tests/LogNPPSetWindow.cpp',
+ 'shell/tools/plugin/Tests/NPDeallocateCalledBeforeNPShutdown.cpp',
+ 'shell/tools/plugin/Tests/NPPNewFails.cpp',
+ 'shell/tools/plugin/Tests/NPRuntimeCallsWithNullNPP.cpp',
+ 'shell/tools/plugin/Tests/NPRuntimeObjectFromDestroyedPlugin.cpp',
+ 'shell/tools/plugin/Tests/NPRuntimeRemoveProperty.cpp',
+ 'shell/tools/plugin/Tests/NullNPPGetValuePointer.cpp',
+ 'shell/tools/plugin/Tests/PassDifferentNPPStruct.cpp',
+ 'shell/tools/plugin/Tests/PluginScriptableNPObjectInvokeDefault.cpp',
+ 'shell/tools/plugin/Tests/PluginScriptableObjectOverridesAllProperties.cpp',
+ 'shell/tools/plugin/main.cpp',
+ 'shell/tools/plugin/test_object.h',
+ ],
+ 'include_dirs': [
+ '<(DEPTH)',
+ '<(DEPTH)/content/shell/tools/plugin/',
+ ],
+ 'dependencies': [
+ '../base/base.gyp:base',
+ '../third_party/npapi/npapi.gyp:npapi',
+ ],
+ 'conditions': [
+ ['OS=="mac"', {
+ 'mac_bundle': 1,
+ 'product_extension': 'plugin',
+ 'link_settings': {
+ 'libraries': [
+ '$(SDKROOT)/System/Library/Frameworks/Carbon.framework',
+ '$(SDKROOT)/System/Library/Frameworks/Cocoa.framework',
+ '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework',
+ ]
+ },
+ 'xcode_settings': {
+ 'GCC_SYMBOLS_PRIVATE_EXTERN': 'NO',
+ 'INFOPLIST_FILE': 'shell/tools/plugin/mac/Info.plist',
+ },
+ }],
+ ['os_posix == 1 and OS != "mac"', {
+ 'cflags': [
+ '-fvisibility=default',
+ ],
+ }],
+ ['OS=="win"', {
+ 'defines': [
+ # This seems like a hack, but this is what Safari Win does.
+ 'snprintf=_snprintf',
+ ],
+ 'sources': [
+ 'shell/tools/plugin/win/TestNetscapePlugin.def',
+ 'shell/tools/plugin/win/TestNetscapePlugin.rc',
+ ],
+ # The .rc file requires that the name of the dll is np_test_netscape_plugin.dll.
+ 'product_name': 'np_test_netscape_plugin',
+ # Disable c4267 warnings until we fix size_t to int truncations.
+ 'msvs_disabled_warnings': [ 4267, ],
+ }],
+ ],
+ },
+ {
+ 'target_name': 'copy_test_netscape_plugin',
+ 'type': 'none',
+ 'dependencies': [
+ 'test_netscape_plugin',
+ ],
+ 'conditions': [
+ ['OS=="win"', {
+ 'copies': [{
+ 'destination': '<(PRODUCT_DIR)/plugins',
+ 'files': ['<(PRODUCT_DIR)/np_test_netscape_plugin.dll'],
+ }],
+ }],
+ ['OS=="mac"', {
+ 'copies': [{
+ 'destination': '<(PRODUCT_DIR)/plugins/',
+ 'files': ['<(PRODUCT_DIR)/test_netscape_plugin.plugin/'],
+ }],
+ }],
+ ['os_posix == 1 and OS != "mac"', {
+ 'copies': [{
+ 'destination': '<(PRODUCT_DIR)/plugins',
+ 'files': ['<(PRODUCT_DIR)/libtest_netscape_plugin.so'],
+ }],
+ }],
+ ],
+ }
],
'conditions': [
['OS=="mac"', {
'shell/app/shell_content_main.cc',
'shell/app/shell_content_main.h',
],
- 'postbuilds': [
- {
- # Modify the Info.plist as needed. The script explains why
- # this is needed. This is also done in the chrome target.
- # The framework needs the Breakpad keys if this feature is
- # enabled. It does not need the Keystone keys; these always
- # come from the outer application bundle. The framework
- # doesn't currently use the SCM keys for anything,
- # but this seems like a really good place to store them.
- 'postbuild_name': 'Tweak Info.plist',
- 'action': ['../build/mac/tweak_info_plist.py',
- '--breakpad=1',
- '--keystone=0',
- '--scm=1',
- '--version=<(content_shell_version)',
- '--branding=<(content_shell_product_name)'],
- },
- ],
+ 'postbuilds': [
+ {
+ # Modify the Info.plist as needed. The script explains why
+ # this is needed. This is also done in the chrome target.
+ # The framework needs the Breakpad keys if this feature is
+ # enabled. It does not need the Keystone keys; these always
+ # come from the outer application bundle. The framework
+ # doesn't currently use the SCM keys for anything,
+ # but this seems like a really good place to store them.
+ 'postbuild_name': 'Tweak Info.plist',
+ 'action': ['../build/mac/tweak_info_plist.py',
+ '--breakpad=1',
+ '--keystone=0',
+ '--scm=1',
+ '--version=<(content_shell_version)',
+ '--branding=<(content_shell_product_name)'],
+ },
+ ],
'copies': [
{
# Copy FFmpeg binaries for audio/video support.
}],
],
}],
+ ['icu_use_data_file_flag==1', {
+ 'mac_bundle_resources': [
+ '<(PRODUCT_DIR)/icudtl.dat',
+ ],
+ }],
],
}, # target content_shell_framework
{