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

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

Issue 1053203003: Work on Windows GN component build. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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 | « gpu/command_buffer/common/BUILD.gn ('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 group("service") {
9 if (is_component_build) {
10 public_deps = [
11 "//gpu",
12 ]
13 } else {
14 public_deps = [
15 ":service_sources",
16 ]
17 }
18 }
19
20 source_set("service_sources") {
21 visibility = [ "//gpu/*" ]
22
9 sources = [ 23 sources = [
10 "async_pixel_transfer_delegate.cc", 24 "async_pixel_transfer_delegate.cc",
11 "async_pixel_transfer_delegate.h", 25 "async_pixel_transfer_delegate.h",
12 "async_pixel_transfer_manager.cc", 26 "async_pixel_transfer_manager.cc",
13 "async_pixel_transfer_manager.h", 27 "async_pixel_transfer_manager.h",
14 "async_pixel_transfer_manager_android.cc", 28 "async_pixel_transfer_manager_android.cc",
15 "async_pixel_transfer_manager_idle.cc", 29 "async_pixel_transfer_manager_idle.cc",
16 "async_pixel_transfer_manager_idle.h", 30 "async_pixel_transfer_manager_idle.h",
17 "async_pixel_transfer_manager_linux.cc", 31 "async_pixel_transfer_manager_linux.cc",
18 "async_pixel_transfer_manager_mac.cc", 32 "async_pixel_transfer_manager_mac.cc",
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 135
122 configs += [ 136 configs += [
123 "//gpu:gpu_implementation", 137 "//gpu:gpu_implementation",
124 "//third_party/khronos:khronos_headers", 138 "//third_party/khronos:khronos_headers",
125 ] 139 ]
126 140
127 # Prefer mesa GL headers to system headers, which cause problems on Win. 141 # Prefer mesa GL headers to system headers, which cause problems on Win.
128 include_dirs = [ "//third_party/mesa/src/include" ] 142 include_dirs = [ "//third_party/mesa/src/include" ]
129 143
130 public_deps = [ 144 public_deps = [
131 "//gpu/command_buffer/common", 145 "//gpu/command_buffer/common:common_sources",
132 ] 146 ]
133 deps = [ 147 deps = [
134 ":disk_cache_proto", 148 ":disk_cache_proto",
135 "//base", 149 "//base",
136 "//base/third_party/dynamic_annotations", 150 "//base/third_party/dynamic_annotations",
137 "//crypto", 151 "//crypto",
138 "//third_party/angle:translator", 152 "//third_party/angle:translator",
139 "//third_party/protobuf:protobuf_lite", 153 "//third_party/protobuf:protobuf_lite",
140 "//third_party/re2", 154 "//third_party/re2",
141 "//third_party/smhasher:cityhash", 155 "//third_party/smhasher:cityhash",
142 "//ui/gfx", 156 "//ui/gfx",
143 "//ui/gfx/geometry", 157 "//ui/gfx/geometry",
144 "//ui/gl", 158 "//ui/gl",
145 ] 159 ]
146 160
147 if (ui_compositor_image_transport) {
148 include_dirs += [ "//third_party/khronos" ]
149 }
150
151 if (is_win || is_android || (is_linux && use_x11)) { 161 if (is_win || is_android || (is_linux && use_x11)) {
152 sources += [ 162 sources += [
153 "async_pixel_transfer_manager_egl.cc", 163 "async_pixel_transfer_manager_egl.cc",
154 "async_pixel_transfer_manager_egl.h", 164 "async_pixel_transfer_manager_egl.h",
155 ] 165 ]
156 } 166 }
157 167
158 if (is_android && !is_debug) { 168 if (is_android && !is_debug) {
159 # On Android optimize more since this component can be a bottleneck. 169 # On Android optimize more since this component can be a bottleneck.
160 configs -= [ "//build/config/compiler:optimize" ] 170 configs -= [ "//build/config/compiler:optimize" ]
161 configs += [ "//build/config/compiler:optimize_max" ] 171 configs += [ "//build/config/compiler:optimize_max" ]
162 } 172 }
163 } 173 }
164 174
165 proto_library("disk_cache_proto") { 175 proto_library("disk_cache_proto") {
166 sources = [ 176 sources = [
167 "disk_cache_proto.proto", 177 "disk_cache_proto.proto",
168 ] 178 ]
169 } 179 }
OLDNEW
« no previous file with comments | « gpu/command_buffer/common/BUILD.gn ('k') | gpu/config/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698