OLD | NEW |
| (Empty) |
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. | |
4 | |
5 { | |
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:d
ynamic_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:we
bkit_compositor_bindings', | |
30 '<(DEPTH)/webkit/renderer/compositor_bindings/compositor_bindings.gyp:we
bkit_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 'glue', | |
35 'glue_child', | |
36 'webkit_support_common', | |
37 ], | |
38 'include_dirs': [ | |
39 '<(SHARED_INTERMEDIATE_DIR)/webkit', # for a header generated by grit | |
40 ], | |
41 'defines': [ | |
42 # Technically not a unit test but require functions available only to | |
43 # unit tests. | |
44 'UNIT_TEST' | |
45 ], | |
46 'sources': [ | |
47 'test_webkit_platform_support.cc', | |
48 'test_webkit_platform_support.h', | |
49 'webkit_support.cc', | |
50 'webkit_support.h', | |
51 'webkit_support_glue.cc', | |
52 'weburl_loader_mock.cc', | |
53 'weburl_loader_mock.h', | |
54 'weburl_loader_mock_factory.cc', | |
55 'weburl_loader_mock_factory.h', | |
56 'web_gesture_curve_mock.cc', | |
57 'web_gesture_curve_mock.h', | |
58 'web_layer_tree_view_impl_for_testing.cc', | |
59 'web_layer_tree_view_impl_for_testing.h', | |
60 ], | |
61 'conditions': [ | |
62 ['OS=="mac"', { | |
63 'copies': [{ | |
64 'destination': '<(SHARED_INTERMEDIATE_DIR)/webkit', | |
65 'files': [ | |
66 '../tools/test_shell/resources/missingImage.png', | |
67 '../tools/test_shell/resources/textAreaResizeCorner.png', | |
68 ], | |
69 }], | |
70 },{ # OS!="mac" | |
71 'copies': [{ | |
72 'destination': '<(PRODUCT_DIR)/DumpRenderTree_resources', | |
73 'files': [ | |
74 '../tools/test_shell/resources/missingImage.gif', | |
75 '../tools/test_shell/resources/textAreaResizeCorner.png', | |
76 ], | |
77 }], | |
78 }], | |
79 ], | |
80 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | |
81 'msvs_disabled_warnings': [ 4267, ], | |
82 }, | |
83 | |
84 { | |
85 'target_name': 'webkit_support_common', | |
86 'type': 'static_library', | |
87 'variables': { 'enable_wexit_time_destructors': 1, }, | |
88 'dependencies': [ | |
89 '<(DEPTH)/base/base.gyp:base', | |
90 '<(DEPTH)/net/net.gyp:net', | |
91 '<(DEPTH)/skia/skia.gyp:skia', | |
92 '<(DEPTH)/third_party/zlib/zlib.gyp:zlib', | |
93 '<(DEPTH)/ui/ui.gyp:ui', | |
94 '<(DEPTH)/webkit/common/user_agent/webkit_user_agent.gyp:user_agent', | |
95 '<(DEPTH)/webkit/renderer/webkit_renderer.gyp:webkit_renderer', | |
96 'glue', | |
97 ], | |
98 'export_dependent_settings': [ | |
99 '<(DEPTH)/base/base.gyp:base', | |
100 ], | |
101 'sources': [ | |
102 '<(DEPTH)/webkit/support/mock_webclipboard_impl.cc', | |
103 '<(DEPTH)/webkit/support/mock_webclipboard_impl.h', | |
104 ], | |
105 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | |
106 'msvs_disabled_warnings': [ 4267, ], | |
107 }, | |
108 ], | |
109 } | |
OLD | NEW |