Implement Device Orientation using shared memory in content/renderer.
[chromium-blink-merge.git] / webkit / support / webkit_support.gypi
blob682fe0d453934c6ee226af626fd3c3e56c696842
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/zlib/zlib.gyp:zlib',
109         '<(DEPTH)/ui/ui.gyp:ui',
110         '<(DEPTH)/webkit/common/user_agent/webkit_user_agent.gyp:user_agent',
111         '<(DEPTH)/webkit/renderer/webkit_renderer.gyp:webkit_renderer',
112         'glue',
113         'webkit_support_gfx',
114       ],
115       'export_dependent_settings': [
116         '<(DEPTH)/base/base.gyp:base',
117       ],
118       'sources': [
119         '<(DEPTH)/webkit/browser/fileapi/mock_file_system_context.cc',
120         '<(DEPTH)/webkit/browser/fileapi/mock_file_system_context.h',
121         '<(DEPTH)/webkit/browser/fileapi/mock_file_system_options.cc',
122         '<(DEPTH)/webkit/browser/fileapi/mock_file_system_options.h',
123         '<(DEPTH)/webkit/browser/quota/mock_special_storage_policy.cc',
124         '<(DEPTH)/webkit/browser/quota/mock_special_storage_policy.h',
125         '<(DEPTH)/webkit/support/mac/DumpRenderTreePasteboard.h',
126         '<(DEPTH)/webkit/support/mac/DumpRenderTreePasteboard.m',
127         '<(DEPTH)/webkit/support/mock_webclipboard_impl.cc',
128         '<(DEPTH)/webkit/support/mock_webclipboard_impl.h',
129         '<(DEPTH)/webkit/support/test_shell_webblobregistry_impl.cc',
130         '<(DEPTH)/webkit/support/test_shell_webblobregistry_impl.h',
131       ],
132       # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
133       'msvs_disabled_warnings': [ 4267, ],
134     },
136     {
137       'target_name': 'webkit_support_gfx',
138       'type': 'static_library',
139       'variables': { 'enable_wexit_time_destructors': 1, },
140       'dependencies': [
141         '<(DEPTH)/third_party/libpng/libpng.gyp:libpng',
142         '<(DEPTH)/third_party/zlib/zlib.gyp:zlib',
143       ],
144       'sources': [
145         'webkit_support_gfx.h',
146         'webkit_support_gfx.cc',
147       ],
148       'include_dirs': [
149         '<(DEPTH)',
150       ],
151       'conditions': [
152           ['OS=="android"', {
153               'toolsets': ['target', 'host'],
154           }],
155       ],
156     },
157   ],