2013-10-10 00:07:10 +00:00
|
|
|
# Copyright (c) 2013 Google Inc. All rights reserved.
|
|
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
|
|
# found in the LICENSE file.
|
2013-10-11 21:44:55 +00:00
|
|
|
# TODO(kqyang): this file should be in media directory.
|
2013-10-10 00:07:10 +00:00
|
|
|
{
|
|
|
|
'target_defaults': {
|
|
|
|
'include_dirs': [
|
|
|
|
'.',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
'targets': [
|
2013-10-11 21:44:55 +00:00
|
|
|
{
|
|
|
|
'target_name': 'media_base',
|
|
|
|
'type': 'static_library',
|
|
|
|
'sources': [
|
2013-11-12 20:37:58 +00:00
|
|
|
'media/base/aes_encryptor.cc',
|
|
|
|
'media/base/aes_encryptor.h',
|
2013-10-11 21:44:55 +00:00
|
|
|
'media/base/audio_stream_info.cc',
|
|
|
|
'media/base/audio_stream_info.h',
|
|
|
|
'media/base/bit_reader.cc',
|
|
|
|
'media/base/bit_reader.h',
|
|
|
|
'media/base/buffers.h',
|
2013-11-12 20:37:58 +00:00
|
|
|
'media/base/buffer_reader.cc',
|
|
|
|
'media/base/buffer_reader.h',
|
|
|
|
'media/base/buffer_writer.cc',
|
|
|
|
'media/base/buffer_writer.h',
|
2013-10-11 21:44:55 +00:00
|
|
|
'media/base/byte_queue.cc',
|
|
|
|
'media/base/byte_queue.h',
|
|
|
|
'media/base/container_names.cc',
|
|
|
|
'media/base/container_names.h',
|
|
|
|
# TODO(kqyang): demuxer should not be here, it looks like some kinds of
|
|
|
|
# circular dependencies.
|
|
|
|
'media/base/demuxer.cc',
|
|
|
|
'media/base/demuxer.h',
|
|
|
|
'media/base/decrypt_config.cc',
|
|
|
|
'media/base/decrypt_config.h',
|
|
|
|
'media/base/decryptor_source.h',
|
2013-11-12 20:37:58 +00:00
|
|
|
'media/base/encryptor_source.cc',
|
2013-10-11 21:44:55 +00:00
|
|
|
'media/base/encryptor_source.h',
|
2013-11-12 20:37:58 +00:00
|
|
|
'media/base/fixed_encryptor_source.cc',
|
|
|
|
'media/base/fixed_encryptor_source.h',
|
2013-10-11 21:44:55 +00:00
|
|
|
'media/base/limits.h',
|
|
|
|
'media/base/media_parser.h',
|
|
|
|
'media/base/media_sample.cc',
|
|
|
|
'media/base/media_sample.h',
|
|
|
|
'media/base/media_stream.cc',
|
|
|
|
'media/base/media_stream.h',
|
|
|
|
'media/base/muxer.cc',
|
|
|
|
'media/base/muxer.h',
|
|
|
|
'media/base/status.cc',
|
|
|
|
'media/base/status.h',
|
|
|
|
'media/base/stream_info.cc',
|
|
|
|
'media/base/stream_info.h',
|
|
|
|
'media/base/text_track.h',
|
|
|
|
'media/base/video_stream_info.cc',
|
|
|
|
'media/base/video_stream_info.h',
|
|
|
|
],
|
|
|
|
'dependencies': [
|
|
|
|
'base/base.gyp:base',
|
2013-11-12 20:37:58 +00:00
|
|
|
'third_party/openssl/openssl.gyp:openssl',
|
2013-10-11 21:44:55 +00:00
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
'target_name': 'media_test_support',
|
|
|
|
'type': 'static_library',
|
|
|
|
'sources': [
|
|
|
|
# TODO(kqyang): move these files to test directory.
|
|
|
|
'media/base/run_tests_with_atexit_manager.cc',
|
|
|
|
'media/base/test_data_util.cc',
|
|
|
|
'media/base/test_data_util.h',
|
|
|
|
],
|
|
|
|
'dependencies': [
|
|
|
|
'base/base.gyp:base',
|
|
|
|
'testing/gtest.gyp:gtest',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
'target_name': 'media_base_unittest',
|
|
|
|
'type': 'executable',
|
|
|
|
'sources': [
|
2013-11-12 20:37:58 +00:00
|
|
|
'media/base/aes_encryptor_unittest.cc',
|
2013-10-11 21:44:55 +00:00
|
|
|
'media/base/bit_reader_unittest.cc',
|
2013-11-12 20:37:58 +00:00
|
|
|
'media/base/buffer_writer_unittest.cc',
|
2013-10-11 21:44:55 +00:00
|
|
|
'media/base/container_names_unittest.cc',
|
|
|
|
'media/base/status_test_util.h',
|
|
|
|
'media/base/status_test_util_unittest.cc',
|
|
|
|
'media/base/status_unittest.cc',
|
|
|
|
],
|
|
|
|
'dependencies': [
|
2013-11-12 20:37:58 +00:00
|
|
|
'file',
|
2013-10-11 21:44:55 +00:00
|
|
|
'media_base',
|
|
|
|
'media_test_support',
|
|
|
|
'testing/gtest.gyp:gtest',
|
|
|
|
'testing/gmock.gyp:gmock',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
'target_name': 'mp4',
|
|
|
|
'type': 'static_library',
|
|
|
|
'sources': [
|
2014-01-10 00:21:06 +00:00
|
|
|
'media/mp4/aac_audio_specific_config.cc',
|
|
|
|
'media/mp4/aac_audio_specific_config.h',
|
2013-11-12 20:37:58 +00:00
|
|
|
'media/mp4/box.cc',
|
|
|
|
'media/mp4/box.h',
|
|
|
|
'media/mp4/box_buffer_interface.h',
|
2013-10-11 21:44:55 +00:00
|
|
|
'media/mp4/box_definitions.cc',
|
|
|
|
'media/mp4/box_definitions.h',
|
|
|
|
'media/mp4/box_reader.cc',
|
|
|
|
'media/mp4/box_reader.h',
|
2013-11-12 20:37:58 +00:00
|
|
|
'media/mp4/box_writer.h',
|
2013-10-11 21:44:55 +00:00
|
|
|
'media/mp4/cenc.cc',
|
|
|
|
'media/mp4/cenc.h',
|
|
|
|
'media/mp4/chunk_info_iterator.cc',
|
|
|
|
'media/mp4/chunk_info_iterator.h',
|
|
|
|
'media/mp4/composition_offset_iterator.cc',
|
|
|
|
'media/mp4/composition_offset_iterator.h',
|
|
|
|
'media/mp4/decoding_time_iterator.cc',
|
|
|
|
'media/mp4/decoding_time_iterator.h',
|
|
|
|
'media/mp4/es_descriptor.cc',
|
|
|
|
'media/mp4/es_descriptor.h',
|
|
|
|
'media/mp4/fourccs.h',
|
2013-11-12 20:37:58 +00:00
|
|
|
'media/mp4/mp4_fragmenter.cc',
|
|
|
|
'media/mp4/mp4_fragmenter.h',
|
|
|
|
'media/mp4/mp4_general_segmenter.cc',
|
|
|
|
'media/mp4/mp4_general_segmenter.h',
|
2013-10-11 21:44:55 +00:00
|
|
|
'media/mp4/mp4_media_parser.cc',
|
|
|
|
'media/mp4/mp4_media_parser.h',
|
2013-11-12 20:37:58 +00:00
|
|
|
'media/mp4/mp4_muxer.cc',
|
|
|
|
'media/mp4/mp4_muxer.h',
|
|
|
|
'media/mp4/mp4_segmenter.cc',
|
|
|
|
'media/mp4/mp4_segmenter.h',
|
|
|
|
'media/mp4/mp4_vod_segmenter.cc',
|
|
|
|
'media/mp4/mp4_vod_segmenter.h',
|
2013-10-11 21:44:55 +00:00
|
|
|
'media/mp4/offset_byte_queue.cc',
|
|
|
|
'media/mp4/offset_byte_queue.h',
|
|
|
|
'media/mp4/rcheck.h',
|
|
|
|
'media/mp4/sync_sample_iterator.cc',
|
|
|
|
'media/mp4/sync_sample_iterator.h',
|
|
|
|
'media/mp4/track_run_iterator.cc',
|
|
|
|
'media/mp4/track_run_iterator.h',
|
|
|
|
],
|
|
|
|
'dependencies': [
|
|
|
|
'media_base',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
'target_name': 'mp4_unittest',
|
|
|
|
'type': 'executable',
|
|
|
|
'sources': [
|
2014-01-10 00:21:06 +00:00
|
|
|
'media/mp4/aac_audio_specific_config_unittest.cc',
|
2013-11-12 20:37:58 +00:00
|
|
|
'media/mp4/box_definitions_unittest.cc',
|
2013-10-11 21:44:55 +00:00
|
|
|
'media/mp4/box_reader_unittest.cc',
|
|
|
|
'media/mp4/chunk_info_iterator_unittest.cc',
|
|
|
|
'media/mp4/composition_offset_iterator_unittest.cc',
|
|
|
|
'media/mp4/decoding_time_iterator_unittest.cc',
|
|
|
|
'media/mp4/es_descriptor_unittest.cc',
|
|
|
|
'media/mp4/mp4_media_parser_unittest.cc',
|
|
|
|
'media/mp4/offset_byte_queue_unittest.cc',
|
|
|
|
'media/mp4/sync_sample_iterator_unittest.cc',
|
|
|
|
'media/mp4/track_run_iterator_unittest.cc',
|
|
|
|
],
|
|
|
|
'dependencies': [
|
|
|
|
'media_test_support',
|
|
|
|
'mp4',
|
|
|
|
'testing/gtest.gyp:gtest',
|
|
|
|
'testing/gmock.gyp:gmock',
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
'target_name': 'file',
|
|
|
|
'type': 'static_library',
|
|
|
|
'sources': [
|
|
|
|
'media/file/file.cc',
|
|
|
|
'media/file/file.h',
|
2013-11-12 20:37:58 +00:00
|
|
|
'media/file/file_closer.h',
|
2013-10-11 21:44:55 +00:00
|
|
|
'media/file/local_file.cc',
|
|
|
|
'media/file/local_file.h',
|
|
|
|
],
|
|
|
|
'dependencies': [
|
|
|
|
'base/base.gyp:base',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
'target_name': 'file_unittest',
|
|
|
|
'type': 'executable',
|
|
|
|
'sources': [
|
|
|
|
'media/file/file_unittest.cc',
|
|
|
|
],
|
|
|
|
'dependencies': [
|
|
|
|
'file',
|
|
|
|
'testing/gtest.gyp:gtest',
|
|
|
|
'testing/gtest.gyp:gtest_main',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
'target_name': 'packager_test',
|
|
|
|
'type': 'executable',
|
|
|
|
'sources': [
|
|
|
|
'media/test/packager_test.cc',
|
|
|
|
],
|
|
|
|
'dependencies': [
|
|
|
|
'file',
|
|
|
|
'media_test_support',
|
|
|
|
'mp4',
|
|
|
|
'testing/gtest.gyp:gtest',
|
|
|
|
],
|
|
|
|
},
|
2013-10-10 00:07:10 +00:00
|
|
|
],
|
|
|
|
}
|