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

Unified Diff: media/formats/BUILD.gn

Issue 2872853003: Create BUILD.gn files for //media/formats. (Closed)
Patch Set: updated skia dependency. Created 3 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 side-by-side diff with in-line comments
Download patch
« media/BUILD.gn ('K') | « media/BUILD.gn ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/formats/BUILD.gn
diff --git a/media/formats/BUILD.gn b/media/formats/BUILD.gn
new file mode 100644
index 0000000000000000000000000000000000000000..01ce6bf8b707d8ceac5eb944b5833098dbb337a2
--- /dev/null
+++ b/media/formats/BUILD.gn
@@ -0,0 +1,128 @@
+# Copyright 2014 The Chromium Authors. All rights reserved.
jrummell 2017/05/11 17:36:15 Since this is a new file it should be 2017.
a.suchit2 2017/05/12 05:54:43 Done.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+import("//media/media_options.gni")
+
+source_set("formats") {
jrummell 2017/05/11 17:36:15 Can you add "visibility = [ "//media/*" ]" so that
jrummell 2017/05/11 17:36:15 Based on the compile errors, you'll need something
a.suchit2 2017/05/12 05:54:43 Done.
a.suchit2 2017/05/18 00:36:15 Done.
+ sources = [
+ "common/offset_byte_queue.cc",
+ "common/offset_byte_queue.h",
+ "webm/webm_audio_client.cc",
+ "webm/webm_audio_client.h",
+ "webm/webm_cluster_parser.cc",
+ "webm/webm_cluster_parser.h",
+ "webm/webm_colour_parser.cc",
+ "webm/webm_colour_parser.h",
+ "webm/webm_constants.cc",
+ "webm/webm_constants.h",
+ "webm/webm_content_encodings.cc",
+ "webm/webm_content_encodings.h",
+ "webm/webm_content_encodings_client.cc",
+ "webm/webm_content_encodings_client.h",
+ "webm/webm_crypto_helpers.cc",
+ "webm/webm_crypto_helpers.h",
+ "webm/webm_info_parser.cc",
+ "webm/webm_info_parser.h",
+ "webm/webm_parser.cc",
+ "webm/webm_parser.h",
+ "webm/webm_stream_parser.cc",
+ "webm/webm_stream_parser.h",
+ "webm/webm_tracks_parser.cc",
+ "webm/webm_tracks_parser.h",
+ "webm/webm_video_client.cc",
+ "webm/webm_video_client.h",
+ "webm/webm_webvtt_parser.cc",
+ "webm/webm_webvtt_parser.h",
+ ]
+
+ deps = [
+ "//skia",
jrummell 2017/05/11 17:36:15 There should also be a dependency on //base, //med
a.suchit2 2017/05/18 00:36:15 Done.
+ ]
+
+ if (proprietary_codecs && enable_hevc_demuxing) {
+ sources += [
+ "mp4/hevc.cc",
+ "mp4/hevc.h",
+ ]
+ }
+ if (proprietary_codecs && enable_dolby_vision_demuxing) {
+ sources += [
+ "mp4/dolby_vision.cc",
+ "mp4/dolby_vision.h",
+ ]
+ }
+
+ if (proprietary_codecs) {
+ sources += [
+ "mp4/aac.cc",
+ "mp4/aac.h",
+ "mp4/avc.cc",
+ "mp4/avc.h",
+ "mp4/bitstream_converter.cc",
+ "mp4/bitstream_converter.h",
+ "mp4/box_definitions.cc",
+ "mp4/box_definitions.h",
+ "mp4/box_reader.cc",
+ "mp4/box_reader.h",
+ "mp4/es_descriptor.cc",
+ "mp4/es_descriptor.h",
+ "mp4/mp4_stream_parser.cc",
+ "mp4/mp4_stream_parser.h",
+ "mp4/sample_to_group_iterator.cc",
+ "mp4/sample_to_group_iterator.h",
+ "mp4/track_run_iterator.cc",
+ "mp4/track_run_iterator.h",
+ "mpeg/adts_constants.cc",
+ "mpeg/adts_constants.h",
+ "mpeg/adts_stream_parser.cc",
+ "mpeg/adts_stream_parser.h",
+ "mpeg/mpeg1_audio_stream_parser.cc",
+ "mpeg/mpeg1_audio_stream_parser.h",
+ "mpeg/mpeg_audio_stream_parser_base.cc",
+ "mpeg/mpeg_audio_stream_parser_base.h",
+ ]
+ if (enable_mse_mpeg2ts_stream_parser) {
jrummell 2017/05/11 17:36:15 Can this be it's own block (if (proprietary_codecs
a.suchit2 2017/05/12 05:54:43 Done.
+ sources += [
+ "mp2t/descriptors.cc",
+ "mp2t/descriptors.h",
+ "mp2t/es_adapter_video.cc",
+ "mp2t/es_adapter_video.h",
+ "mp2t/es_parser.cc",
+ "mp2t/es_parser.h",
+ "mp2t/es_parser_adts.cc",
+ "mp2t/es_parser_adts.h",
+ "mp2t/es_parser_h264.cc",
+ "mp2t/es_parser_h264.h",
+ "mp2t/es_parser_mpeg1audio.cc",
+ "mp2t/es_parser_mpeg1audio.h",
+ "mp2t/mp2t_common.h",
+ "mp2t/mp2t_stream_parser.cc",
+ "mp2t/mp2t_stream_parser.h",
+ "mp2t/timestamp_unroller.cc",
+ "mp2t/timestamp_unroller.h",
+ "mp2t/ts_packet.cc",
+ "mp2t/ts_packet.h",
+ "mp2t/ts_section.h",
+ "mp2t/ts_section_pat.cc",
+ "mp2t/ts_section_pat.h",
+ "mp2t/ts_section_pes.cc",
+ "mp2t/ts_section_pes.h",
+ "mp2t/ts_section_pmt.cc",
+ "mp2t/ts_section_pmt.h",
+ "mp2t/ts_section_psi.cc",
+ "mp2t/ts_section_psi.h",
+ ]
+ if (enable_hls_sample_aes) {
+ sources += [
+ "mp2t/ts_section_cat.cc",
+ "mp2t/ts_section_cat.h",
+ "mp2t/ts_section_cets_ecm.cc",
+ "mp2t/ts_section_cets_ecm.h",
+ "mp2t/ts_section_cets_pssh.cc",
+ "mp2t/ts_section_cets_pssh.h",
+ ]
+ }
+ }
+ }
+}
« media/BUILD.gn ('K') | « media/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698