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

Side by Side Diff: media/BUILD.gn

Issue 1065743003: Reland: Web MIDI: split build rules for media/midi (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed patch set Created 5 years, 7 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 | « content/test/BUILD.gn ('k') | media/OWNERS » ('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/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/features.gni") 7 import("//build/config/features.gni")
8 import("//build/config/linux/pkg_config.gni") 8 import("//build/config/linux/pkg_config.gni")
9 import("//build/config/ui.gni") 9 import("//build/config/ui.gni")
10 import("//media/media_options.gni") 10 import("//media/media_options.gni")
(...skipping 14 matching lines...) Expand all
25 } 25 }
26 if (use_pulseaudio) { 26 if (use_pulseaudio) {
27 defines += [ "USE_PULSEAUDIO" ] 27 defines += [ "USE_PULSEAUDIO" ]
28 if (!link_pulseaudio) { 28 if (!link_pulseaudio) {
29 defines += [ "DLOPEN_PULSEAUDIO" ] 29 defines += [ "DLOPEN_PULSEAUDIO" ]
30 } 30 }
31 } 31 }
32 if (use_cras) { 32 if (use_cras) {
33 defines += [ "USE_CRAS" ] 33 defines += [ "USE_CRAS" ]
34 } 34 }
35 if (use_alsa) {
36 defines += [ "USE_ALSA" ]
37 }
38 } 35 }
39 36
40 config("media_implementation") { 37 config("media_implementation") {
41 defines = [ "MEDIA_IMPLEMENTATION" ] 38 defines = [ "MEDIA_IMPLEMENTATION" ]
42 } 39 }
43 40
44 config("media_dependent_config") { 41 config("media_dependent_config") {
45 defines = [] 42 defines = []
46 if (!media_use_libvpx) { 43 if (!media_use_libvpx) {
47 defines += [ "MEDIA_DISABLE_LIBVPX" ] 44 defines += [ "MEDIA_DISABLE_LIBVPX" ]
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 "formats/webm/webm_parser.cc", 168 "formats/webm/webm_parser.cc",
172 "formats/webm/webm_parser.h", 169 "formats/webm/webm_parser.h",
173 "formats/webm/webm_stream_parser.cc", 170 "formats/webm/webm_stream_parser.cc",
174 "formats/webm/webm_stream_parser.h", 171 "formats/webm/webm_stream_parser.h",
175 "formats/webm/webm_tracks_parser.cc", 172 "formats/webm/webm_tracks_parser.cc",
176 "formats/webm/webm_tracks_parser.h", 173 "formats/webm/webm_tracks_parser.h",
177 "formats/webm/webm_video_client.cc", 174 "formats/webm/webm_video_client.cc",
178 "formats/webm/webm_video_client.h", 175 "formats/webm/webm_video_client.h",
179 "formats/webm/webm_webvtt_parser.cc", 176 "formats/webm/webm_webvtt_parser.cc",
180 "formats/webm/webm_webvtt_parser.h", 177 "formats/webm/webm_webvtt_parser.h",
181 "midi/midi_manager.cc",
182 "midi/midi_manager.h",
183 "midi/midi_manager_mac.cc",
184 "midi/midi_manager_mac.h",
185 "midi/midi_manager_usb.cc",
186 "midi/midi_manager_usb.h",
187 "midi/midi_manager_win.cc",
188 "midi/midi_manager_win.h",
189 "midi/midi_message_queue.cc",
190 "midi/midi_message_queue.h",
191 "midi/midi_message_util.cc",
192 "midi/midi_message_util.h",
193 "midi/midi_port_info.cc",
194 "midi/midi_port_info.h",
195 "midi/midi_scheduler.cc",
196 "midi/midi_scheduler.h",
197 "midi/usb_midi_descriptor_parser.cc",
198 "midi/usb_midi_descriptor_parser.h",
199 "midi/usb_midi_device.h",
200 "midi/usb_midi_input_stream.cc",
201 "midi/usb_midi_input_stream.h",
202 "midi/usb_midi_jack.h",
203 "midi/usb_midi_output_stream.cc",
204 "midi/usb_midi_output_stream.h",
205 "renderers/audio_renderer_impl.cc", 178 "renderers/audio_renderer_impl.cc",
206 "renderers/audio_renderer_impl.h", 179 "renderers/audio_renderer_impl.h",
207 "renderers/gpu_video_accelerator_factories.h", 180 "renderers/gpu_video_accelerator_factories.h",
208 "renderers/renderer_impl.cc", 181 "renderers/renderer_impl.cc",
209 "renderers/renderer_impl.h", 182 "renderers/renderer_impl.h",
210 "renderers/video_renderer_impl.cc", 183 "renderers/video_renderer_impl.cc",
211 "renderers/video_renderer_impl.h", 184 "renderers/video_renderer_impl.h",
212 "video/capture/fake_video_capture_device.cc", 185 "video/capture/fake_video_capture_device.cc",
213 "video/capture/fake_video_capture_device.h", 186 "video/capture/fake_video_capture_device.h",
214 "video/capture/fake_video_capture_device_factory.cc", 187 "video/capture/fake_video_capture_device_factory.cc",
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
330 if (media_use_libvpx) { 303 if (media_use_libvpx) {
331 sources += [ 304 sources += [
332 "filters/vpx_video_decoder.cc", 305 "filters/vpx_video_decoder.cc",
333 "filters/vpx_video_decoder.h", 306 "filters/vpx_video_decoder.h",
334 ] 307 ]
335 deps += [ "//third_party/libvpx" ] 308 deps += [ "//third_party/libvpx" ]
336 } 309 }
337 310
338 if (is_android) { 311 if (is_android) {
339 sources += [ 312 sources += [
340 "midi/midi_manager_android.cc",
341 "midi/usb_midi_device_android.cc",
342 "midi/usb_midi_device_android.h",
343 "midi/usb_midi_device_factory_android.cc",
344 "midi/usb_midi_device_factory_android.h",
345 "video/capture/android/video_capture_device_android.cc", 313 "video/capture/android/video_capture_device_android.cc",
346 "video/capture/android/video_capture_device_android.h", 314 "video/capture/android/video_capture_device_android.h",
347 "video/capture/android/video_capture_device_factory_android.cc", 315 "video/capture/android/video_capture_device_factory_android.cc",
348 "video/capture/android/video_capture_device_factory_android.h", 316 "video/capture/android/video_capture_device_factory_android.h",
349 ] 317 ]
350 deps += [ 318 deps += [
351 "//media/base/android", 319 "//media/base/android",
352 "//media/base/android:media_java", 320 "//media/base/android:media_java",
353 "//media/base/android:media_jni_headers", 321 "//media/base/android:media_jni_headers",
354 "//media/base/android:video_capture_jni_headers", 322 "//media/base/android:video_capture_jni_headers",
355 ] 323 ]
356 allow_circular_includes_from = [ "//media/base/android" ] 324 allow_circular_includes_from = [ "//media/base/android" ]
357 } else { 325 } else {
358 sources += [ 326 sources += [
359 "filters/opus_audio_decoder.cc", 327 "filters/opus_audio_decoder.cc",
360 "filters/opus_audio_decoder.h", 328 "filters/opus_audio_decoder.h",
361 "renderers/default_renderer_factory.cc", 329 "renderers/default_renderer_factory.cc",
362 "renderers/default_renderer_factory.h", 330 "renderers/default_renderer_factory.h",
363 ] 331 ]
364 } 332 }
365 333
366 if (current_cpu != "arm" && is_chromeos) { 334 if (current_cpu != "arm" && is_chromeos) {
367 sources += [ 335 sources += [
368 "filters/h264_bitstream_buffer.cc", 336 "filters/h264_bitstream_buffer.cc",
369 "filters/h264_bitstream_buffer.h", 337 "filters/h264_bitstream_buffer.h",
370 ] 338 ]
371 } 339 }
372 340
373 if (use_alsa && use_udev) {
374 libs += [ "asound" ]
375 sources += [
376 "midi/midi_manager_alsa.cc",
377 "midi/midi_manager_alsa.h",
378 ]
379 deps += [ "//device/udev_linux" ]
380 }
381
382 # A simple WebM encoder for animated avatars on ChromeOS. 341 # A simple WebM encoder for animated avatars on ChromeOS.
383 342
384 if (use_ozone) { 343 if (use_ozone) {
385 # Used for the generated listing header (ui/ozone/platform_list.h) 344 # Used for the generated listing header (ui/ozone/platform_list.h)
386 include_dirs += [ target_gen_dir ] 345 include_dirs += [ target_gen_dir ]
387 346
388 sources += [ 347 sources += [
389 "ozone/media_ozone_platform.cc", 348 "ozone/media_ozone_platform.cc",
390 "ozone/media_ozone_platform.h", 349 "ozone/media_ozone_platform.h",
391 ] + get_target_outputs(":generate_ozone_constructor_list") 350 ] + get_target_outputs(":generate_ozone_constructor_list")
392 351
393 deps += [ 352 deps += [
394 ":generate_ozone_constructor_list", 353 ":generate_ozone_constructor_list",
395 "//ui/ozone", 354 "//ui/ozone",
396 ] 355 ]
397 } 356 }
398 357
399 if (is_mac) { 358 if (is_mac) {
400 deps += [ 359 deps += [
401 "//media/base/mac", 360 "//media/base/mac",
402 "//third_party/decklink", 361 "//third_party/decklink",
403 ] 362 ]
404 libs += [ 363 libs += [
405 "CoreMIDI.framework",
406 "CoreVideo.framework", 364 "CoreVideo.framework",
407 "OpenGL.framework", 365 "OpenGL.framework",
408 "QTKit.framework", 366 "QTKit.framework",
409 ] 367 ]
410 } 368 }
411 369
412 if (is_openbsd) { 370 if (is_openbsd) {
413 sources -= [ 371 sources -= [
414 "video/capture/linux/v4l2_capture_delegate_multi_plane.cc", 372 "video/capture/linux/v4l2_capture_delegate_multi_plane.cc",
415 "video/capture/linux/v4l2_capture_delegate_multi_plane.h", 373 "video/capture/linux/v4l2_capture_delegate_multi_plane.h",
416 ] 374 ]
417 } 375 }
418 376
419 if (is_ios) { 377 if (is_ios) {
420 deps += [ "//media/base/mac" ] 378 deps += [ "//media/base/mac" ]
421 } 379 }
422 380
423 if (is_win) { 381 if (is_win) {
424 deps += [ "//device/usb" ]
425
426 libs += [ 382 libs += [
427 "mf.lib", 383 "mf.lib",
428 "mfplat.lib", 384 "mfplat.lib",
429 "mfreadwrite.lib", 385 "mfreadwrite.lib",
430 "mfuuid.lib", 386 "mfuuid.lib",
431 ] 387 ]
432 } 388 }
433 389
434 if (proprietary_codecs) { 390 if (proprietary_codecs) {
435 sources += [ 391 sources += [
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
568 "formats/webm/cluster_builder.h", 524 "formats/webm/cluster_builder.h",
569 "formats/webm/opus_packet_builder.cc", 525 "formats/webm/opus_packet_builder.cc",
570 "formats/webm/opus_packet_builder.h", 526 "formats/webm/opus_packet_builder.h",
571 "formats/webm/tracks_builder.cc", 527 "formats/webm/tracks_builder.cc",
572 "formats/webm/tracks_builder.h", 528 "formats/webm/tracks_builder.h",
573 "formats/webm/webm_cluster_parser_unittest.cc", 529 "formats/webm/webm_cluster_parser_unittest.cc",
574 "formats/webm/webm_content_encodings_client_unittest.cc", 530 "formats/webm/webm_content_encodings_client_unittest.cc",
575 "formats/webm/webm_parser_unittest.cc", 531 "formats/webm/webm_parser_unittest.cc",
576 "formats/webm/webm_tracks_parser_unittest.cc", 532 "formats/webm/webm_tracks_parser_unittest.cc",
577 "formats/webm/webm_webvtt_parser_unittest.cc", 533 "formats/webm/webm_webvtt_parser_unittest.cc",
578 "midi/midi_manager_unittest.cc",
579 "midi/midi_manager_usb_unittest.cc",
580 "midi/midi_message_queue_unittest.cc",
581 "midi/midi_message_util_unittest.cc",
582 "midi/usb_midi_descriptor_parser_unittest.cc",
583 "midi/usb_midi_input_stream_unittest.cc",
584 "midi/usb_midi_output_stream_unittest.cc",
585 "renderers/audio_renderer_impl_unittest.cc", 534 "renderers/audio_renderer_impl_unittest.cc",
586 "renderers/renderer_impl_unittest.cc", 535 "renderers/renderer_impl_unittest.cc",
587 "renderers/video_renderer_impl_unittest.cc", 536 "renderers/video_renderer_impl_unittest.cc",
588 "video/capture/fake_video_capture_device_unittest.cc", 537 "video/capture/fake_video_capture_device_unittest.cc",
589 "video/capture/video_capture_device_unittest.cc", 538 "video/capture/video_capture_device_unittest.cc",
590 "video/h264_poc_unittest.cc", 539 "video/h264_poc_unittest.cc",
591 ] 540 ]
592 541
593 # TODO(wolenetz): Fix size_t to int trunctaion in win64. 542 # TODO(wolenetz): Fix size_t to int trunctaion in win64.
594 # See http://crbug.com/171009 543 # See http://crbug.com/171009
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
662 "formats/mpeg/adts_stream_parser_unittest.cc", 611 "formats/mpeg/adts_stream_parser_unittest.cc",
663 "formats/mpeg/mpeg1_audio_stream_parser_unittest.cc", 612 "formats/mpeg/mpeg1_audio_stream_parser_unittest.cc",
664 ] 613 ]
665 } 614 }
666 615
667 if (is_mac || is_ios) { 616 if (is_mac || is_ios) {
668 deps += [ "//media/base/mac" ] 617 deps += [ "//media/base/mac" ]
669 } 618 }
670 619
671 if (is_mac) { 620 if (is_mac) {
672 sources += [ 621 sources +=
673 "midi/midi_manager_mac_unittest.cc", 622 [ "video/capture/mac/video_capture_device_factory_mac_unittest.mm" ]
674 "video/capture/mac/video_capture_device_factory_mac_unittest.mm",
675 ]
676 libs = [
677 # Required by midi_manager_mac_unittest.cc.
678 "CoreMIDI.framework",
679 ]
680 }
681
682 if (use_alsa && use_udev) {
683 sources += [ "midi/midi_manager_alsa_unittest.cc" ]
684 } 623 }
685 624
686 # include_dirs += [ 625 # include_dirs += [
687 # # Needed by media_drm_bridge.cc. 626 # # Needed by media_drm_bridge.cc.
688 # target_gen_dir, 627 # target_gen_dir,
689 # ], 628 # ],
690 629
691 configs += [ ":media_config" ] 630 configs += [ ":media_config" ]
692 631
693 if (media_use_ffmpeg) { 632 if (media_use_ffmpeg) {
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
778 "//media/base:test_support", 717 "//media/base:test_support",
779 "//media/test:pipeline_integration_tests", 718 "//media/test:pipeline_integration_tests",
780 "//testing/gmock", 719 "//testing/gmock",
781 "//testing/gtest", 720 "//testing/gtest",
782 "//third_party/ffmpeg", 721 "//third_party/ffmpeg",
783 "//ui/gfx/geometry", 722 "//ui/gfx/geometry",
784 "//ui/gfx:test_support", 723 "//ui/gfx:test_support",
785 ] 724 ]
786 } 725 }
787 } 726 }
OLDNEW
« no previous file with comments | « content/test/BUILD.gn ('k') | media/OWNERS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698