From 5f8de423f190bbb79a62f804151bc24824fa32d8 Mon Sep 17 00:00:00 2001 From: "Matt A. Tobin" Date: Fri, 2 Feb 2018 04:16:08 -0500 Subject: Add m-esr52 at 52.6.0 --- .../tools/gyp/test/intermediate_dir/src/script.py | 24 +++++++++++++ .../test/intermediate_dir/src/shared_infile.txt | 1 + .../tools/gyp/test/intermediate_dir/src/test.gyp | 42 ++++++++++++++++++++++ .../tools/gyp/test/intermediate_dir/src/test2.gyp | 42 ++++++++++++++++++++++ 4 files changed, 109 insertions(+) create mode 100755 media/webrtc/trunk/tools/gyp/test/intermediate_dir/src/script.py create mode 100644 media/webrtc/trunk/tools/gyp/test/intermediate_dir/src/shared_infile.txt create mode 100644 media/webrtc/trunk/tools/gyp/test/intermediate_dir/src/test.gyp create mode 100644 media/webrtc/trunk/tools/gyp/test/intermediate_dir/src/test2.gyp (limited to 'media/webrtc/trunk/tools/gyp/test/intermediate_dir/src') diff --git a/media/webrtc/trunk/tools/gyp/test/intermediate_dir/src/script.py b/media/webrtc/trunk/tools/gyp/test/intermediate_dir/src/script.py new file mode 100755 index 000000000..7abc7ee14 --- /dev/null +++ b/media/webrtc/trunk/tools/gyp/test/intermediate_dir/src/script.py @@ -0,0 +1,24 @@ +#!/usr/bin/env python +# Copyright (c) 2012 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. + +# Takes 3 arguments. Writes the 1st argument to the file in the 2nd argument, +# and writes the absolute path to the file in the 2nd argument to the file in +# the 3rd argument. + +import os +import shlex +import sys + +if len(sys.argv) == 3 and ' ' in sys.argv[2]: + sys.argv[2], fourth = shlex.split(sys.argv[2].replace('\\', '\\\\')) + sys.argv.append(fourth) + +#print >>sys.stderr, sys.argv + +with open(sys.argv[2], 'w') as f: + f.write(sys.argv[1]) + +with open(sys.argv[3], 'w') as f: + f.write(os.path.abspath(sys.argv[2])) diff --git a/media/webrtc/trunk/tools/gyp/test/intermediate_dir/src/shared_infile.txt b/media/webrtc/trunk/tools/gyp/test/intermediate_dir/src/shared_infile.txt new file mode 100644 index 000000000..e2aba15d0 --- /dev/null +++ b/media/webrtc/trunk/tools/gyp/test/intermediate_dir/src/shared_infile.txt @@ -0,0 +1 @@ +dummy input diff --git a/media/webrtc/trunk/tools/gyp/test/intermediate_dir/src/test.gyp b/media/webrtc/trunk/tools/gyp/test/intermediate_dir/src/test.gyp new file mode 100644 index 000000000..b61e7e8ea --- /dev/null +++ b/media/webrtc/trunk/tools/gyp/test/intermediate_dir/src/test.gyp @@ -0,0 +1,42 @@ +# Copyright (c) 2011 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': 'target1', + 'type': 'none', + 'actions': [ + { + 'action_name': 'intermediate', + 'inputs': [], + 'outputs': [ + '<(INTERMEDIATE_DIR)/intermediate_out.txt', + 'outfile.txt', + ], + 'action': [ + 'python', 'script.py', 'target1', '<(_outputs)', + ], + # Allows the test to run without hermetic cygwin on windows. + 'msvs_cygwin_shell': 0, + }, + { + 'action_name': 'shared_intermediate', + 'inputs': [ + 'shared_infile.txt', + ], + 'outputs': [ + '<(SHARED_INTERMEDIATE_DIR)/intermediate_out.txt', + 'shared_outfile.txt', + ], + 'action': [ + 'python', 'script.py', 'shared_target1', '<(_outputs)', + ], + # Allows the test to run without hermetic cygwin on windows. + 'msvs_cygwin_shell': 0, + }, + ], + }, + ], +} diff --git a/media/webrtc/trunk/tools/gyp/test/intermediate_dir/src/test2.gyp b/media/webrtc/trunk/tools/gyp/test/intermediate_dir/src/test2.gyp new file mode 100644 index 000000000..41f556466 --- /dev/null +++ b/media/webrtc/trunk/tools/gyp/test/intermediate_dir/src/test2.gyp @@ -0,0 +1,42 @@ +# Copyright (c) 2011 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': 'target2', + 'type': 'none', + 'actions': [ + { + 'action_name': 'intermediate', + 'inputs': [], + 'outputs': [ + '<(INTERMEDIATE_DIR)/intermediate_out.txt', + 'outfile.txt', + ], + 'action': [ + 'python', 'script.py', 'target2', '<(_outputs)', + ], + # Allows the test to run without hermetic cygwin on windows. + 'msvs_cygwin_shell': 0, + }, + { + 'action_name': 'shared_intermediate', + 'inputs': [ + 'shared_infile.txt', + ], + 'outputs': [ + '<(SHARED_INTERMEDIATE_DIR)/intermediate_out.txt', + 'shared_outfile.txt', + ], + 'action': [ + 'python', 'script.py', 'shared_target2', '<(_outputs)', + ], + # Allows the test to run without hermetic cygwin on windows. + 'msvs_cygwin_shell': 0, + }, + ], + }, + ], +} -- cgit v1.2.3