OLD | NEW |
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/android/config.gni") | 5 import("//build/config/android/config.gni") |
6 import("//build/config/arm.gni") | 6 import("//build/config/arm.gni") |
7 import("//build/config/ui.gni") | 7 import("//build/config/ui.gni") |
8 import("//build/config/linux/pkg_config.gni") | 8 import("//build/config/linux/pkg_config.gni") |
9 import("//media/media_options.gni") | 9 import("//media/media_options.gni") |
10 | 10 |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
217 | 217 |
218 if (is_linux || is_win) { | 218 if (is_linux || is_win) { |
219 sources += [ | 219 sources += [ |
220 "keyboard_event_counter.cc", | 220 "keyboard_event_counter.cc", |
221 "keyboard_event_counter.h", | 221 "keyboard_event_counter.h", |
222 ] | 222 ] |
223 } | 223 } |
224 } | 224 } |
225 | 225 |
226 source_set("test_support") { | 226 source_set("test_support") { |
| 227 testonly = true |
227 sources = [ | 228 sources = [ |
228 "fake_audio_render_callback.cc", | 229 "fake_audio_render_callback.cc", |
229 "fake_audio_render_callback.h", | 230 "fake_audio_render_callback.h", |
230 "fake_audio_renderer_sink.cc", | 231 "fake_audio_renderer_sink.cc", |
231 "fake_audio_renderer_sink.h", | 232 "fake_audio_renderer_sink.h", |
232 "fake_text_track_stream.cc", | 233 "fake_text_track_stream.cc", |
233 "fake_text_track_stream.h", | 234 "fake_text_track_stream.h", |
234 "gmock_callback_support.h", | 235 "gmock_callback_support.h", |
235 "mock_audio_renderer_sink.cc", | 236 "mock_audio_renderer_sink.cc", |
236 "mock_audio_renderer_sink.h", | 237 "mock_audio_renderer_sink.h", |
237 "mock_demuxer_host.cc", | 238 "mock_demuxer_host.cc", |
238 "mock_demuxer_host.h", | 239 "mock_demuxer_host.h", |
239 "mock_filters.cc", | 240 "mock_filters.cc", |
240 "mock_filters.h", | 241 "mock_filters.h", |
241 "test_data_util.cc", | 242 "test_data_util.cc", |
242 "test_data_util.h", | 243 "test_data_util.h", |
243 "test_helpers.cc", | 244 "test_helpers.cc", |
244 "test_helpers.h", | 245 "test_helpers.h", |
245 ] | 246 ] |
246 configs += [ "//media:media_config" ] | 247 configs += [ "//media:media_config" ] |
247 deps = [ "//testing/gmock" ] | 248 deps = [ "//testing/gmock" ] |
248 } | 249 } |
249 | 250 |
250 source_set("unittests") { | 251 source_set("unittests") { |
| 252 testonly = true |
251 sources = [ | 253 sources = [ |
252 "audio_block_fifo_unittest.cc", | 254 "audio_block_fifo_unittest.cc", |
253 "audio_buffer_converter_unittest.cc", | 255 "audio_buffer_converter_unittest.cc", |
254 "audio_buffer_unittest.cc", | 256 "audio_buffer_unittest.cc", |
255 "audio_buffer_queue_unittest.cc", | 257 "audio_buffer_queue_unittest.cc", |
256 "audio_bus_unittest.cc", | 258 "audio_bus_unittest.cc", |
257 "audio_converter_unittest.cc", | 259 "audio_converter_unittest.cc", |
258 "audio_discard_helper_unittest.cc", | 260 "audio_discard_helper_unittest.cc", |
259 "audio_fifo_unittest.cc", | 261 "audio_fifo_unittest.cc", |
260 "audio_hardware_config_unittest.cc", | 262 "audio_hardware_config_unittest.cc", |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
317 } else { | 319 } else { |
318 deps += [ "//ui/gl" ] | 320 deps += [ "//ui/gl" ] |
319 } | 321 } |
320 | 322 |
321 if (cpu_arch == "x86" || cpu_arch == "x64") { | 323 if (cpu_arch == "x86" || cpu_arch == "x64") { |
322 sources += [ "simd/convert_rgb_to_yuv_unittest.cc" ] | 324 sources += [ "simd/convert_rgb_to_yuv_unittest.cc" ] |
323 } | 325 } |
324 } | 326 } |
325 | 327 |
326 source_set("perftests") { | 328 source_set("perftests") { |
| 329 testonly = true |
327 sources = [ | 330 sources = [ |
328 "audio_bus_perftest.cc", | 331 "audio_bus_perftest.cc", |
329 "audio_converter_perftest.cc", | 332 "audio_converter_perftest.cc", |
330 "run_all_perftests.cc", | 333 "run_all_perftests.cc", |
331 "sinc_resampler_perftest.cc", | 334 "sinc_resampler_perftest.cc", |
332 "vector_math_perftest.cc", | 335 "vector_math_perftest.cc", |
333 "yuv_convert_perftest.cc", | 336 "yuv_convert_perftest.cc", |
334 ] | 337 ] |
335 configs += [ "//media:media_config" ] | 338 configs += [ "//media:media_config" ] |
336 deps = [ | 339 deps = [ |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
415 if (is_posix) { | 418 if (is_posix) { |
416 yasm_flags += [ "-DELF" ] | 419 yasm_flags += [ "-DELF" ] |
417 if (cpu_arch == "x64") { | 420 if (cpu_arch == "x64") { |
418 # TODO(ajwong): Why isn't this true in mac? | 421 # TODO(ajwong): Why isn't this true in mac? |
419 yasm_flags += [ "-DPIC" ] | 422 yasm_flags += [ "-DPIC" ] |
420 } | 423 } |
421 } | 424 } |
422 } | 425 } |
423 } | 426 } |
424 } | 427 } |
OLD | NEW |