Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / webkit / common / gpu / BUILD.gn
1 # Copyright 2014 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 # GYP version: webkit/common/gpu/webkit_gpu.gyp:webkit_gpu
6 component("gpu") {
7   output_name = "webkit_gpu"
8
9   sources = [
10     "context_provider_in_process.cc",
11     "context_provider_in_process.h",
12     "context_provider_web_context.h",
13     "grcontext_for_webgraphicscontext3d.cc",
14     "grcontext_for_webgraphicscontext3d.h",
15     "webgraphicscontext3d_impl.cc",
16     "webgraphicscontext3d_impl.h",
17     "webgraphicscontext3d_in_process_command_buffer_impl.cc",
18     "webgraphicscontext3d_in_process_command_buffer_impl.h",
19   ]
20
21   defines = [ "WEBKIT_GPU_IMPLEMENTATION" ]
22   configs += [ "//build/config/compiler:wexit_time_destructors" ]
23   if (is_win) {
24     # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
25     cflags = [ "/wd4267" ]
26   }
27
28   deps = [
29     "//base",
30     "//base/third_party/dynamic_annotations",
31     "//cc",
32     "//gpu/command_buffer/common",
33     "//gpu/command_buffer/service",
34     "//gpu/command_buffer/client:gles2_c_lib",
35     "//gpu/command_buffer/client:gles2_implementation",
36     "//gpu/command_buffer/client:gl_in_process_context",
37     "//gpu/skia_bindings",
38     "//skia",
39     "//third_party/WebKit/public:blink_minimal",
40     "//third_party/angle:translator",
41     "//ui/gl",
42     "//ui/gfx",
43     "//ui/gfx/geometry",
44   ]
45 }