Remove the webkit_media target.
[chromium-blink-merge.git] / webkit / support / webkit_support.gypi
blob8e6e27a1dd08bb8eaedefa0e24b491e4b0214526
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)/base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
18         '<(DEPTH)/cc/cc.gyp:cc',
19         '<(DEPTH)/media/media.gyp:media',
20         '<(DEPTH)/net/net.gyp:net',
21         '<(DEPTH)/skia/skia.gyp:skia',
22         '<(DEPTH)/testing/gtest.gyp:gtest',
23         '<(DEPTH)/ui/gl/gl.gyp:gl',
24         '<(DEPTH)/ui/ui.gyp:shell_dialogs',
25         '<(DEPTH)/ui/ui.gyp:ui',
26         '<(DEPTH)/webkit/common/gpu/webkit_gpu.gyp:webkit_gpu',
27         '<(DEPTH)/webkit/common/user_agent/webkit_user_agent.gyp:user_agent',
28         '<(DEPTH)/webkit/common/webkit_common.gyp:webkit_common',
29         '<(DEPTH)/webkit/renderer/compositor_bindings/compositor_bindings.gyp:webkit_compositor_bindings',
30         '<(DEPTH)/webkit/renderer/compositor_bindings/compositor_bindings.gyp:webkit_compositor_support',
31         '<(DEPTH)/webkit/renderer/webkit_renderer.gyp:webkit_renderer',
32         '<(DEPTH)/webkit/storage_browser.gyp:webkit_storage_browser',
33         '<(DEPTH)/webkit/storage_common.gyp:webkit_storage_common',
34         '<(DEPTH)/webkit/storage_renderer.gyp:webkit_storage_renderer',
35         'glue',
36         'glue_child',
37         'plugins',
38         'webkit_support_common',
39       ],
40       'include_dirs': [
41         '<(SHARED_INTERMEDIATE_DIR)/webkit', # for a header generated by grit
42       ],
43       'defines': [
44         # Technically not a unit test but require functions available only to
45         # unit tests.
46         'UNIT_TEST'
47       ],
48       'sources': [
49         'drt_application_mac.h',
50         'drt_application_mac.mm',
51         'gc_extension.cc',
52         'gc_extension.h',
53         'platform_support.h',
54         'platform_support_android.cc',
55         'platform_support_linux.cc',
56         'platform_support_mac.mm',
57         'platform_support_win.cc',
58         'test_webkit_platform_support.cc',
59         'test_webkit_platform_support.h',
60         'test_webmessageportchannel.cc',
61         'test_webmessageportchannel.h',
62         'webkit_support.cc',
63         'webkit_support.h',
64         'webkit_support_glue.cc',
65         'weburl_loader_mock.cc',
66         'weburl_loader_mock.h',
67         'weburl_loader_mock_factory.cc',
68         'weburl_loader_mock_factory.h',
69         'web_audio_device_mock.cc',
70         'web_audio_device_mock.h',
71         'web_gesture_curve_mock.cc',
72         'web_gesture_curve_mock.h',
73         'web_layer_tree_view_impl_for_testing.cc',
74         'web_layer_tree_view_impl_for_testing.h',
75       ],
76       'conditions': [
77         ['OS=="mac"', {
78           'copies': [{
79             'destination': '<(SHARED_INTERMEDIATE_DIR)/webkit',
80             'files': [
81               '../tools/test_shell/resources/missingImage.png',
82               '../tools/test_shell/resources/textAreaResizeCorner.png',
83             ],
84           }],
85         },{ # OS!="mac"
86           'copies': [{
87             'destination': '<(PRODUCT_DIR)/DumpRenderTree_resources',
88             'files': [
89               '../tools/test_shell/resources/missingImage.gif',
90               '../tools/test_shell/resources/textAreaResizeCorner.png',
91             ],
92           }],
93         }],
94       ],
95       # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
96       'msvs_disabled_warnings': [ 4267, ],
97     },
99     {
100       'target_name': 'webkit_support_common',
101       'type': 'static_library',
102       'variables': { 'enable_wexit_time_destructors': 1, },
103       'dependencies': [
104         '<(DEPTH)/base/base.gyp:base',
105         '<(DEPTH)/crypto/crypto.gyp:crypto',
106         '<(DEPTH)/net/net.gyp:net',
107         '<(DEPTH)/skia/skia.gyp:skia',
108         '<(DEPTH)/third_party/hyphen/hyphen.gyp:hyphen',
109         '<(DEPTH)/third_party/zlib/zlib.gyp:zlib',
110         '<(DEPTH)/ui/ui.gyp:ui',
111         '<(DEPTH)/webkit/common/user_agent/webkit_user_agent.gyp:user_agent',
112         '<(DEPTH)/webkit/renderer/webkit_renderer.gyp:webkit_renderer',
113         'glue',
114         'webkit_support_gfx',
115       ],
116       'export_dependent_settings': [
117         '<(DEPTH)/base/base.gyp:base',
118       ],
119       'sources': [
120         '<(DEPTH)/webkit/browser/fileapi/mock_file_system_context.cc',
121         '<(DEPTH)/webkit/browser/fileapi/mock_file_system_context.h',
122         '<(DEPTH)/webkit/browser/fileapi/mock_file_system_options.cc',
123         '<(DEPTH)/webkit/browser/fileapi/mock_file_system_options.h',
124         '<(DEPTH)/webkit/browser/quota/mock_special_storage_policy.cc',
125         '<(DEPTH)/webkit/browser/quota/mock_special_storage_policy.h',
126         '<(DEPTH)/webkit/support/mac/DumpRenderTreePasteboard.h',
127         '<(DEPTH)/webkit/support/mac/DumpRenderTreePasteboard.m',
128         '<(DEPTH)/webkit/support/mock_webclipboard_impl.cc',
129         '<(DEPTH)/webkit/support/mock_webclipboard_impl.h',
130         '<(DEPTH)/webkit/support/test_shell_webblobregistry_impl.cc',
131         '<(DEPTH)/webkit/support/test_shell_webblobregistry_impl.h',
132         '<(DEPTH)/webkit/mocks/mock_webhyphenator.cc',
133         '<(DEPTH)/webkit/mocks/mock_webhyphenator.h',
134       ],
135       # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
136       'msvs_disabled_warnings': [ 4267, ],
137     },
139     {
140       'target_name': 'webkit_support_gfx',
141       'type': 'static_library',
142       'variables': { 'enable_wexit_time_destructors': 1, },
143       'dependencies': [
144         '<(DEPTH)/third_party/libpng/libpng.gyp:libpng',
145         '<(DEPTH)/third_party/zlib/zlib.gyp:zlib',
146       ],
147       'sources': [
148         'webkit_support_gfx.h',
149         'webkit_support_gfx.cc',
150       ],
151       'include_dirs': [
152         '<(DEPTH)',
153       ],
154       'conditions': [
155           ['OS=="android"', {
156               'toolsets': ['target', 'host'],
157           }],
158       ],
159     },
160   ],