summaryrefslogtreecommitdiff
path: root/deps/gyp/test/mac/identical-name
diff options
context:
space:
mode:
Diffstat (limited to 'deps/gyp/test/mac/identical-name')
-rw-r--r--deps/gyp/test/mac/identical-name/proxy/proxy.cc2
-rw-r--r--deps/gyp/test/mac/identical-name/proxy/proxy.gyp9
-rw-r--r--deps/gyp/test/mac/identical-name/proxy/testlib/testlib.cc2
-rw-r--r--deps/gyp/test/mac/identical-name/proxy/testlib/testlib.gyp8
-rw-r--r--deps/gyp/test/mac/identical-name/test-should-fail.gyp10
-rw-r--r--deps/gyp/test/mac/identical-name/test.gyp11
-rw-r--r--deps/gyp/test/mac/identical-name/test.gypi7
-rw-r--r--deps/gyp/test/mac/identical-name/testlib/main.cc3
-rw-r--r--deps/gyp/test/mac/identical-name/testlib/testlib.gyp14
-rw-r--r--deps/gyp/test/mac/identical-name/testlib/void.cc2
10 files changed, 68 insertions, 0 deletions
diff --git a/deps/gyp/test/mac/identical-name/proxy/proxy.cc b/deps/gyp/test/mac/identical-name/proxy/proxy.cc
new file mode 100644
index 0000000000..8e1782da63
--- /dev/null
+++ b/deps/gyp/test/mac/identical-name/proxy/proxy.cc
@@ -0,0 +1,2 @@
+// Empty file
+
diff --git a/deps/gyp/test/mac/identical-name/proxy/proxy.gyp b/deps/gyp/test/mac/identical-name/proxy/proxy.gyp
new file mode 100644
index 0000000000..38f44af1b5
--- /dev/null
+++ b/deps/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/deps/gyp/test/mac/identical-name/proxy/testlib/testlib.cc b/deps/gyp/test/mac/identical-name/proxy/testlib/testlib.cc
new file mode 100644
index 0000000000..8e1782da63
--- /dev/null
+++ b/deps/gyp/test/mac/identical-name/proxy/testlib/testlib.cc
@@ -0,0 +1,2 @@
+// Empty file
+
diff --git a/deps/gyp/test/mac/identical-name/proxy/testlib/testlib.gyp b/deps/gyp/test/mac/identical-name/proxy/testlib/testlib.gyp
new file mode 100644
index 0000000000..ed1c62e982
--- /dev/null
+++ b/deps/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/deps/gyp/test/mac/identical-name/test-should-fail.gyp b/deps/gyp/test/mac/identical-name/test-should-fail.gyp
new file mode 100644
index 0000000000..72bfc7af0f
--- /dev/null
+++ b/deps/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/deps/gyp/test/mac/identical-name/test.gyp b/deps/gyp/test/mac/identical-name/test.gyp
new file mode 100644
index 0000000000..717220e866
--- /dev/null
+++ b/deps/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/deps/gyp/test/mac/identical-name/test.gypi b/deps/gyp/test/mac/identical-name/test.gypi
new file mode 100644
index 0000000000..61b7c2badf
--- /dev/null
+++ b/deps/gyp/test/mac/identical-name/test.gypi
@@ -0,0 +1,7 @@
+{
+ 'target_defaults': {
+ 'xcode_settings': {
+ 'SYMROOT': '<(DEPTH)/$SRCROOT/',
+ },
+ },
+}
diff --git a/deps/gyp/test/mac/identical-name/testlib/main.cc b/deps/gyp/test/mac/identical-name/testlib/main.cc
new file mode 100644
index 0000000000..5c2fa9bb6a
--- /dev/null
+++ b/deps/gyp/test/mac/identical-name/testlib/main.cc
@@ -0,0 +1,3 @@
+int main(int argc, char **argv) {
+ return 0;
+}
diff --git a/deps/gyp/test/mac/identical-name/testlib/testlib.gyp b/deps/gyp/test/mac/identical-name/testlib/testlib.gyp
new file mode 100644
index 0000000000..aa8b851004
--- /dev/null
+++ b/deps/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/deps/gyp/test/mac/identical-name/testlib/void.cc b/deps/gyp/test/mac/identical-name/testlib/void.cc
new file mode 100644
index 0000000000..8e1782da63
--- /dev/null
+++ b/deps/gyp/test/mac/identical-name/testlib/void.cc
@@ -0,0 +1,2 @@
+// Empty file
+