summaryrefslogtreecommitdiff
path: root/deps/gyp/test/toplevel-dir/src
diff options
context:
space:
mode:
Diffstat (limited to 'deps/gyp/test/toplevel-dir/src')
-rw-r--r--deps/gyp/test/toplevel-dir/src/sub1/main.gyp18
-rw-r--r--deps/gyp/test/toplevel-dir/src/sub1/prog1.c7
-rw-r--r--deps/gyp/test/toplevel-dir/src/sub2/prog2.c7
-rw-r--r--deps/gyp/test/toplevel-dir/src/sub2/prog2.gyp15
4 files changed, 47 insertions, 0 deletions
diff --git a/deps/gyp/test/toplevel-dir/src/sub1/main.gyp b/deps/gyp/test/toplevel-dir/src/sub1/main.gyp
new file mode 100644
index 0000000000..33219010e4
--- /dev/null
+++ b/deps/gyp/test/toplevel-dir/src/sub1/main.gyp
@@ -0,0 +1,18 @@
+# Copyright (c) 2009 Google Inc. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+{
+ 'targets': [
+ {
+ 'target_name': 'prog1',
+ 'type': 'executable',
+ 'dependencies': [
+ '<(DEPTH)/../sub2/prog2.gyp:prog2',
+ ],
+ 'sources': [
+ 'prog1.c',
+ ],
+ },
+ ],
+}
diff --git a/deps/gyp/test/toplevel-dir/src/sub1/prog1.c b/deps/gyp/test/toplevel-dir/src/sub1/prog1.c
new file mode 100644
index 0000000000..218e99401c
--- /dev/null
+++ b/deps/gyp/test/toplevel-dir/src/sub1/prog1.c
@@ -0,0 +1,7 @@
+#include <stdio.h>
+
+int main(void)
+{
+ printf("Hello from prog1.c\n");
+ return 0;
+}
diff --git a/deps/gyp/test/toplevel-dir/src/sub2/prog2.c b/deps/gyp/test/toplevel-dir/src/sub2/prog2.c
new file mode 100644
index 0000000000..12a31883b9
--- /dev/null
+++ b/deps/gyp/test/toplevel-dir/src/sub2/prog2.c
@@ -0,0 +1,7 @@
+#include <stdio.h>
+
+int main(void)
+{
+ printf("Hello from prog2.c\n");
+ return 0;
+}
diff --git a/deps/gyp/test/toplevel-dir/src/sub2/prog2.gyp b/deps/gyp/test/toplevel-dir/src/sub2/prog2.gyp
new file mode 100644
index 0000000000..5934548369
--- /dev/null
+++ b/deps/gyp/test/toplevel-dir/src/sub2/prog2.gyp
@@ -0,0 +1,15 @@
+# Copyright (c) 2009 Google Inc. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+{
+ 'targets': [
+ {
+ 'target_name': 'prog2',
+ 'type': 'executable',
+ 'sources': [
+ 'prog2.c',
+ ],
+ },
+ ],
+}