Add support for hooking up external feedback mechanism for DOM Distiller
[chromium-blink-merge.git] / webkit / child / webkit_child.gyp
blobe4ac2d20a3a23de780ccbfa45a5d0587bd8ab81a
1 # Copyright 2013 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   'conditions': [
10     ['OS=="android"',
11       {
12         'targets': [
13           {
14             'target_name': 'overscroller_jni_headers',
15             'type': 'none',
16             'variables': {
17               'jni_gen_package': 'webkit',
18               'input_java_class': 'android/widget/OverScroller.class',
19             },
20             'includes': [ '../../build/jar_file_jni_generator.gypi' ],
21           },
22         ],
23       }
24     ],
25   ],
26   'targets': [
27     {
28       'target_name': 'webkit_child',
29       'type': '<(component)',
30       'variables': { 'enable_wexit_time_destructors': 1, },
31       'defines': [
32         'WEBKIT_CHILD_IMPLEMENTATION',
33       ],
34       'dependencies': [
35         '<(DEPTH)/base/base.gyp:base',
36         '<(DEPTH)/base/base.gyp:base_i18n',
37         '<(DEPTH)/base/base.gyp:base_static',
38         '<(DEPTH)/base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
39         '<(DEPTH)/net/net.gyp:net',
40         '<(DEPTH)/skia/skia.gyp:skia',
41         '<(DEPTH)/third_party/WebKit/public/blink.gyp:blink',
42         '<(DEPTH)/ui/gfx/gfx.gyp:gfx',
43         '<(DEPTH)/ui/gfx/gfx.gyp:gfx_geometry',
44         '<(DEPTH)/ui/native_theme/native_theme.gyp:native_theme',
45         '<(DEPTH)/url/url.gyp:url_lib',
46         '<(DEPTH)/v8/tools/gyp/v8.gyp:v8',
47         '<(DEPTH)/webkit/common/webkit_common.gyp:webkit_common',
48       ],
49       'include_dirs': [
50         # For JNI generated header.
51         '<(SHARED_INTERMEDIATE_DIR)/webkit',
52       ],
53       # This target exports a hard dependency because dependent targets may
54       # include the header generated above.
55       'hard_dependency': 1,
56       'sources': [
57         'multipart_response_delegate.cc',
58         'multipart_response_delegate.h',
59         'resource_loader_bridge.cc',
60         'resource_loader_bridge.h',
61         'webkit_child_export.h',
62         'weburlresponse_extradata_impl.cc',
63         'weburlresponse_extradata_impl.h',
64       ],
65       # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
66       'msvs_disabled_warnings': [ 4267 ],
67       'conditions': [
68         ['OS=="mac"',
69           {
70             'link_settings': {
71               'libraries': [
72                 '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework',
73               ],
74             },
75           }
76         ],
77         ['OS=="android"',
78           {
79             'dependencies': [
80               'overscroller_jni_headers',
81             ],
82           }
83         ],
84       ],
85     },
86   ],