OLD | NEW |
1 # Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 { | 5 { |
6 'variables': { | 6 'variables': { |
7 'chromium_code': 1, | 7 'chromium_code': 1, |
8 }, | 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': [ | 9 'targets': [ |
27 { | 10 { |
28 'target_name': 'webkit_child', | 11 'target_name': 'webkit_child', |
29 'type': '<(component)', | 12 'type': '<(component)', |
30 'variables': { 'enable_wexit_time_destructors': 1, }, | |
31 'defines': [ | 13 'defines': [ |
32 'WEBKIT_CHILD_IMPLEMENTATION', | 14 'WEBKIT_CHILD_IMPLEMENTATION', |
33 ], | 15 ], |
34 'dependencies': [ | 16 'dependencies': [ |
35 '<(DEPTH)/base/base.gyp:base', | 17 '../../base/base.gyp:base', |
36 '<(DEPTH)/base/base.gyp:base_i18n', | 18 '../../net/net.gyp:net', |
37 '<(DEPTH)/base/base.gyp:base_static', | |
38 '<(DEPTH)/base/third_party/dynamic_annotations/dynamic_annotations.gyp:d
ynamic_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 ], | 19 ], |
48 'include_dirs': [ | |
49 # For JNI generated header. | |
50 '<(SHARED_INTERMEDIATE_DIR)/webkit', | |
51 ], | |
52 # This target exports a hard dependency because dependent targets may | |
53 # include the header generated above. | |
54 'hard_dependency': 1, | |
55 'sources': [ | 20 'sources': [ |
56 'resource_loader_bridge.cc', | 21 'resource_loader_bridge.cc', |
57 'resource_loader_bridge.h', | 22 'resource_loader_bridge.h', |
58 'webkit_child_export.h', | 23 'webkit_child_export.h', |
59 ], | 24 ], |
60 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | |
61 'msvs_disabled_warnings': [ 4267 ], | |
62 'conditions': [ | |
63 ['OS=="mac"', | |
64 { | |
65 'link_settings': { | |
66 'libraries': [ | |
67 '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework', | |
68 ], | |
69 }, | |
70 } | |
71 ], | |
72 ['OS=="android"', | |
73 { | |
74 'dependencies': [ | |
75 'overscroller_jni_headers', | |
76 ], | |
77 } | |
78 ], | |
79 ], | |
80 }, | 25 }, |
81 ], | 26 ], |
82 } | 27 } |
OLD | NEW |