Chromium Code Reviews| 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 | 9 |
| 10 # These variables need to be args. | 10 # These variables need to be args. |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 66 } | 66 } |
| 67 } | 67 } |
| 68 if (use_cras) { | 68 if (use_cras) { |
| 69 defines = [ "USE_CRAS" ] | 69 defines = [ "USE_CRAS" ] |
| 70 } | 70 } |
| 71 if (enable_mpeg2ts_stream_parser) { | 71 if (enable_mpeg2ts_stream_parser) { |
| 72 defines += [ "ENABLE_MPEG2TS_STREAM_PARSER" ] | 72 defines += [ "ENABLE_MPEG2TS_STREAM_PARSER" ] |
| 73 } | 73 } |
| 74 } | 74 } |
| 75 | 75 |
| 76 if (is_win) { | 76 config("media_dependent_config") { |
| 77 config("media_dependent_config") { | 77 if (is_win) { |
|
brettw
2014/07/18 17:23:00
For this, I prefer to unconditionally add configs
DaleCurtis
2014/07/18 18:24:06
Acknowledged.
| |
| 78 ldflags += [ | 78 ldflags = [ |
| 79 "/DELAYLOAD:mf.dll", | 79 "/DELAYLOAD:mf.dll", |
| 80 "/DELAYLOAD:mfplat.dll", | 80 "/DELAYLOAD:mfplat.dll", |
| 81 "/DELAYLOAD:mfreadwrite.dll", | 81 "/DELAYLOAD:mfreadwrite.dll", |
| 82 ] | 82 ] |
| 83 } | 83 } |
| 84 } | 84 } |
| 85 | 85 |
| 86 if (!linux_link_pulseaudio) { | 86 if (!linux_link_pulseaudio) { |
| 87 # When libpulse is not directly linked, use stubs to allow for dlopening of | 87 # When libpulse is not directly linked, use stubs to allow for dlopening of |
| 88 # the binary. | 88 # the binary. |
| (...skipping 417 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 506 "formats/webm/webm_stream_parser.h", | 506 "formats/webm/webm_stream_parser.h", |
| 507 "formats/webm/webm_tracks_parser.cc", | 507 "formats/webm/webm_tracks_parser.cc", |
| 508 "formats/webm/webm_tracks_parser.h", | 508 "formats/webm/webm_tracks_parser.h", |
| 509 "formats/webm/webm_video_client.cc", | 509 "formats/webm/webm_video_client.cc", |
| 510 "formats/webm/webm_video_client.h", | 510 "formats/webm/webm_video_client.h", |
| 511 "formats/webm/webm_webvtt_parser.cc", | 511 "formats/webm/webm_webvtt_parser.cc", |
| 512 "formats/webm/webm_webvtt_parser.h", | 512 "formats/webm/webm_webvtt_parser.h", |
| 513 ] | 513 ] |
| 514 | 514 |
| 515 configs += [ ":media_config", ] | 515 configs += [ ":media_config", ] |
| 516 all_dependent_configs = [ ":media_dependent_config" ] | |
| 516 | 517 |
| 518 cflags = [] | |
| 517 libs = [] | 519 libs = [] |
| 518 defines = [] | 520 defines = [] |
| 519 deps = [] | 521 deps = [] |
| 520 | 522 |
| 521 include_dirs = [ "." ] | 523 include_dirs = [ "." ] |
| 522 if (media_use_ffmpeg) { | 524 if (media_use_ffmpeg) { |
| 523 deps += [ "//third_party/ffmpeg" ] | 525 deps += [ "//third_party/ffmpeg" ] |
| 524 sources += [ | 526 sources += [ |
| 525 "base/audio_video_metadata_extractor.cc", | 527 "base/audio_video_metadata_extractor.cc", |
| 526 "base/audio_video_metadata_extractor.h", | 528 "base/audio_video_metadata_extractor.h", |
| (...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 776 libs += [ | 778 libs += [ |
| 777 "mf.lib", | 779 "mf.lib", |
| 778 "mfplat.lib", | 780 "mfplat.lib", |
| 779 "mfreadwrite.lib", | 781 "mfreadwrite.lib", |
| 780 "mfuuid.lib", | 782 "mfuuid.lib", |
| 781 ] | 783 ] |
| 782 cflags += [ | 784 cflags += [ |
| 783 "/wd4267" # TODO(wolenetz): Fix size_t to int trunctaion in win64. See | 785 "/wd4267" # TODO(wolenetz): Fix size_t to int trunctaion in win64. See |
| 784 # http://crbug.com/171009 | 786 # http://crbug.com/171009 |
| 785 ] | 787 ] |
| 786 configs += [ ":media_dependent_config" ] | |
| 787 all_dependent_configs = [ ":media_dependent_config" ] | |
| 788 } | 788 } |
| 789 | 789 |
| 790 if (proprietary_codecs) { | 790 if (proprietary_codecs) { |
| 791 sources += [ | 791 sources += [ |
| 792 "formats/mp2t/es_adapter_video.cc", | 792 "formats/mp2t/es_adapter_video.cc", |
| 793 "formats/mp2t/es_adapter_video.h", | 793 "formats/mp2t/es_adapter_video.h", |
| 794 "formats/mp2t/es_parser.h", | 794 "formats/mp2t/es_parser.h", |
| 795 "formats/mp2t/es_parser_adts.cc", | 795 "formats/mp2t/es_parser_adts.cc", |
| 796 "formats/mp2t/es_parser_adts.h", | 796 "formats/mp2t/es_parser_adts.h", |
| 797 "formats/mp2t/es_parser_h264.cc", | 797 "formats/mp2t/es_parser_h264.cc", |
| (...skipping 641 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1439 "base/android/java/src/org/chromium/media/ImageFormat.template", | 1439 "base/android/java/src/org/chromium/media/ImageFormat.template", |
| 1440 ] | 1440 ] |
| 1441 inputs = [ | 1441 inputs = [ |
| 1442 "video/capture/android/imageformat_list.h" | 1442 "video/capture/android/imageformat_list.h" |
| 1443 ] | 1443 ] |
| 1444 package_name = "org/chromium/media" | 1444 package_name = "org/chromium/media" |
| 1445 } | 1445 } |
| 1446 | 1446 |
| 1447 # TODO(dalecurtis): Finish media_unittests_apk and media_perftests_apk. | 1447 # TODO(dalecurtis): Finish media_unittests_apk and media_perftests_apk. |
| 1448 } | 1448 } |
| OLD | NEW |