From 26a029d407be480d791972afb5975cf62c9360a6 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 02:47:55 +0200 Subject: Adding upstream version 124.0.1. Signed-off-by: Daniel Baumann --- .../rules/subdir1/build/README.txt | 4 ++ .../generator-output/rules/subdir1/define3.in0 | 1 + .../generator-output/rules/subdir1/define4.in0 | 1 + .../generator-output/rules/subdir1/executable.gyp | 59 ++++++++++++++++++++++ .../generator-output/rules/subdir1/function1.in1 | 6 +++ .../generator-output/rules/subdir1/function2.in1 | 6 +++ .../test/generator-output/rules/subdir1/program.c | 18 +++++++ 7 files changed, 95 insertions(+) create mode 100644 third_party/python/gyp/test/generator-output/rules/subdir1/build/README.txt create mode 100644 third_party/python/gyp/test/generator-output/rules/subdir1/define3.in0 create mode 100644 third_party/python/gyp/test/generator-output/rules/subdir1/define4.in0 create mode 100644 third_party/python/gyp/test/generator-output/rules/subdir1/executable.gyp create mode 100644 third_party/python/gyp/test/generator-output/rules/subdir1/function1.in1 create mode 100644 third_party/python/gyp/test/generator-output/rules/subdir1/function2.in1 create mode 100644 third_party/python/gyp/test/generator-output/rules/subdir1/program.c (limited to 'third_party/python/gyp/test/generator-output/rules/subdir1') diff --git a/third_party/python/gyp/test/generator-output/rules/subdir1/build/README.txt b/third_party/python/gyp/test/generator-output/rules/subdir1/build/README.txt new file mode 100644 index 0000000000..1b052c9a24 --- /dev/null +++ b/third_party/python/gyp/test/generator-output/rules/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/third_party/python/gyp/test/generator-output/rules/subdir1/define3.in0 b/third_party/python/gyp/test/generator-output/rules/subdir1/define3.in0 new file mode 100644 index 0000000000..cc29c643f3 --- /dev/null +++ b/third_party/python/gyp/test/generator-output/rules/subdir1/define3.in0 @@ -0,0 +1 @@ +#define STRING3 "Hello from define3.in0\n" diff --git a/third_party/python/gyp/test/generator-output/rules/subdir1/define4.in0 b/third_party/python/gyp/test/generator-output/rules/subdir1/define4.in0 new file mode 100644 index 0000000000..c9b0467b32 --- /dev/null +++ b/third_party/python/gyp/test/generator-output/rules/subdir1/define4.in0 @@ -0,0 +1 @@ +#define STRING4 "Hello from define4.in0\n" diff --git a/third_party/python/gyp/test/generator-output/rules/subdir1/executable.gyp b/third_party/python/gyp/test/generator-output/rules/subdir1/executable.gyp new file mode 100644 index 0000000000..42bee4d746 --- /dev/null +++ b/third_party/python/gyp/test/generator-output/rules/subdir1/executable.gyp @@ -0,0 +1,59 @@ +# 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', + 'function1.in1', + 'function2.in1', + 'define3.in0', + 'define4.in0', + ], + 'include_dirs': [ + '<(INTERMEDIATE_DIR)', + ], + 'rules': [ + { + 'rule_name': 'copy_file_0', + 'extension': 'in0', + 'inputs': [ + '../copy-file.py', + ], + 'outputs': [ + # TODO: fix Make to support generated files not + # in a variable-named path like <(INTERMEDIATE_DIR) + #'<(RULE_INPUT_ROOT).c', + '<(INTERMEDIATE_DIR)/<(RULE_INPUT_ROOT).h', + ], + 'action': [ + 'python', '<(_inputs)', '<(RULE_INPUT_PATH)', '<@(_outputs)', + ], + 'process_outputs_as_sources': 0, + }, + { + 'rule_name': 'copy_file_1', + 'extension': 'in1', + 'inputs': [ + '../copy-file.py', + ], + 'outputs': [ + # TODO: fix Make to support generated files not + # in a variable-named path like <(INTERMEDIATE_DIR) + #'<(RULE_INPUT_ROOT).c', + '<(INTERMEDIATE_DIR)/<(RULE_INPUT_ROOT).c', + ], + 'action': [ + 'python', '<(_inputs)', '<(RULE_INPUT_PATH)', '<@(_outputs)', + ], + 'process_outputs_as_sources': 1, + }, + ], + }, + ], +} diff --git a/third_party/python/gyp/test/generator-output/rules/subdir1/function1.in1 b/third_party/python/gyp/test/generator-output/rules/subdir1/function1.in1 new file mode 100644 index 0000000000..545e7ca16b --- /dev/null +++ b/third_party/python/gyp/test/generator-output/rules/subdir1/function1.in1 @@ -0,0 +1,6 @@ +#include + +void function1(void) +{ + printf("Hello from function1.in1\n"); +} diff --git a/third_party/python/gyp/test/generator-output/rules/subdir1/function2.in1 b/third_party/python/gyp/test/generator-output/rules/subdir1/function2.in1 new file mode 100644 index 0000000000..6bad43f9cf --- /dev/null +++ b/third_party/python/gyp/test/generator-output/rules/subdir1/function2.in1 @@ -0,0 +1,6 @@ +#include + +void function2(void) +{ + printf("Hello from function2.in1\n"); +} diff --git a/third_party/python/gyp/test/generator-output/rules/subdir1/program.c b/third_party/python/gyp/test/generator-output/rules/subdir1/program.c new file mode 100644 index 0000000000..56b320632a --- /dev/null +++ b/third_party/python/gyp/test/generator-output/rules/subdir1/program.c @@ -0,0 +1,18 @@ +#include +#include "define3.h" +#include "define4.h" + +extern void function1(void); +extern void function2(void); +extern void function3(void); +extern void function4(void); + +int main(void) +{ + printf("Hello from program.c\n"); + function1(); + function2(); + printf("%s", STRING3); + printf("%s", STRING4); + return 0; +} -- cgit v1.2.3