- .gyp files update for 4819 warning on Windows

This commit is contained in:
sglee 2018-07-09 11:27:56 +09:00
parent a1fdc11f3e
commit 3fb2a799c4
24 changed files with 32 additions and 4 deletions

View File

@ -12,6 +12,7 @@
{ {
'target_name': 'file', 'target_name': 'file',
'type': '<(component)', 'type': '<(component)',
'msvs_disabled_warnings': [ 4267, 4819, ],
'sources': [ 'sources': [
'callback_file.cc', 'callback_file.cc',
'callback_file.h', 'callback_file.h',
@ -42,6 +43,7 @@
{ {
'target_name': 'file_unittest', 'target_name': 'file_unittest',
'type': '<(gtest_target_type)', 'type': '<(gtest_target_type)',
'msvs_disabled_warnings': [ 4267, 4819, ],
'sources': [ 'sources': [
'callback_file_unittest.cc', 'callback_file_unittest.cc',
'file_unittest.cc', 'file_unittest.cc',

View File

@ -12,6 +12,7 @@
{ {
'target_name': 'hls_builder', 'target_name': 'hls_builder',
'type': '<(component)', 'type': '<(component)',
'msvs_disabled_warnings': [ 4267, 4819, ],
'sources': [ 'sources': [
'base/hls_notifier.h', 'base/hls_notifier.h',
'base/master_playlist.cc', 'base/master_playlist.cc',

View File

@ -12,6 +12,7 @@
{ {
'target_name': 'media_base', 'target_name': 'media_base',
'type': '<(component)', 'type': '<(component)',
'msvs_disabled_warnings': [ 4267, 4819, ],
'sources': [ 'sources': [
'aes_cryptor.cc', 'aes_cryptor.cc',
'aes_cryptor.h', 'aes_cryptor.h',

View File

@ -12,6 +12,7 @@
{ {
'target_name': 'chunking', 'target_name': 'chunking',
'type': '<(component)', 'type': '<(component)',
'msvs_disabled_warnings': [ 4267, 4819, ],
'sources': [ 'sources': [
'chunking_handler.cc', 'chunking_handler.cc',
'chunking_handler.h', 'chunking_handler.h',

View File

@ -12,6 +12,7 @@
{ {
'target_name': 'codecs', 'target_name': 'codecs',
'type': '<(component)', 'type': '<(component)',
'msvs_disabled_warnings': [ 4267, 4819, ],
'sources': [ 'sources': [
'aac_audio_specific_config.cc', 'aac_audio_specific_config.cc',
'aac_audio_specific_config.h', 'aac_audio_specific_config.h',

View File

@ -12,6 +12,7 @@
{ {
'target_name': 'crypto', 'target_name': 'crypto',
'type': '<(component)', 'type': '<(component)',
'msvs_disabled_warnings': [ 4267, 4819, ],
'sources': [ 'sources': [
'encryption_handler.cc', 'encryption_handler.cc',
'encryption_handler.h', 'encryption_handler.h',

View File

@ -12,6 +12,7 @@
{ {
'target_name': 'demuxer', 'target_name': 'demuxer',
'type': '<(component)', 'type': '<(component)',
'msvs_disabled_warnings': [ 4267, 4819, ],
'sources': [ 'sources': [
'demuxer.cc', 'demuxer.cc',
'demuxer.h', 'demuxer.h',

View File

@ -12,6 +12,7 @@
{ {
'target_name': 'media_event', 'target_name': 'media_event',
'type': '<(component)', 'type': '<(component)',
'msvs_disabled_warnings': [ 4267, 4819, ],
'sources': [ 'sources': [
'combined_muxer_listener.cc', 'combined_muxer_listener.cc',
'combined_muxer_listener.h', 'combined_muxer_listener.h',

View File

@ -12,6 +12,7 @@
{ {
'target_name': 'mp2t', 'target_name': 'mp2t',
'type': '<(component)', 'type': '<(component)',
'msvs_disabled_warnings': [ 4267, 4819, ],
'sources': [ 'sources': [
'ac3_header.cc', 'ac3_header.cc',
'ac3_header.h', 'ac3_header.h',

View File

@ -12,6 +12,7 @@
{ {
'target_name': 'mp4', 'target_name': 'mp4',
'type': '<(component)', 'type': '<(component)',
'msvs_disabled_warnings': [ 4267, 4819, ],
'sources': [ 'sources': [
'box.cc', 'box.cc',
'box.h', 'box.h',

View File

@ -12,6 +12,7 @@
{ {
'target_name': 'packed_audio', 'target_name': 'packed_audio',
'type': '<(component)', 'type': '<(component)',
'msvs_disabled_warnings': [ 4267, 4819, ],
'sources': [ 'sources': [
'packed_audio_segmenter.cc', 'packed_audio_segmenter.cc',
'packed_audio_segmenter.h', 'packed_audio_segmenter.h',

View File

@ -12,6 +12,7 @@
{ {
'target_name': 'webm', 'target_name': 'webm',
'type': '<(component)', 'type': '<(component)',
'msvs_disabled_warnings': [ 4267, 4819, ],
'sources': [ 'sources': [
'encryptor.cc', 'encryptor.cc',
'encryptor.h', 'encryptor.h',

View File

@ -12,6 +12,7 @@
{ {
'target_name': 'webvtt', 'target_name': 'webvtt',
'type': '<(component)', 'type': '<(component)',
'msvs_disabled_warnings': [ 4267, 4819, ],
'sources': [ 'sources': [
'text_padder.cc', 'text_padder.cc',
'text_padder.h', 'text_padder.h',

View File

@ -12,6 +12,7 @@
{ {
'target_name': 'wvm', 'target_name': 'wvm',
'type': '<(component)', 'type': '<(component)',
'msvs_disabled_warnings': [ 4267, 4819, ],
'sources': [ 'sources': [
'wvm_media_parser.cc', 'wvm_media_parser.cc',
'wvm_media_parser.h', 'wvm_media_parser.h',

View File

@ -12,6 +12,7 @@
{ {
'target_name': 'origin', 'target_name': 'origin',
'type': '<(component)', 'type': '<(component)',
'msvs_disabled_warnings': [ 4267, 4819, ],
'sources': [ 'sources': [
'origin_handler.cc', 'origin_handler.cc',
'origin_handler.h', 'origin_handler.h',

View File

@ -12,6 +12,7 @@
{ {
'target_name': 'public', 'target_name': 'public',
'type': '<(component)', 'type': '<(component)',
'msvs_disabled_warnings': [ 4267, 4819, ],
'sources': [ 'sources': [
'ad_cue_generator_params.h', 'ad_cue_generator_params.h',
'chunking_params.h', 'chunking_params.h',

View File

@ -12,6 +12,7 @@
{ {
'target_name': 'replicator', 'target_name': 'replicator',
'type': '<(component)', 'type': '<(component)',
'msvs_disabled_warnings': [ 4267, 4819, ],
'sources': [ 'sources': [
'replicator.cc', 'replicator.cc',
'replicator.h', 'replicator.h',

View File

@ -12,6 +12,7 @@
{ {
'target_name': 'run_tests_with_atexit_manager', 'target_name': 'run_tests_with_atexit_manager',
'type': '<(component)', 'type': '<(component)',
'msvs_disabled_warnings': [ 4267, 4819, ],
'sources': [ 'sources': [
'run_tests_with_atexit_manager.cc', 'run_tests_with_atexit_manager.cc',
], ],

View File

@ -12,6 +12,7 @@
{ {
'target_name': 'trick_play', 'target_name': 'trick_play',
'type': '<(component)', 'type': '<(component)',
'msvs_disabled_warnings': [ 4267, 4819, ],
'sources': [ 'sources': [
'trick_play_handler.cc', 'trick_play_handler.cc',
'trick_play_handler.h', 'trick_play_handler.h',

View File

@ -14,6 +14,7 @@
{ {
'target_name': 'media_info_proto', 'target_name': 'media_info_proto',
'type': 'static_library', 'type': 'static_library',
'msvs_disabled_warnings': [ 4267, 4819, ],
'sources': [ 'sources': [
'base/media_info.proto', 'base/media_info.proto',
], ],
@ -28,6 +29,7 @@
# directory shared by MPD and HLS. # directory shared by MPD and HLS.
'target_name': 'manifest_base', 'target_name': 'manifest_base',
'type': 'static_library', 'type': 'static_library',
'msvs_disabled_warnings': [ 4267, 4819, ],
'sources': [ 'sources': [
'base/bandwidth_estimator.cc', 'base/bandwidth_estimator.cc',
'base/bandwidth_estimator.h', 'base/bandwidth_estimator.h',
@ -39,6 +41,7 @@
{ {
'target_name': 'mpd_builder', 'target_name': 'mpd_builder',
'type': 'static_library', 'type': 'static_library',
'msvs_disabled_warnings': [ 4267, 4819, ],
'sources': [ 'sources': [
'base/adaptation_set.cc', 'base/adaptation_set.cc',
'base/adaptation_set.h', 'base/adaptation_set.h',
@ -82,6 +85,7 @@
{ {
'target_name': 'mpd_mocks', 'target_name': 'mpd_mocks',
'type': '<(component)', 'type': '<(component)',
'msvs_disabled_warnings': [ 4267, 4819, ],
'sources': [ 'sources': [
'base/mock_mpd_builder.cc', 'base/mock_mpd_builder.cc',
'base/mock_mpd_builder.h', 'base/mock_mpd_builder.h',
@ -96,6 +100,7 @@
{ {
'target_name': 'mpd_unittest', 'target_name': 'mpd_unittest',
'type': '<(gtest_target_type)', 'type': '<(gtest_target_type)',
'msvs_disabled_warnings': [ 4267, 4819, ],
'sources': [ 'sources': [
'base/adaptation_set_unittest.cc', 'base/adaptation_set_unittest.cc',
'base/bandwidth_estimator_unittest.cc', 'base/bandwidth_estimator_unittest.cc',
@ -125,6 +130,7 @@
{ {
'target_name': 'mpd_util', 'target_name': 'mpd_util',
'type': '<(component)', 'type': '<(component)',
'msvs_disabled_warnings': [ 4267, 4819, ],
'sources': [ 'sources': [
'util/mpd_writer.cc', 'util/mpd_writer.cc',
'util/mpd_writer.h', 'util/mpd_writer.h',

View File

@ -12,6 +12,7 @@
{ {
'target_name': 'libpackager', 'target_name': 'libpackager',
'type': '<(libpackager_type)', 'type': '<(libpackager_type)',
'msvs_disabled_warnings': [ 4267, 4819, ],
'sources': [ 'sources': [
# TODO(kqyang): Clean up the file path. # TODO(kqyang): Clean up the file path.
'app/job_manager.cc', 'app/job_manager.cc',

View File

@ -11,6 +11,7 @@
'target_name': 'gtest', 'target_name': 'gtest',
'toolsets': ['host', 'target'], 'toolsets': ['host', 'target'],
'type': 'static_library', 'type': 'static_library',
'msvs_disabled_warnings': [ 4267, 4819, ],
'sources': [ 'sources': [
'<@(gtest_sources)', '<@(gtest_sources)',
], ],
@ -193,7 +194,7 @@
], ],
}], }],
], ],
'msvs_disabled_warnings': [4800], 'msvs_disabled_warnings': [4800, 4819],
}, },
}, },
{ {

View File

@ -34,7 +34,7 @@
}, },
# TODO(davidben): Fix size_t truncations in BoringSSL. # TODO(davidben): Fix size_t truncations in BoringSSL.
# https://crbug.com/429039 # https://crbug.com/429039
'msvs_disabled_warnings': [ 4267, ], 'msvs_disabled_warnings': [ 4267, 4819, ],
'conditions': [ 'conditions': [
['component == "shared_library"', { ['component == "shared_library"', {
'defines': [ 'defines': [
@ -73,7 +73,7 @@
'dependencies': [ 'boringssl_asm' ], 'dependencies': [ 'boringssl_asm' ],
# TODO(davidben): Fix size_t truncations in BoringSSL. # TODO(davidben): Fix size_t truncations in BoringSSL.
# https://crbug.com/429039 # https://crbug.com/429039
'msvs_disabled_warnings': [ 4267, ], 'msvs_disabled_warnings': [ 4267, 4819, ],
'conditions': [ 'conditions': [
['component == "shared_library"', { ['component == "shared_library"', {
'defines': [ 'defines': [

View File

@ -91,7 +91,7 @@
'source/lib/system_win32.c', 'source/lib/system_win32.c',
'source/lib/system_win32.h', 'source/lib/system_win32.h',
], ],
'msvs_disabled_warnings': [ 4267, ], 'msvs_disabled_warnings': [ 4267, 4819, ],
}], }],
], ],
'defines': [ 'defines': [