| 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 24 matching lines...) Expand all Loading... |
| 35 config("media_dependent_config") { | 35 config("media_dependent_config") { |
| 36 if (is_win) { | 36 if (is_win) { |
| 37 ldflags = [ | 37 ldflags = [ |
| 38 "/DELAYLOAD:mf.dll", | 38 "/DELAYLOAD:mf.dll", |
| 39 "/DELAYLOAD:mfplat.dll", | 39 "/DELAYLOAD:mfplat.dll", |
| 40 "/DELAYLOAD:mfreadwrite.dll", | 40 "/DELAYLOAD:mfreadwrite.dll", |
| 41 ] | 41 ] |
| 42 } | 42 } |
| 43 } | 43 } |
| 44 | 44 |
| 45 if (use_ozone) { |
| 46 action("generate_ozone_constructor_list") { |
| 47 # Ozone platform objects are auto-generated using similar |
| 48 # patterns for naming and classes constructors. Here we build the |
| 49 # object MediaOzonePlatform. |
| 50 script = "../ui/ozone/generate_constructor_list.py" |
| 51 |
| 52 platform_list_txt_file = "$target_gen_dir/ui/ozone/platform_list.txt" |
| 53 constructor_list_cc_file = "$target_gen_dir/media/ozone/constructor_list.cc" |
| 54 |
| 55 sources = [ platform_list_txt_file ] |
| 56 outputs = [ constructor_list_cc_file ] |
| 57 args = [ |
| 58 "--platform_list=$platform_list_txt_file", |
| 59 "--output_cc=$constructor_list_cc_file", |
| 60 "--namespace=media", |
| 61 "--typename=MediaOzonePlatform", |
| 62 "--include=\"media/ozone/media_ozone_platform.h\"" |
| 63 ] |
| 64 } |
| 65 } |
| 66 |
| 45 component("media") { | 67 component("media") { |
| 46 sources = [ | 68 sources = [ |
| 47 "base/audio_block_fifo.cc", | 69 "base/audio_block_fifo.cc", |
| 48 "base/audio_block_fifo.h", | 70 "base/audio_block_fifo.h", |
| 49 "base/audio_buffer.cc", | 71 "base/audio_buffer.cc", |
| 50 "base/audio_buffer.h", | 72 "base/audio_buffer.h", |
| 51 "base/audio_buffer_queue.cc", | 73 "base/audio_buffer_queue.cc", |
| 52 "base/audio_buffer_queue.h", | 74 "base/audio_buffer_queue.h", |
| 53 "base/audio_capturer_source.h", | 75 "base/audio_capturer_source.h", |
| 54 "base/audio_buffer_converter.cc", | 76 "base/audio_buffer_converter.cc", |
| (...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 499 ] | 521 ] |
| 500 sources += [ | 522 sources += [ |
| 501 "base/user_input_monitor_linux.cc" | 523 "base/user_input_monitor_linux.cc" |
| 502 ] | 524 ] |
| 503 } else { | 525 } else { |
| 504 defines += [ "DISABLE_USER_INPUT_MONITOR" ] | 526 defines += [ "DISABLE_USER_INPUT_MONITOR" ] |
| 505 } | 527 } |
| 506 } | 528 } |
| 507 | 529 |
| 508 if (use_ozone) { | 530 if (use_ozone) { |
| 509 platform_list_txt_file = "$target_gen_dir/ui/ozone/platform_list.txt" | |
| 510 constructor_list_cc_file = "$target_gen_dir/media/ozone/constructor_list.cc" | |
| 511 | |
| 512 # Used for the generated listing header (ui/ozone/platform_list.h) | 531 # Used for the generated listing header (ui/ozone/platform_list.h) |
| 513 include_dirs += [ target_gen_dir ] | 532 include_dirs += [ target_gen_dir ] |
| 514 | 533 |
| 515 sources += [ | 534 sources += [ |
| 516 constructor_list_cc_file, | |
| 517 "ozone/media_ozone_platform.cc", | 535 "ozone/media_ozone_platform.cc", |
| 518 "ozone/media_ozone_platform.h", | 536 "ozone/media_ozone_platform.h", |
| 537 ] + get_target_outputs(":generate_ozone_constructor_list") |
| 538 |
| 539 deps += [ |
| 540 ":generate_ozone_constructor_list", |
| 541 "//ui/ozone", |
| 519 ] | 542 ] |
| 520 | |
| 521 deps += [ "//ui/ozone/ozone" ] | |
| 522 | |
| 523 action("generate_constructor_list") { | |
| 524 # Ozone platform objects are auto-generated using similar | |
| 525 # patterns for naming and classes constructors. Here we build the | |
| 526 # object MediaOzonePlatform. | |
| 527 script = "../ui/ozone/generate_constructor_list.py" | |
| 528 sources = [ platform_list_txt_file ] | |
| 529 outputs = [ constructor_list_cc_file ] | |
| 530 args += [ | |
| 531 "--platform_list=$platform_list_txt_file", | |
| 532 "--output_cc=$constructor_list_cc_file", | |
| 533 "--namespace=media", | |
| 534 "--typename=MediaOzonePlatform", | |
| 535 "--include=\"media/ozone/media_ozone_platform.h\"" | |
| 536 ] | |
| 537 } | |
| 538 } | 543 } |
| 539 | 544 |
| 540 if (is_mac) { | 545 if (is_mac) { |
| 541 libs += [ | 546 libs += [ |
| 542 "CoreMIDI.framework", | 547 "CoreMIDI.framework", |
| 543 "CoreVideo.framework", | 548 "CoreVideo.framework", |
| 544 "OpenGL.framework", | 549 "OpenGL.framework", |
| 545 "QTKit.framework", | 550 "QTKit.framework", |
| 546 ] | 551 ] |
| 547 } | 552 } |
| (...skipping 626 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1174 "base/android/java/src/org/chromium/media/ImageFormat.template", | 1179 "base/android/java/src/org/chromium/media/ImageFormat.template", |
| 1175 ] | 1180 ] |
| 1176 inputs = [ | 1181 inputs = [ |
| 1177 "video/capture/android/imageformat_list.h" | 1182 "video/capture/android/imageformat_list.h" |
| 1178 ] | 1183 ] |
| 1179 package_name = "org/chromium/media" | 1184 package_name = "org/chromium/media" |
| 1180 } | 1185 } |
| 1181 | 1186 |
| 1182 # TODO(dalecurtis): Finish media_unittests_apk and media_perftests_apk. | 1187 # TODO(dalecurtis): Finish media_unittests_apk and media_perftests_apk. |
| 1183 } | 1188 } |
| OLD | NEW |