blob: 33bc0134cd8a7d06fd903c0e7ed4ac4d2a9b9fc2 [file] [log] [blame]
# Copyright (c) 2011 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.
{
'variables': {
'chromium_code': 1,
},
'targets': [
{
'target_name': 'webkit_support',
'type': 'static_library',
'dependencies': [
'<(DEPTH)/base/base.gyp:base',
'<(DEPTH)/media/media.gyp:media',
'<(DEPTH)/net/net.gyp:net',
'<(DEPTH)/skia/skia.gyp:skia',
'<(DEPTH)/testing/gtest.gyp:gtest',
'<(DEPTH)/ui/ui.gyp:ui',
'appcache',
'blob',
'database',
'fileapi',
'glue',
'webkit_gpu',
'webkit_support_common',
],
'include_dirs': [
'<(SHARED_INTERMEDIATE_DIR)/webkit', # for a header generated by grit
],
'defines': [
# Technically not a unit test but require functions available only to
# unit tests.
'UNIT_TEST'
],
'sources': [
'drt_application_mac.h',
'drt_application_mac.mm',
'platform_support.h',
'platform_support_android.cc',
'platform_support_linux.cc',
'platform_support_mac.mm',
'platform_support_win.cc',
'test_webkit_platform_support.cc',
'test_webkit_platform_support.h',
'test_webmessageportchannel.cc',
'test_webmessageportchannel.h',
'test_webplugin_page_delegate.cc',
'test_webplugin_page_delegate.h',
'webkit_support.cc',
'webkit_support.h',
'webkit_support_glue.cc',
'weburl_loader_mock.cc',
'weburl_loader_mock.h',
'weburl_loader_mock_factory.cc',
'weburl_loader_mock_factory.h',
'web_audio_device_mock.cc',
'web_audio_device_mock.h',
],
'conditions': [
['OS=="mac"', {
'copies': [{
'destination': '<(SHARED_INTERMEDIATE_DIR)/webkit',
'files': ['../tools/test_shell/resources/textAreaResizeCorner.png'],
}],
},{ # OS!="mac"
'copies': [{
'destination': '<(PRODUCT_DIR)/DumpRenderTree_resources',
'files': [
'../tools/test_shell/resources/missingImage.gif',
'../tools/test_shell/resources/textAreaResizeCorner.png',
],
}],
}],
],
},
{
'target_name': 'webkit_support_common',
'type': 'static_library',
'dependencies': [
'<(DEPTH)/base/base.gyp:base',
'<(DEPTH)/crypto/crypto.gyp:crypto',
'<(DEPTH)/net/net.gyp:net',
'<(DEPTH)/skia/skia.gyp:skia',
'<(DEPTH)/ui/ui.gyp:ui',
'glue',
'webkit_support_gfx',
],
'export_dependent_settings': [
'<(DEPTH)/base/base.gyp:base',
],
'sources': [
'<(DEPTH)/webkit/tools/test_shell/mac/DumpRenderTreePasteboard.h',
'<(DEPTH)/webkit/tools/test_shell/mac/DumpRenderTreePasteboard.m',
'<(DEPTH)/webkit/tools/test_shell/mock_webclipboard_impl.cc',
'<(DEPTH)/webkit/tools/test_shell/mock_webclipboard_impl.h',
'<(DEPTH)/webkit/tools/test_shell/simple_appcache_system.cc',
'<(DEPTH)/webkit/tools/test_shell/simple_appcache_system.h',
'<(DEPTH)/webkit/tools/test_shell/simple_clipboard_impl.cc',
'<(DEPTH)/webkit/tools/test_shell/simple_file_system.cc',
'<(DEPTH)/webkit/tools/test_shell/simple_file_system.h',
'<(DEPTH)/webkit/tools/test_shell/simple_file_writer.cc',
'<(DEPTH)/webkit/tools/test_shell/simple_file_writer.h',
'<(DEPTH)/webkit/tools/test_shell/simple_resource_loader_bridge.cc',
'<(DEPTH)/webkit/tools/test_shell/simple_resource_loader_bridge.h',
'<(DEPTH)/webkit/tools/test_shell/simple_socket_stream_bridge.cc',
'<(DEPTH)/webkit/tools/test_shell/simple_socket_stream_bridge.h',
'<(DEPTH)/webkit/tools/test_shell/simple_webcookiejar_impl.cc',
'<(DEPTH)/webkit/tools/test_shell/simple_webcookiejar_impl.h',
'<(DEPTH)/webkit/tools/test_shell/test_shell_request_context.cc',
'<(DEPTH)/webkit/tools/test_shell/test_shell_request_context.h',
'<(DEPTH)/webkit/tools/test_shell/test_shell_webblobregistry_impl.cc',
'<(DEPTH)/webkit/tools/test_shell/test_shell_webblobregistry_impl.h',
'<(DEPTH)/webkit/tools/test_shell/test_shell_webmimeregistry_impl.cc',
'<(DEPTH)/webkit/tools/test_shell/test_shell_webmimeregistry_impl.h',
'simple_database_system.cc',
'simple_database_system.h',
],
'conditions': [
['inside_chromium_build==0', {
'dependencies': [
'setup_third_party.gyp:third_party_headers',
],
}],
],
},
{
'target_name': 'webkit_support_gfx',
'type': 'static_library',
'dependencies': [
'<(DEPTH)/third_party/libpng/libpng.gyp:libpng',
],
'sources': [
'webkit_support_gfx.h',
'webkit_support_gfx.cc',
],
'include_dirs': [
'<(DEPTH)',
],
'conditions': [
['OS=="android"', {
'toolsets': ['target', 'host'],
}],
],
},
],
}