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

Side by Side Diff: gpu/command_buffer/service/BUILD.gn

Issue 603143002: gn: Fix more build issues on Win (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: += instead of = Created 6 years, 2 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 | « build/vs_toolchain.py ('k') | gpu/config/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 import("//build/config/ui.gni") 5 import("//build/config/ui.gni")
6 import("//third_party/protobuf/proto_library.gni") 6 import("//third_party/protobuf/proto_library.gni")
7 7
8 source_set("service") { 8 source_set("service") {
9 sources = [ 9 sources = [
10 "async_pixel_transfer_delegate.cc", 10 "async_pixel_transfer_delegate.cc",
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 "vertex_attrib_manager.h", 109 "vertex_attrib_manager.h",
110 "vertex_attrib_manager.cc", 110 "vertex_attrib_manager.cc",
111 ] 111 ]
112 112
113 defines = [ "GPU_IMPLEMENTATION" ] 113 defines = [ "GPU_IMPLEMENTATION" ]
114 114
115 configs += [ 115 configs += [
116 "//third_party/khronos:khronos_headers", 116 "//third_party/khronos:khronos_headers",
117 ] 117 ]
118 118
119 # Prefer mesa GL headers to system headers, which cause problems on Win.
120 include_dirs = [ "//third_party/mesa/src/include" ]
121
119 public_deps = [ 122 public_deps = [
120 "//gpu/command_buffer/common", 123 "//gpu/command_buffer/common",
121 ] 124 ]
122 deps = [ 125 deps = [
123 ":disk_cache_proto", 126 ":disk_cache_proto",
124 "//base", 127 "//base",
125 "//base/third_party/dynamic_annotations", 128 "//base/third_party/dynamic_annotations",
126 "//crypto", 129 "//crypto",
127 "//third_party/angle:translator", 130 "//third_party/angle:translator",
128 "//third_party/protobuf:protobuf_lite", 131 "//third_party/protobuf:protobuf_lite",
129 "//third_party/re2", 132 "//third_party/re2",
130 "//third_party/smhasher:cityhash", 133 "//third_party/smhasher:cityhash",
131 "//ui/gfx", 134 "//ui/gfx",
132 "//ui/gfx/geometry", 135 "//ui/gfx/geometry",
133 "//ui/gl", 136 "//ui/gl",
134 ] 137 ]
135 138
136 if (ui_compositor_image_transport) { 139 if (ui_compositor_image_transport) {
137 include_dirs = [ "//third_party/khronos" ] 140 include_dirs += [ "//third_party/khronos" ]
138 } 141 }
139 142
140 if (is_win || is_android || (is_linux && use_x11)) { 143 if (is_win || is_android || (is_linux && use_x11)) {
141 sources += [ 144 sources += [
142 "async_pixel_transfer_manager_egl.cc", 145 "async_pixel_transfer_manager_egl.cc",
143 "async_pixel_transfer_manager_egl.h", 146 "async_pixel_transfer_manager_egl.h",
144 ] 147 ]
145 } 148 }
146 149
147 if (is_android && !is_debug) { 150 if (is_android && !is_debug) {
148 # On Android optimize more since this component can be a bottleneck. 151 # On Android optimize more since this component can be a bottleneck.
149 configs -= [ "//build/config/compiler:optimize" ] 152 configs -= [ "//build/config/compiler:optimize" ]
150 configs += [ "//build/config/compiler:optimize_max" ] 153 configs += [ "//build/config/compiler:optimize_max" ]
151 } 154 }
152 } 155 }
153 156
154 proto_library("disk_cache_proto") { 157 proto_library("disk_cache_proto") {
155 sources = [ "disk_cache_proto.proto" ] 158 sources = [ "disk_cache_proto.proto" ]
156 } 159 }
OLDNEW
« no previous file with comments | « build/vs_toolchain.py ('k') | gpu/config/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698