blob: 05571b5243d13b4ad7763d73676a9417cad153d2 [file] [log] [blame]
# Copyright 2019 The Cobalt Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
{
'targets': [
{
'target_name': 'video_dmp',
'type': 'static_library',
'sources': [
'<(DEPTH)/starboard/shared/starboard/player/file_cache_reader.cc',
'<(DEPTH)/starboard/shared/starboard/player/file_cache_reader.h',
'<(DEPTH)/starboard/shared/starboard/player/video_dmp_common.cc',
'<(DEPTH)/starboard/shared/starboard/player/video_dmp_common.h',
'<(DEPTH)/starboard/shared/starboard/player/video_dmp_reader.cc',
'<(DEPTH)/starboard/shared/starboard/player/video_dmp_reader.h',
],
'dependencies': [
'<(DEPTH)/starboard/starboard.gyp:starboard',
],
'defines': [
# This allows the tests to include internal only header files.
'STARBOARD_IMPLEMENTATION',
],
},
{
'target_name': 'player_copy_test_data',
'type': 'none',
'variables': {
'content_test_input_files': ['<!@(python <(DEPTH)/starboard/build/list_dmp_files.py "starboard/shared/starboard/player/testdata")'],
'content_test_output_subdir': 'starboard/shared/starboard/player/testdata',
'depot_tools_path': ['<!@(python <(DEPTH)/build/find_depot_tools_escaped.py)'],
},
'actions' : [
{
# This action requires depot_tools to be in path
# (https://cobalt.googlesource.com/depot_tools).
'action_name': 'player_download_test_data',
'action': [ 'python',
'<(depot_tools_path)/download_from_google_storage.py',
'--no_resume',
'--no_auth',
'--num_threads', '8',
'--bucket', 'cobalt-static-storage',
'-d', '<(DEPTH)/starboard/shared/starboard/player/testdata',
],
'inputs': [],
'outputs': ['<!@(python <(DEPTH)/starboard/build/list_dmp_files.py "starboard/shared/starboard/player/testdata")'],
},
],
'includes': ['<(DEPTH)/starboard/build/copy_test_data.gypi'],
},
],
}