Move base Java utils to base/test/android/javatests.
[chromium-blink-merge.git] / webkit / support / webkit_support.gypi
blobc54f97aba089eb24c2d7a21de40e7aca84357faf
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
6   'variables': {
7     'chromium_code': 1,
8   },
9   'targets': [
10     {
11       'target_name': 'webkit_support',
12       'type': 'static_library',
13       'variables': { 'enable_wexit_time_destructors': 1, },
14       'dependencies': [
15         '<(DEPTH)/base/base.gyp:base',
16         '<(DEPTH)/base/base.gyp:base_i18n',
17         '<(DEPTH)/media/media.gyp:media',
18         '<(DEPTH)/net/net.gyp:net',
19         '<(DEPTH)/skia/skia.gyp:skia',
20         '<(DEPTH)/testing/gtest.gyp:gtest',
21         '<(DEPTH)/ui/ui.gyp:ui',
22         'appcache',
23         'blob',
24         'database',
25         'dom_storage',
26         'fileapi',
27         'forms',
28         'glue',
29         'user_agent',
30         'webkit_base',
31         'webkit_gpu',
32         'webkit_media',
33         'webkit_support_common',
34       ],
35       'include_dirs': [
36         '<(SHARED_INTERMEDIATE_DIR)/webkit', # for a header generated by grit
37       ],
38       'defines': [
39         # Technically not a unit test but require functions available only to
40         # unit tests.
41         'UNIT_TEST'
42       ],
43       'sources': [
44         'drt_application_mac.h',
45         'drt_application_mac.mm',
46         'gc_extension.cc',
47         'gc_extension.h',
48         'platform_support.h',
49         'platform_support_android.cc',
50         'platform_support_linux.cc',
51         'platform_support_mac.mm',
52         'platform_support_win.cc',
53         'test_media_stream_client.cc',
54         'test_media_stream_client.h',
55         'test_stream_texture_factory_android.cc',
56         'test_stream_texture_factory_android.h',
57         'test_webkit_platform_support.cc',
58         'test_webkit_platform_support.h',
59         'test_webmessageportchannel.cc',
60         'test_webmessageportchannel.h',
61         'test_webplugin_page_delegate.cc',
62         'test_webplugin_page_delegate.h',
63         'webkit_support.cc',
64         'webkit_support.h',
65         'webkit_support_glue.cc',
66         'weburl_loader_mock.cc',
67         'weburl_loader_mock.h',
68         'weburl_loader_mock_factory.cc',
69         'weburl_loader_mock_factory.h',
70         'web_audio_device_mock.cc',
71         'web_audio_device_mock.h',
72       ],
73       'conditions': [
74         ['OS=="mac"', {
75           'copies': [{
76             'destination': '<(SHARED_INTERMEDIATE_DIR)/webkit',
77             'files': [
78               '../tools/test_shell/resources/missingImage.png',
79               '../tools/test_shell/resources/textAreaResizeCorner.png',
80             ],
81           }],
82         },{ # OS!="mac"
83           'copies': [{
84             'destination': '<(PRODUCT_DIR)/DumpRenderTree_resources',
85             'files': [
86               '../tools/test_shell/resources/missingImage.gif',
87               '../tools/test_shell/resources/textAreaResizeCorner.png',
88             ],
89           }],
90         }],
91       ],
92     },
94     {
95       'target_name': 'webkit_support_common',
96       'type': 'static_library',
97       'variables': { 'enable_wexit_time_destructors': 1, },
98       'dependencies': [
99         '<(DEPTH)/base/base.gyp:base',
100         '<(DEPTH)/crypto/crypto.gyp:crypto',
101         '<(DEPTH)/net/net.gyp:net',
102         '<(DEPTH)/skia/skia.gyp:skia',
103         '<(DEPTH)/third_party/zlib/zlib.gyp:zlib',
104         '<(DEPTH)/ui/ui.gyp:ui',
105         'glue',
106         'user_agent',
107         'webkit_support_gfx',
108       ],
109       'export_dependent_settings': [
110         '<(DEPTH)/base/base.gyp:base',
111       ],
112       'sources': [
113         '<(DEPTH)/webkit/tools/test_shell/mac/DumpRenderTreePasteboard.h',
114         '<(DEPTH)/webkit/tools/test_shell/mac/DumpRenderTreePasteboard.m',
115         '<(DEPTH)/webkit/tools/test_shell/mock_webclipboard_impl.cc',
116         '<(DEPTH)/webkit/tools/test_shell/mock_webclipboard_impl.h',
117         '<(DEPTH)/webkit/tools/test_shell/simple_appcache_system.cc',
118         '<(DEPTH)/webkit/tools/test_shell/simple_appcache_system.h',
119         '<(DEPTH)/webkit/tools/test_shell/simple_clipboard_impl.cc',
120         '<(DEPTH)/webkit/tools/test_shell/simple_dom_storage_system.cc',
121         '<(DEPTH)/webkit/tools/test_shell/simple_dom_storage_system.h',
122         '<(DEPTH)/webkit/tools/test_shell/simple_file_system.cc',
123         '<(DEPTH)/webkit/tools/test_shell/simple_file_system.h',
124         '<(DEPTH)/webkit/tools/test_shell/simple_file_writer.cc',
125         '<(DEPTH)/webkit/tools/test_shell/simple_file_writer.h',
126         '<(DEPTH)/webkit/tools/test_shell/simple_resource_loader_bridge.cc',
127         '<(DEPTH)/webkit/tools/test_shell/simple_resource_loader_bridge.h',
128         '<(DEPTH)/webkit/tools/test_shell/simple_socket_stream_bridge.cc',
129         '<(DEPTH)/webkit/tools/test_shell/simple_socket_stream_bridge.h',
130         '<(DEPTH)/webkit/tools/test_shell/simple_webcookiejar_impl.cc',
131         '<(DEPTH)/webkit/tools/test_shell/simple_webcookiejar_impl.h',
132         '<(DEPTH)/webkit/tools/test_shell/test_shell_request_context.cc',
133         '<(DEPTH)/webkit/tools/test_shell/test_shell_request_context.h',
134         '<(DEPTH)/webkit/tools/test_shell/test_shell_webblobregistry_impl.cc',
135         '<(DEPTH)/webkit/tools/test_shell/test_shell_webblobregistry_impl.h',
136         '<(DEPTH)/webkit/tools/test_shell/test_shell_webmimeregistry_impl.cc',
137         '<(DEPTH)/webkit/tools/test_shell/test_shell_webmimeregistry_impl.h',
138         '<(DEPTH)/webkit/fileapi/mock_file_system_options.cc',
139         '<(DEPTH)/webkit/fileapi/mock_file_system_options.h',
140         'simple_database_system.cc',
141         'simple_database_system.h',
142       ],
143       'conditions': [
144         ['inside_chromium_build==0', {
145           'dependencies': [
146             'setup_third_party.gyp:third_party_headers',
147           ],
148         }],
149       ],
150     },
152     {
153       'target_name': 'webkit_support_gfx',
154       'type': 'static_library',
155       'variables': { 'enable_wexit_time_destructors': 1, },
156       'dependencies': [
157         '<(DEPTH)/third_party/libpng/libpng.gyp:libpng',
158         '<(DEPTH)/third_party/zlib/zlib.gyp:zlib',
159       ],
160       'sources': [
161         'webkit_support_gfx.h',
162         'webkit_support_gfx.cc',
163       ],
164       'include_dirs': [
165         '<(DEPTH)',
166       ],
167       'conditions': [
168           ['OS=="android"', {
169               'toolsets': ['target', 'host'],
170           }],
171       ],
172     },
173   ],