OLD | NEW |
1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 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("//testing/test.gni") | 5 import("//testing/test.gni") |
6 import("//build/config/ui.gni") | 6 import("//build/config/ui.gni") |
7 if (is_mac) { | 7 if (is_mac) { |
8 import("//build/config/mac/mac_sdk.gni") | 8 import("//build/config/mac/mac_sdk.gni") |
9 } | 9 } |
10 | 10 |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 "stream_texture_android.h", | 110 "stream_texture_android.h", |
111 ] | 111 ] |
112 libs += [ "android" ] | 112 libs += [ "android" ] |
113 } | 113 } |
114 if (is_linux) { | 114 if (is_linux) { |
115 sources += [ | 115 sources += [ |
116 "gpu_memory_buffer_factory_native_pixmap.cc", | 116 "gpu_memory_buffer_factory_native_pixmap.cc", |
117 "gpu_memory_buffer_factory_native_pixmap.h", | 117 "gpu_memory_buffer_factory_native_pixmap.h", |
118 "image_transport_surface_linux.cc", | 118 "image_transport_surface_linux.cc", |
119 ] | 119 ] |
| 120 |
| 121 if (!use_ozone) { |
| 122 deps += [ "//ui/gfx:memory_buffer_sources" ] |
| 123 } |
120 } | 124 } |
121 if (use_x11) { | 125 if (use_x11) { |
122 sources += [ "x_util.h" ] | 126 sources += [ "x_util.h" ] |
123 } | 127 } |
124 if (use_ozone) { | 128 if (use_ozone) { |
125 deps += [ "//ui/ozone" ] | 129 deps += [ "//ui/ozone" ] |
126 } | 130 } |
127 } | 131 } |
128 | 132 |
129 source_set("test_support") { | 133 source_set("test_support") { |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 ] | 176 ] |
173 libs = [] | 177 libs = [] |
174 if (is_android) { | 178 if (is_android) { |
175 deps += [ "//ui/android:ui_java" ] | 179 deps += [ "//ui/android:ui_java" ] |
176 } | 180 } |
177 if (is_mac) { | 181 if (is_mac) { |
178 sources += [ "gpu_memory_buffer_factory_io_surface_unittest.cc" ] | 182 sources += [ "gpu_memory_buffer_factory_io_surface_unittest.cc" ] |
179 } | 183 } |
180 if (is_linux) { | 184 if (is_linux) { |
181 sources += [ "gpu_memory_buffer_factory_native_pixmap_unittest.cc" ] | 185 sources += [ "gpu_memory_buffer_factory_native_pixmap_unittest.cc" ] |
| 186 |
| 187 if (!use_ozone) { |
| 188 deps += [ "//ui/gfx:memory_buffer_sources" ] |
| 189 } |
182 } | 190 } |
183 if (use_ozone) { | 191 if (use_ozone) { |
184 deps += [ "//ui/ozone" ] | 192 deps += [ "//ui/ozone" ] |
185 } | 193 } |
186 } | 194 } |
OLD | NEW |