Upstream version 5.34.98.0
[platform/framework/web/crosswalk.git] / src / webkit / glue / webkit_glue.gypi
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   'target_defaults': {
7      # Disable narrowing-conversion-in-initialization-list warnings in that we
8      # do not want to fix it in data file "webcursor_gtk_data.h".
9      'cflags+': ['-Wno-narrowing'],
10      'cflags_cc+': ['-Wno-narrowing'],
11   },
12   'variables': {
13     'chromium_code': 1,
14   },
15   'targets': [
16     {
17       'target_name': 'glue',
18       'type': '<(component)',
19       'variables': { 'enable_wexit_time_destructors': 1, },
20       'defines': [
21         'WEBKIT_EXTENSIONS_IMPLEMENTATION',
22         'WEBKIT_GLUE_IMPLEMENTATION',
23       ],
24       'dependencies': [
25         '<(DEPTH)/base/base.gyp:base',
26         '<(DEPTH)/base/base.gyp:base_i18n',
27         '<(DEPTH)/base/base.gyp:base_static',
28         '<(DEPTH)/base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
29         '<(DEPTH)/gpu/gpu.gyp:gles2_c_lib',
30         '<(DEPTH)/gpu/gpu.gyp:gles2_implementation',
31         '<(DEPTH)/net/net.gyp:net',
32         '<(DEPTH)/skia/skia.gyp:skia',
33         '<(DEPTH)/third_party/icu/icu.gyp:icui18n',
34         '<(DEPTH)/third_party/icu/icu.gyp:icuuc',
35         '<(DEPTH)/third_party/npapi/npapi.gyp:npapi',
36         '<(DEPTH)/ui/gfx/gfx.gyp:gfx',
37         '<(DEPTH)/ui/gfx/gfx.gyp:gfx_geometry',
38         '<(DEPTH)/ui/gl/gl.gyp:gl',
39         '<(DEPTH)/url/url.gyp:url_lib',
40         '<(DEPTH)/v8/tools/gyp/v8.gyp:v8',
41         '<(DEPTH)/webkit/common/user_agent/webkit_user_agent.gyp:user_agent',
42         '<(DEPTH)/webkit/common/webkit_common.gyp:webkit_common',
43         '<(DEPTH)/webkit/renderer/compositor_bindings/compositor_bindings.gyp:webkit_compositor_support',
44         '<(DEPTH)/webkit/storage_browser.gyp:webkit_storage_browser',
45         '<(DEPTH)/webkit/storage_common.gyp:webkit_storage_common',
46         '<(DEPTH)/webkit/webkit_resources.gyp:webkit_resources',
47         '<(DEPTH)/webkit/webkit_resources.gyp:webkit_strings',
48       ],
49       'include_dirs': [
50         '<(INTERMEDIATE_DIR)',
51         '<(SHARED_INTERMEDIATE_DIR)/webkit',
52         '<(SHARED_INTERMEDIATE_DIR)/ui',
53       ],
54       'sources': [
55         'simple_webmimeregistry_impl.cc',
56         'simple_webmimeregistry_impl.h',
57         'webfileutilities_impl.cc',
58         'webfileutilities_impl.h',
59         'webkit_glue.cc',
60         'webkit_glue.h',
61         'webkit_glue_export.h',
62       ],
63       # When glue is a dependency, it needs to be a hard dependency.
64       # Dependents may rely on files generated by this target or one of its
65       # own hard dependencies.
66       'hard_dependency': 1,
67       'conditions': [
68         ['toolkit_uses_gtk == 1', {
69           'dependencies': [
70             '<(DEPTH)/build/linux/system.gyp:gtk',
71           ],
72           'sources/': [['exclude', '_x11\\.cc$']],
73         }],
74         ['use_aura==1 and use_x11==1', {
75           'link_settings': {
76             'libraries': [ '-lXcursor', ],
77           },
78         }],
79         ['OS=="win"', {
80           'include_dirs': [
81             '<(DEPTH)/third_party/wtl/include',
82           ],
83           # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
84           'msvs_disabled_warnings': [ 4800, 4267 ],
85           'conditions': [
86             ['component=="shared_library"', {
87               'dependencies': [
88                  '<(DEPTH)/third_party/WebKit/public/blink.gyp:blink',
89                ],
90                'export_dependent_settings': [
91                  '<(DEPTH)/third_party/WebKit/public/blink.gyp:blink',
92                  '<(DEPTH)/v8/tools/gyp/v8.gyp:v8',
93                ],
94             }],
95           ],
96         }],
97         ['chrome_multiple_dll!=1', {
98           'dependencies': [
99             '<(DEPTH)/third_party/WebKit/public/blink.gyp:blink',
100           ],
101         }],
102         ['enable_printing!=0', {
103           'dependencies': [
104             '<(DEPTH)/printing/printing.gyp:printing',
105           ],
106         }],
107       ],
108     },
109   ],
110   'conditions': [
111     ['use_third_party_translations==1', {
112       'targets': [
113         {
114           'target_name': 'inspector_strings',
115           'type': 'none',
116           'variables': {
117             'grit_out_dir': '<(PRODUCT_DIR)/resources/inspector/l10n',
118           },
119           'actions': [
120             {
121               'action_name': 'inspector_strings',
122               'variables': {
123                 'grit_grd_file': 'inspector_strings.grd',
124               },
125               'includes': [ '../../build/grit_action.gypi' ],
126             },
127           ],
128           'includes': [ '../../build/grit_target.gypi' ],
129         },
130       ],
131     }],
132   ],
133 }