| 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 14 matching lines...) Expand all Loading... |
| 25 } | 25 } |
| 26 } | 26 } |
| 27 if (use_cras) { | 27 if (use_cras) { |
| 28 defines = [ "USE_CRAS" ] | 28 defines = [ "USE_CRAS" ] |
| 29 } | 29 } |
| 30 if (enable_mpeg2ts_stream_parser) { | 30 if (enable_mpeg2ts_stream_parser) { |
| 31 defines += [ "ENABLE_MPEG2TS_STREAM_PARSER" ] | 31 defines += [ "ENABLE_MPEG2TS_STREAM_PARSER" ] |
| 32 } | 32 } |
| 33 } | 33 } |
| 34 | 34 |
| 35 if (is_win) { | 35 config("media_dependent_config") { |
| 36 config("media_dependent_config") { | 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 component("media") { | 45 component("media") { |
| 46 sources = [ | 46 sources = [ |
| 47 "base/audio_block_fifo.cc", | 47 "base/audio_block_fifo.cc", |
| (...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 347 "formats/webm/webm_stream_parser.h", | 347 "formats/webm/webm_stream_parser.h", |
| 348 "formats/webm/webm_tracks_parser.cc", | 348 "formats/webm/webm_tracks_parser.cc", |
| 349 "formats/webm/webm_tracks_parser.h", | 349 "formats/webm/webm_tracks_parser.h", |
| 350 "formats/webm/webm_video_client.cc", | 350 "formats/webm/webm_video_client.cc", |
| 351 "formats/webm/webm_video_client.h", | 351 "formats/webm/webm_video_client.h", |
| 352 "formats/webm/webm_webvtt_parser.cc", | 352 "formats/webm/webm_webvtt_parser.cc", |
| 353 "formats/webm/webm_webvtt_parser.h", | 353 "formats/webm/webm_webvtt_parser.h", |
| 354 ] | 354 ] |
| 355 | 355 |
| 356 configs += [ ":media_config", ] | 356 configs += [ ":media_config", ] |
| 357 all_dependent_configs = [ ":media_dependent_config" ] |
| 357 | 358 |
| 359 cflags = [] |
| 358 libs = [] | 360 libs = [] |
| 359 defines = [] | 361 defines = [] |
| 360 deps = [] | 362 deps = [] |
| 361 | 363 |
| 362 include_dirs = [ "." ] | 364 include_dirs = [ "." ] |
| 363 if (media_use_ffmpeg) { | 365 if (media_use_ffmpeg) { |
| 364 deps += [ "//third_party/ffmpeg" ] | 366 deps += [ "//third_party/ffmpeg" ] |
| 365 sources += [ | 367 sources += [ |
| 366 "base/audio_video_metadata_extractor.cc", | 368 "base/audio_video_metadata_extractor.cc", |
| 367 "base/audio_video_metadata_extractor.h", | 369 "base/audio_video_metadata_extractor.h", |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 548 libs += [ | 550 libs += [ |
| 549 "mf.lib", | 551 "mf.lib", |
| 550 "mfplat.lib", | 552 "mfplat.lib", |
| 551 "mfreadwrite.lib", | 553 "mfreadwrite.lib", |
| 552 "mfuuid.lib", | 554 "mfuuid.lib", |
| 553 ] | 555 ] |
| 554 cflags += [ | 556 cflags += [ |
| 555 "/wd4267" # TODO(wolenetz): Fix size_t to int trunctaion in win64. See | 557 "/wd4267" # TODO(wolenetz): Fix size_t to int trunctaion in win64. See |
| 556 # http://crbug.com/171009 | 558 # http://crbug.com/171009 |
| 557 ] | 559 ] |
| 558 configs += [ ":media_dependent_config" ] | |
| 559 all_dependent_configs = [ ":media_dependent_config" ] | |
| 560 } | 560 } |
| 561 | 561 |
| 562 if (proprietary_codecs) { | 562 if (proprietary_codecs) { |
| 563 sources += [ | 563 sources += [ |
| 564 "formats/mp2t/es_adapter_video.cc", | 564 "formats/mp2t/es_adapter_video.cc", |
| 565 "formats/mp2t/es_adapter_video.h", | 565 "formats/mp2t/es_adapter_video.h", |
| 566 "formats/mp2t/es_parser.h", | 566 "formats/mp2t/es_parser.h", |
| 567 "formats/mp2t/es_parser_adts.cc", | 567 "formats/mp2t/es_parser_adts.cc", |
| 568 "formats/mp2t/es_parser_adts.h", | 568 "formats/mp2t/es_parser_adts.h", |
| 569 "formats/mp2t/es_parser_h264.cc", | 569 "formats/mp2t/es_parser_h264.cc", |
| (...skipping 603 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1173 "base/android/java/src/org/chromium/media/ImageFormat.template", | 1173 "base/android/java/src/org/chromium/media/ImageFormat.template", |
| 1174 ] | 1174 ] |
| 1175 inputs = [ | 1175 inputs = [ |
| 1176 "video/capture/android/imageformat_list.h" | 1176 "video/capture/android/imageformat_list.h" |
| 1177 ] | 1177 ] |
| 1178 package_name = "org/chromium/media" | 1178 package_name = "org/chromium/media" |
| 1179 } | 1179 } |
| 1180 | 1180 |
| 1181 # TODO(dalecurtis): Finish media_unittests_apk and media_perftests_apk. | 1181 # TODO(dalecurtis): Finish media_unittests_apk and media_perftests_apk. |
| 1182 } | 1182 } |
| OLD | NEW |