MacOSX: Solve libbase.a conflict link error

On Linux the generated ninja files use path/libbase.a as target name.
In the Mac ninja file the target is just libbase.a.
As we have two libbase.a (base/base.gyp and media/base/media_base.gyp) the linking stage fails to include both libs.

Solve by renaming media_base.gyp's base target to media_base
This commit is contained in:
Anders Hasselqvist 2016-01-15 23:57:20 +09:00 committed by KongQun Yang
parent 209b29a20b
commit db7bebe3fa
9 changed files with 10 additions and 10 deletions

View File

@ -10,7 +10,7 @@
],
'targets': [
{
'target_name': 'base',
'target_name': 'media_base',
'type': '<(component)',
'sources': [
'aes_encryptor.cc',
@ -132,7 +132,7 @@
'../../third_party/boringssl/boringssl.gyp:boringssl',
'../file/file.gyp:file',
'../test/media_test.gyp:media_test_support',
'base',
'media_base',
],
},
],

View File

@ -25,7 +25,7 @@
'../../mpd/mpd.gyp:media_info_proto',
# Depends on full protobuf to read/write with TextFormat.
'../../third_party/protobuf/protobuf.gyp:protobuf_full_do_not_use',
'../base/media_base.gyp:base',
'../base/media_base.gyp:media_base',
'../file/file.gyp:file',
],
},

View File

@ -40,7 +40,7 @@
'dependencies': [
'../../base/base.gyp:base',
'../../third_party/gflags/gflags.gyp:gflags',
'../base/media_base.gyp:base',
'../base/media_base.gyp:media_base',
],
},
{

View File

@ -49,7 +49,7 @@
'vp9_parser_unittest.cc',
],
'dependencies': [
'../../media/base/media_base.gyp:base',
'../../media/base/media_base.gyp:media_base',
'../../testing/gmock.gyp:gmock',
'../../testing/gtest.gyp:gtest',
'../test/media_test.gyp:media_test_support',

View File

@ -34,7 +34,7 @@
'ts_section_psi.h',
],
'dependencies': [
'../../base/media_base.gyp:base',
'../../base/media_base.gyp:media_base',
],
},
{

View File

@ -55,7 +55,7 @@
],
'dependencies': [
'../../../third_party/boringssl/boringssl.gyp:boringssl',
'../../base/media_base.gyp:base',
'../../base/media_base.gyp:media_base',
'../../event/media_event.gyp:media_event',
'../../filters/filters.gyp:filters',
],

View File

@ -57,7 +57,7 @@
'dependencies': [
'../../../third_party/boringssl/boringssl.gyp:boringssl',
'../../../third_party/libwebm/libwebm.gyp:libwebm',
'../../base/media_base.gyp:base',
'../../base/media_base.gyp:media_base',
'../../base/media_base.gyp:widevine_pssh_data_proto',
'../../filters/filters.gyp:filters'
],

View File

@ -18,7 +18,7 @@
],
'dependencies': [
'../../../base/base.gyp:base',
'../../base/media_base.gyp:base',
'../../base/media_base.gyp:media_base',
],
},
{

View File

@ -17,7 +17,7 @@
'wvm_media_parser.h',
],
'dependencies': [
'../../base/media_base.gyp:base',
'../../base/media_base.gyp:media_base',
'../../filters/filters.gyp:filters',
'../../formats/mp2t/mp2t.gyp:mp2t',
'../../formats/mp4/mp4.gyp:mp4',