diff options
Diffstat (limited to 'deps/gyp/test/actions/src/subdir1')
-rwxr-xr-x | deps/gyp/test/actions/src/subdir1/counter.py | 44 | ||||
-rw-r--r-- | deps/gyp/test/actions/src/subdir1/executable.gyp | 74 | ||||
-rwxr-xr-x | deps/gyp/test/actions/src/subdir1/make-prog1.py | 20 | ||||
-rwxr-xr-x | deps/gyp/test/actions/src/subdir1/make-prog2.py | 20 | ||||
-rw-r--r-- | deps/gyp/test/actions/src/subdir1/program.c | 12 |
5 files changed, 0 insertions, 170 deletions
diff --git a/deps/gyp/test/actions/src/subdir1/counter.py b/deps/gyp/test/actions/src/subdir1/counter.py deleted file mode 100755 index d888f2e803..0000000000 --- a/deps/gyp/test/actions/src/subdir1/counter.py +++ /dev/null @@ -1,44 +0,0 @@ -#!/usr/bin/env python - -# Copyright (c) 2010 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 -import time - -output = sys.argv[1] -persistoutput = "%s.persist" % sys.argv[1] - -count = 0 -try: - count = open(persistoutput, 'r').read() -except: - pass -count = int(count) + 1 - -if len(sys.argv) > 2: - max_count = int(sys.argv[2]) - if count > max_count: - count = max_count - -oldcount = 0 -try: - oldcount = open(output, 'r').read() -except: - pass - -# Save the count in a file that is undeclared, and thus hidden, to gyp. We need -# to do this because, prior to running commands, some build systems deletes -# any declared outputs, so we would lose our count if we just wrote to the -# given output file. -open(persistoutput, 'w').write('%d' % (count)) - -# Only write the given output file if the count has changed. -if int(oldcount) != count: - open(output, 'w').write('%d' % (count)) - # Sleep so the next run changes the file time sufficiently to make the build - # detect the file as changed. - time.sleep(1) - -sys.exit(0) diff --git a/deps/gyp/test/actions/src/subdir1/executable.gyp b/deps/gyp/test/actions/src/subdir1/executable.gyp deleted file mode 100644 index 6a1ce4f91e..0000000000 --- a/deps/gyp/test/actions/src/subdir1/executable.gyp +++ /dev/null @@ -1,74 +0,0 @@ -# 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, - # Allows the test to run without hermetic cygwin on windows. - 'msvs_cygwin_shell': 0, - }, - ], - }, - { - 'target_name': 'counter', - 'type': 'none', - 'actions': [ - { - # This action should always run, regardless of whether or not it's - # inputs or the command-line change. We do this by creating a dummy - # first output, which is always missing, thus causing the build to - # always try to recreate it. Actual output files should be listed - # after the dummy one, and dependent targets should list the real - # output(s) in their inputs - # (see '../actions.gyp:depend_on_always_run_action'). - 'action_name': 'action_counter', - 'inputs': [ - 'counter.py', - ], - 'outputs': [ - 'actions-out/action-counter.txt.always', - 'actions-out/action-counter.txt', - ], - 'action': [ - 'python', '<(_inputs)', 'actions-out/action-counter.txt', '2', - ], - # Allows the test to run without hermetic cygwin on windows. - 'msvs_cygwin_shell': 0, - }, - ], - }, - ], -} diff --git a/deps/gyp/test/actions/src/subdir1/make-prog1.py b/deps/gyp/test/actions/src/subdir1/make-prog1.py deleted file mode 100755 index 7ea1d8a2d4..0000000000 --- a/deps/gyp/test/actions/src/subdir1/make-prog1.py +++ /dev/null @@ -1,20 +0,0 @@ -#!/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/deps/gyp/test/actions/src/subdir1/make-prog2.py b/deps/gyp/test/actions/src/subdir1/make-prog2.py deleted file mode 100755 index 0bfe4973c2..0000000000 --- a/deps/gyp/test/actions/src/subdir1/make-prog2.py +++ /dev/null @@ -1,20 +0,0 @@ -#!/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/deps/gyp/test/actions/src/subdir1/program.c b/deps/gyp/test/actions/src/subdir1/program.c deleted file mode 100644 index c0931534eb..0000000000 --- a/deps/gyp/test/actions/src/subdir1/program.c +++ /dev/null @@ -1,12 +0,0 @@ -#include <stdio.h>
-
-extern void prog1(void);
-extern void prog2(void);
-
-int main(void) -{
- printf("Hello from program.c\n");
- prog1();
- prog2();
- return 0;
-}
|