diff options
Diffstat (limited to 'media/webrtc/trunk/tools/gyp/test/mac/identical-name')
10 files changed, 68 insertions, 0 deletions
diff --git a/media/webrtc/trunk/tools/gyp/test/mac/identical-name/proxy/proxy.cc b/media/webrtc/trunk/tools/gyp/test/mac/identical-name/proxy/proxy.cc new file mode 100644 index 000000000..8e1782da6 --- /dev/null +++ b/media/webrtc/trunk/tools/gyp/test/mac/identical-name/proxy/proxy.cc @@ -0,0 +1,2 @@ +// Empty file + diff --git a/media/webrtc/trunk/tools/gyp/test/mac/identical-name/proxy/proxy.gyp b/media/webrtc/trunk/tools/gyp/test/mac/identical-name/proxy/proxy.gyp new file mode 100644 index 000000000..38f44af1b --- /dev/null +++ b/media/webrtc/trunk/tools/gyp/test/mac/identical-name/proxy/proxy.gyp @@ -0,0 +1,9 @@ +{ + 'includes': ['../test.gypi'], + 'targets': [{ + 'target_name': 'testlib', + 'type': 'none', + 'dependencies': ['testlib/testlib.gyp:testlib'], + 'sources': ['proxy.cc'], + }], +} diff --git a/media/webrtc/trunk/tools/gyp/test/mac/identical-name/proxy/testlib/testlib.cc b/media/webrtc/trunk/tools/gyp/test/mac/identical-name/proxy/testlib/testlib.cc new file mode 100644 index 000000000..8e1782da6 --- /dev/null +++ b/media/webrtc/trunk/tools/gyp/test/mac/identical-name/proxy/testlib/testlib.cc @@ -0,0 +1,2 @@ +// Empty file + diff --git a/media/webrtc/trunk/tools/gyp/test/mac/identical-name/proxy/testlib/testlib.gyp b/media/webrtc/trunk/tools/gyp/test/mac/identical-name/proxy/testlib/testlib.gyp new file mode 100644 index 000000000..ed1c62e98 --- /dev/null +++ b/media/webrtc/trunk/tools/gyp/test/mac/identical-name/proxy/testlib/testlib.gyp @@ -0,0 +1,8 @@ +{ + 'includes': ['../../test.gypi'], + 'targets': [{ + 'target_name': 'testlib', + 'type': 'static_library', + 'sources': ['testlib.cc'], + }], +} diff --git a/media/webrtc/trunk/tools/gyp/test/mac/identical-name/test-should-fail.gyp b/media/webrtc/trunk/tools/gyp/test/mac/identical-name/test-should-fail.gyp new file mode 100644 index 000000000..72bfc7af0 --- /dev/null +++ b/media/webrtc/trunk/tools/gyp/test/mac/identical-name/test-should-fail.gyp @@ -0,0 +1,10 @@ +{ + 'targets': [{ + 'target_name': 'test', + 'type': 'executable', + 'dependencies': [ + 'testlib/testlib.gyp:proxy', + 'proxy/proxy.gyp:testlib', + ], + }], +} diff --git a/media/webrtc/trunk/tools/gyp/test/mac/identical-name/test.gyp b/media/webrtc/trunk/tools/gyp/test/mac/identical-name/test.gyp new file mode 100644 index 000000000..717220e86 --- /dev/null +++ b/media/webrtc/trunk/tools/gyp/test/mac/identical-name/test.gyp @@ -0,0 +1,11 @@ +{ + 'includes': ['test.gypi'], + 'targets': [{ + 'target_name': 'test', + 'type': 'executable', + 'dependencies': [ + 'testlib/testlib.gyp:proxy', + 'proxy/proxy.gyp:testlib', + ], + }], +}
\ No newline at end of file diff --git a/media/webrtc/trunk/tools/gyp/test/mac/identical-name/test.gypi b/media/webrtc/trunk/tools/gyp/test/mac/identical-name/test.gypi new file mode 100644 index 000000000..61b7c2bad --- /dev/null +++ b/media/webrtc/trunk/tools/gyp/test/mac/identical-name/test.gypi @@ -0,0 +1,7 @@ +{ + 'target_defaults': { + 'xcode_settings': { + 'SYMROOT': '<(DEPTH)/$SRCROOT/', + }, + }, +} diff --git a/media/webrtc/trunk/tools/gyp/test/mac/identical-name/testlib/main.cc b/media/webrtc/trunk/tools/gyp/test/mac/identical-name/testlib/main.cc new file mode 100644 index 000000000..5c2fa9bb6 --- /dev/null +++ b/media/webrtc/trunk/tools/gyp/test/mac/identical-name/testlib/main.cc @@ -0,0 +1,3 @@ +int main(int argc, char **argv) { + return 0; +} diff --git a/media/webrtc/trunk/tools/gyp/test/mac/identical-name/testlib/testlib.gyp b/media/webrtc/trunk/tools/gyp/test/mac/identical-name/testlib/testlib.gyp new file mode 100644 index 000000000..aa8b85100 --- /dev/null +++ b/media/webrtc/trunk/tools/gyp/test/mac/identical-name/testlib/testlib.gyp @@ -0,0 +1,14 @@ +{ + 'includes': ['../test.gypi'], + 'targets': [{ + 'target_name': 'proxy', + 'type': 'static_library', + 'sources': ['void.cc'], + 'dependencies': ['testlib'], + 'export_dependent_settings': ['testlib'], + }, { + 'target_name': 'testlib', + 'type': 'static_library', + 'sources': ['main.cc'], + }], +} diff --git a/media/webrtc/trunk/tools/gyp/test/mac/identical-name/testlib/void.cc b/media/webrtc/trunk/tools/gyp/test/mac/identical-name/testlib/void.cc new file mode 100644 index 000000000..8e1782da6 --- /dev/null +++ b/media/webrtc/trunk/tools/gyp/test/mac/identical-name/testlib/void.cc @@ -0,0 +1,2 @@ +// Empty file + |