# Copyright 2015 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 or at # https://developers.google.com/open-source/licenses/bsd { 'variables': { 'shaka_code': 1, }, 'targets': [ { 'target_name': 'webvtt', 'type': '<(component)', 'sources': [ 'cue.cc', 'cue.h', 'text_readers.cc', 'text_readers.h', 'webvtt_media_parser.cc', 'webvtt_media_parser.h', 'webvtt_output_handler.cc', 'webvtt_output_handler.h', 'webvtt_parser.cc', 'webvtt_parser.h', 'webvtt_sample_converter.cc', 'webvtt_sample_converter.h', 'webvtt_segmenter.cc', 'webvtt_segmenter.h', 'webvtt_timestamp.cc', 'webvtt_timestamp.h', 'webvtt_to_mp4_handler.cc', 'webvtt_to_mp4_handler.h', ], 'dependencies': [ '../../../base/base.gyp:base', '../../base/media_base.gyp:media_base', '../../formats/mp4/mp4.gyp:mp4', '../../origin/origin.gyp:origin', ], }, { 'target_name': 'webvtt_unittest', 'type': '<(gtest_target_type)', 'sources': [ 'text_readers_unittest.cc', 'webvtt_media_parser_unittest.cc', 'webvtt_output_handler_unittest.cc', 'webvtt_parser_unittest.cc', 'webvtt_sample_converter_unittest.cc', 'webvtt_segmenter_unittest.cc', 'webvtt_timestamp_unittest.cc', 'webvtt_timestamp_unittest.cc', 'webvtt_to_mp4_handler_unittest.cc', ], 'dependencies': [ '../../../testing/gmock.gyp:gmock', '../../../testing/gtest.gyp:gtest', '../../base/media_base.gyp:media_handler_test_base', '../../test/media_test.gyp:media_test_support', 'webvtt', ] }, ], }