• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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.
4
5{
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/native_theme/native_theme.gyp:native_theme',
44        '<(DEPTH)/ui/ui.gyp:ui',
45        '<(DEPTH)/url/url.gyp:url_lib',
46        '<(DEPTH)/v8/tools/gyp/v8.gyp:v8',
47        '<(DEPTH)/webkit/common/user_agent/webkit_user_agent.gyp:user_agent',
48        '<(DEPTH)/webkit/common/webkit_common.gyp:webkit_common',
49      ],
50      'include_dirs': [
51        # For JNI generated header.
52        '<(SHARED_INTERMEDIATE_DIR)/webkit',
53      ],
54      # This target exports a hard dependency because dependent targets may
55      # include the header generated above.
56      'hard_dependency': 1,
57      'sources': [
58        'fling_animator_impl_android.cc',
59        'fling_animator_impl_android.h',
60        'fling_curve_configuration.cc',
61        'fling_curve_configuration.h',
62        'ftp_directory_listing_response_delegate.cc',
63        'ftp_directory_listing_response_delegate.h',
64        'multipart_response_delegate.cc',
65        'multipart_response_delegate.h',
66        'resource_loader_bridge.cc',
67        'resource_loader_bridge.h',
68        'touch_fling_gesture_curve.cc',
69        'touch_fling_gesture_curve.h',
70        'web_discardable_memory_impl.cc',
71        'web_discardable_memory_impl.h',
72        'webfallbackthemeengine_impl.cc',
73        'webfallbackthemeengine_impl.h',
74        'webkit_child_export.h',
75        'webkit_child_helpers.cc',
76        'webkit_child_helpers.h',
77        'webkitplatformsupport_child_impl.cc',
78        'webkitplatformsupport_child_impl.h',
79        'webkitplatformsupport_impl.cc',
80        'webkitplatformsupport_impl.h',
81        'websocketstreamhandle_bridge.h',
82        'websocketstreamhandle_delegate.h',
83        'websocketstreamhandle_impl.cc',
84        'websocketstreamhandle_impl.h',
85        'webthemeengine_impl_android.cc',
86        'webthemeengine_impl_android.h',
87        'webthemeengine_impl_default.cc',
88        'webthemeengine_impl_default.h',
89        'webthemeengine_impl_mac.cc',
90        'webthemeengine_impl_mac.h',
91        'webthemeengine_impl_win.cc',
92        'webthemeengine_impl_win.h',
93        'webthread_impl.cc',
94        'webthread_impl.h',
95        'weburlloader_impl.cc',
96        'weburlloader_impl.h',
97        'weburlrequest_extradata_impl.cc',
98        'weburlrequest_extradata_impl.h',
99        'weburlresponse_extradata_impl.cc',
100        'weburlresponse_extradata_impl.h',
101        'worker_task_runner.cc',
102        'worker_task_runner.h',
103      ],
104      # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
105      'msvs_disabled_warnings': [ 4267 ],
106      'conditions': [
107        ['use_default_render_theme==0',
108          {
109            'sources/': [
110              ['exclude', 'webthemeengine_impl_default.cc'],
111              ['exclude', 'webthemeengine_impl_default.h'],
112            ],
113          }
114        ],
115        ['OS=="mac"',
116          {
117            'link_settings': {
118              'libraries': [
119                '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework',
120              ],
121            },
122          }
123        ],
124        ['OS=="android"',
125          {
126            'dependencies': [
127              'overscroller_jni_headers',
128            ],
129          }
130        ],
131      ],
132    },
133  ],
134}
135