• 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    'enable_wexit_time_destructors': 1,
8    'chromium_code': 1
9  },
10  'targets': [
11    {
12      # GN version: //webkit/common:common",
13      'target_name': 'webkit_common',
14      'type': '<(component)',
15      'defines': [
16        'WEBKIT_COMMON_IMPLEMENTATION',
17      ],
18      'dependencies': [
19        '<(DEPTH)/base/base.gyp:base',
20        '<(DEPTH)/base/base.gyp:base_i18n',
21        '<(DEPTH)/base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
22        '<(DEPTH)/net/net.gyp:net',
23        '<(DEPTH)/skia/skia.gyp:skia',
24        '<(DEPTH)/ui/base/ui_base.gyp:ui_base',
25        '<(DEPTH)/ui/gfx/gfx.gyp:gfx',
26        '<(DEPTH)/ui/gfx/gfx.gyp:gfx_geometry',
27        '<(DEPTH)/ui/resources/ui_resources.gyp:ui_resources',
28        '<(DEPTH)/url/url.gyp:url_lib',
29        '<(DEPTH)/webkit/webkit_resources.gyp:webkit_resources',
30        '<(DEPTH)/third_party/WebKit/public/blink_headers.gyp:blink_headers',
31      ],
32      'export_dependent_settings': [
33        '<(DEPTH)/third_party/WebKit/public/blink_headers.gyp:blink_headers',
34      ],
35
36      'include_dirs': [
37        '<(INTERMEDIATE_DIR)',
38        '<(SHARED_INTERMEDIATE_DIR)/ui',
39        '<(SHARED_INTERMEDIATE_DIR)/webkit',
40      ],
41
42      'sources': [
43        'data_element.cc',
44        'data_element.h',
45        'resource_type.cc',
46        'resource_type.h',
47        'webkit_common_export.h',
48        'webpreferences.cc',
49        'webpreferences.h',
50      ],
51
52      'conditions': [
53        ['use_aura==1 and use_x11==1', {
54          'dependencies': [
55            '<(DEPTH)/build/linux/system.gyp:xcursor',
56          ],
57        }],
58        ['OS=="mac"', {
59          'link_settings': {
60            'libraries': [
61              '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework',
62            ],
63          },
64        }],
65        ['OS=="win"', {
66          # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
67          'msvs_disabled_warnings': [ 4800, 4267 ],
68        }],
69      ],
70    },
71  ],
72}
73