summaryrefslogtreecommitdiff
path: root/gyp/test/generator-output/actions/subdir1
diff options
context:
space:
mode:
authorPatrick Ohly <patrick.ohly@intel.com>2014-09-19 12:04:47 +0200
committerPatrick Ohly <patrick.ohly@intel.com>2014-09-19 12:13:21 +0200
commit390c369f081a5601e18fdb44b9054d9d29e1356d (patch)
treeb32ae4505bb6690fac4d0672d8b165ee25ef3ec5 /gyp/test/generator-output/actions/subdir1
parent6bcc194aec4d5d51c3856826198c203f58a10de0 (diff)
downloadpycrosswalk-390c369f081a5601e18fdb44b9054d9d29e1356d.tar.gz
pycrosswalk-390c369f081a5601e18fdb44b9054d9d29e1356d.tar.bz2
pycrosswalk-390c369f081a5601e18fdb44b9054d9d29e1356d.zip
bundle gyp
This is the same approach as used in other Crosswalk projects. Could be replaced with a Tizen gyp package if someone was willing to maintain it.
Diffstat (limited to 'gyp/test/generator-output/actions/subdir1')
-rw-r--r--gyp/test/generator-output/actions/subdir1/actions-out/README.txt4
-rw-r--r--gyp/test/generator-output/actions/subdir1/build/README.txt4
-rw-r--r--gyp/test/generator-output/actions/subdir1/executable.gyp44
-rwxr-xr-xgyp/test/generator-output/actions/subdir1/make-prog1.py20
-rwxr-xr-xgyp/test/generator-output/actions/subdir1/make-prog2.py20
-rw-r--r--gyp/test/generator-output/actions/subdir1/program.c12
6 files changed, 104 insertions, 0 deletions
diff --git a/gyp/test/generator-output/actions/subdir1/actions-out/README.txt b/gyp/test/generator-output/actions/subdir1/actions-out/README.txt
new file mode 100644
index 0000000..1b052c9
--- /dev/null
+++ b/gyp/test/generator-output/actions/subdir1/actions-out/README.txt
@@ -0,0 +1,4 @@
+A place-holder for this Xcode build output directory, so that the
+test script can verify that .xcodeproj files are not created in
+their normal location by making the src/ read-only, and then
+selectively making this build directory writable.
diff --git a/gyp/test/generator-output/actions/subdir1/build/README.txt b/gyp/test/generator-output/actions/subdir1/build/README.txt
new file mode 100644
index 0000000..1b052c9
--- /dev/null
+++ b/gyp/test/generator-output/actions/subdir1/build/README.txt
@@ -0,0 +1,4 @@
+A place-holder for this Xcode build output directory, so that the
+test script can verify that .xcodeproj files are not created in
+their normal location by making the src/ read-only, and then
+selectively making this build directory writable.
diff --git a/gyp/test/generator-output/actions/subdir1/executable.gyp b/gyp/test/generator-output/actions/subdir1/executable.gyp
new file mode 100644
index 0000000..6bdd60a
--- /dev/null
+++ b/gyp/test/generator-output/actions/subdir1/executable.gyp
@@ -0,0 +1,44 @@
+# 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': 'program',
+ 'type': 'executable',
+ 'msvs_cygwin_shell': 0,
+ 'sources': [
+ 'program.c',
+ ],
+ 'actions': [
+ {
+ 'action_name': 'make-prog1',
+ 'inputs': [
+ 'make-prog1.py',
+ ],
+ 'outputs': [
+ '<(INTERMEDIATE_DIR)/prog1.c',
+ ],
+ 'action': [
+ 'python', '<(_inputs)', '<@(_outputs)',
+ ],
+ 'process_outputs_as_sources': 1,
+ },
+ {
+ 'action_name': 'make-prog2',
+ 'inputs': [
+ 'make-prog2.py',
+ ],
+ 'outputs': [
+ 'actions-out/prog2.c',
+ ],
+ 'action': [
+ 'python', '<(_inputs)', '<@(_outputs)',
+ ],
+ 'process_outputs_as_sources': 1,
+ },
+ ],
+ },
+ ],
+}
diff --git a/gyp/test/generator-output/actions/subdir1/make-prog1.py b/gyp/test/generator-output/actions/subdir1/make-prog1.py
new file mode 100755
index 0000000..7ea1d8a
--- /dev/null
+++ b/gyp/test/generator-output/actions/subdir1/make-prog1.py
@@ -0,0 +1,20 @@
+#!/usr/bin/env python
+
+# 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.
+
+import sys
+
+contents = r"""
+#include <stdio.h>
+
+void prog1(void)
+{
+ printf("Hello from make-prog1.py\n");
+}
+"""
+
+open(sys.argv[1], 'w').write(contents)
+
+sys.exit(0)
diff --git a/gyp/test/generator-output/actions/subdir1/make-prog2.py b/gyp/test/generator-output/actions/subdir1/make-prog2.py
new file mode 100755
index 0000000..0bfe497
--- /dev/null
+++ b/gyp/test/generator-output/actions/subdir1/make-prog2.py
@@ -0,0 +1,20 @@
+#!/usr/bin/env python
+
+# 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.
+
+import sys
+
+contents = r"""
+#include <stdio.h>
+
+void prog2(void)
+{
+ printf("Hello from make-prog2.py\n");
+}
+"""
+
+open(sys.argv[1], 'w').write(contents)
+
+sys.exit(0)
diff --git a/gyp/test/generator-output/actions/subdir1/program.c b/gyp/test/generator-output/actions/subdir1/program.c
new file mode 100644
index 0000000..c093153
--- /dev/null
+++ b/gyp/test/generator-output/actions/subdir1/program.c
@@ -0,0 +1,12 @@
+#include <stdio.h>
+
+extern void prog1(void);
+extern void prog2(void);
+
+int main(void)
+{
+ printf("Hello from program.c\n");
+ prog1();
+ prog2();
+ return 0;
+}