Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / webkit / common / gpu / webkit_gpu.gyp
1 # Copyright (c) 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   'conditions': [
7     # TODO(stuartmorgan): All dependencies from code built on iOS to
8     # webkit/ should be removed, at which point this condition can be
9     # removed.
10     ['OS != "ios"', {
11       'targets': [
12         {
13           'target_name': 'webkit_gpu',
14           'type': '<(component)',
15           'variables': { 'enable_wexit_time_destructors': 1, },
16           'dependencies': [
17             '<(DEPTH)/base/base.gyp:base',
18             '<(DEPTH)/cc/cc.gyp:cc',
19             '<(DEPTH)/base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
20             '<(DEPTH)/gpu/command_buffer/command_buffer.gyp:gles2_utils',
21             '<(DEPTH)/gpu/gpu.gyp:command_buffer_service',
22             '<(DEPTH)/gpu/gpu.gyp:gles2_c_lib',
23             '<(DEPTH)/gpu/gpu.gyp:gles2_implementation',
24             '<(DEPTH)/gpu/skia_bindings/skia_bindings.gyp:gpu_skia_bindings',
25             '<(DEPTH)/skia/skia.gyp:skia',
26             '<(DEPTH)/third_party/WebKit/public/blink.gyp:blink_minimal',
27             '<(angle_path)/src/build_angle.gyp:translator',
28             '<(DEPTH)/ui/gl/gl.gyp:gl',
29             '<(DEPTH)/ui/gfx/gfx.gyp:gfx',
30             '<(DEPTH)/ui/gfx/gfx.gyp:gfx_geometry',
31           ],
32           'sources': [
33             # This list contains all .h and .cc in gpu except for test code.
34             'context_provider_in_process.cc',
35             'context_provider_in_process.h',
36             'context_provider_web_context.h',
37             'grcontext_for_webgraphicscontext3d.cc',
38             'grcontext_for_webgraphicscontext3d.h',
39             'webgraphicscontext3d_in_process_command_buffer_impl.cc',
40             'webgraphicscontext3d_in_process_command_buffer_impl.h',
41           ],
42           'defines': [
43             'WEBKIT_GPU_IMPLEMENTATION',
44           ],
45           # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
46           'msvs_disabled_warnings': [ 4267, ],
47         },
48       ],
49     }],
50   ],
51 }