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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 } | 105 } |
106 if (is_android) { | 106 if (is_android) { |
107 sources += [ | 107 sources += [ |
108 "image_transport_surface_android.cc", | 108 "image_transport_surface_android.cc", |
109 "stream_texture_android.cc", | 109 "stream_texture_android.cc", |
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 += [ "image_transport_surface_linux.cc" ] | 115 sources += [ |
| 116 "gpu_memory_buffer_factory_native_pixmap.cc", |
| 117 "gpu_memory_buffer_factory_native_pixmap.h", |
| 118 "image_transport_surface_linux.cc", |
| 119 ] |
116 } | 120 } |
117 if (use_x11) { | 121 if (use_x11) { |
118 sources += [ "x_util.h" ] | 122 sources += [ "x_util.h" ] |
119 } | 123 } |
120 if (use_ozone) { | 124 if (use_ozone) { |
121 sources += [ | |
122 "gpu_memory_buffer_factory_ozone_native_pixmap.cc", | |
123 "gpu_memory_buffer_factory_ozone_native_pixmap.h", | |
124 ] | |
125 deps += [ "//ui/ozone" ] | 125 deps += [ "//ui/ozone" ] |
126 } | 126 } |
127 } | 127 } |
128 | 128 |
129 source_set("test_support") { | 129 source_set("test_support") { |
130 testonly = true | 130 testonly = true |
131 sources = [ | 131 sources = [ |
132 "gpu_memory_buffer_factory_test_template.h", | 132 "gpu_memory_buffer_factory_test_template.h", |
133 ] | 133 ] |
134 public_deps = [ | 134 public_deps = [ |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 "//ui/gl:test_support", | 170 "//ui/gl:test_support", |
171 "//url", | 171 "//url", |
172 ] | 172 ] |
173 libs = [] | 173 libs = [] |
174 if (is_android) { | 174 if (is_android) { |
175 deps += [ "//ui/android:ui_java" ] | 175 deps += [ "//ui/android:ui_java" ] |
176 } | 176 } |
177 if (is_mac) { | 177 if (is_mac) { |
178 sources += [ "gpu_memory_buffer_factory_io_surface_unittest.cc" ] | 178 sources += [ "gpu_memory_buffer_factory_io_surface_unittest.cc" ] |
179 } | 179 } |
| 180 if (is_linux) { |
| 181 sources += [ "gpu_memory_buffer_factory_native_pixmap_unittest.cc" ] |
| 182 } |
180 if (use_ozone) { | 183 if (use_ozone) { |
181 sources += [ "gpu_memory_buffer_factory_ozone_native_pixmap_unittest.cc" ] | |
182 deps += [ "//ui/ozone" ] | 184 deps += [ "//ui/ozone" ] |
183 } | 185 } |
184 } | 186 } |
OLD | NEW |