Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(85)

Side by Side Diff: gpu/BUILD.gn

Issue 1011823002: Fix some GN component build issues. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « components/device_event_log/device_event_log_impl.h ('k') | gpu/command_buffer/client/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 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 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 # GYP-to-GN project mappings: 5 # GYP-to-GN project mappings:
6 # 6 #
7 # gpu.gyp:command_buffer_client => //gpu/command_buffer/client 7 # gpu.gyp:command_buffer_client => //gpu/command_buffer/client
8 # 8 #
9 # gpu.gyp:command_buffer_common => //gpu/command_buffer/common 9 # gpu.gyp:command_buffer_common => //gpu/command_buffer/common
10 # 10 #
(...skipping 18 matching lines...) Expand all
29 # command_buffer/command_buffer.gyp:gles2_utils => 29 # command_buffer/command_buffer.gyp:gles2_utils =>
30 # //gpu/command_buffer/common 30 # //gpu/command_buffer/common
31 # (Merged in to here because the separate file exists in GYP only to break 31 # (Merged in to here because the separate file exists in GYP only to break
32 # a .gyp file dependency cycle which GN doesn't have.) 32 # a .gyp file dependency cycle which GN doesn't have.)
33 # 33 #
34 # gpu/skia_bindings/skia_bindings.gyp:gpu_skia_bindings => //gpu/skia_bindings 34 # gpu/skia_bindings/skia_bindings.gyp:gpu_skia_bindings => //gpu/skia_bindings
35 35
36 import("//testing/test.gni") 36 import("//testing/test.gni")
37 import("//build/config/ui.gni") 37 import("//build/config/ui.gni")
38 38
39 config("gpu_implementation") {
40 defines = [ "GPU_IMPLEMENTATION" ]
41 }
42
39 component("gpu") { 43 component("gpu") {
40 public_deps = [ 44 public_deps = [
41 "//gpu/command_buffer/client", 45 "//gpu/command_buffer/client",
42 "//gpu/command_buffer/client:gles2_cmd_helper_sources", 46 "//gpu/command_buffer/client:gles2_cmd_helper_sources",
43 "//gpu/command_buffer/common", 47 "//gpu/command_buffer/common",
44 "//gpu/command_buffer/service", 48 "//gpu/command_buffer/service",
45 "//gpu/config", 49 "//gpu/config",
46 "//gpu/ipc", 50 "//gpu/ipc",
47 ] 51 ]
48 } 52 }
49 53
50 source_set("test_support") { 54 source_set("test_support") {
51 testonly = true 55 testonly = true
52 sources = [ 56 sources = [
53 "command_buffer/client/gles2_interface_stub.cc", 57 "command_buffer/client/gles2_interface_stub.cc",
54 "command_buffer/client/gles2_interface_stub.h", 58 "command_buffer/client/gles2_interface_stub.h",
55 "command_buffer/service/error_state_mock.cc", 59 "command_buffer/service/error_state_mock.cc",
56 "command_buffer/service/gles2_cmd_decoder_mock.cc", 60 "command_buffer/service/gles2_cmd_decoder_mock.cc",
57 ] 61 ]
58 62
63 configs += [ ":gpu_implementation" ]
64
59 public_deps = [ 65 public_deps = [
60 ":gpu", 66 ":gpu",
61 "//gpu/command_buffer/client:gles2_interface", 67 "//gpu/command_buffer/client:gles2_interface",
62 ] 68 ]
63 deps = [ 69 deps = [
64 "//testing/gmock", 70 "//testing/gmock",
65 "//testing/gtest", 71 "//testing/gtest",
66 "//ui/gl:gl_unittest_utils", 72 "//ui/gl:gl_unittest_utils",
67 ] 73 ]
68 } 74 }
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 libs = [ "GL" ] 306 libs = [ "GL" ]
301 307
302 configs += [ "//build/config/linux:x11" ] 308 configs += [ "//build/config/linux:x11" ]
303 309
304 deps = [ 310 deps = [
305 "//base", 311 "//base",
306 "//ui/gl", 312 "//ui/gl",
307 ] 313 ]
308 } 314 }
309 } 315 }
OLDNEW
« no previous file with comments | « components/device_event_log/device_event_log_impl.h ('k') | gpu/command_buffer/client/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698