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 --- .../gyp/test/rules/src/subdir1/executable.gyp | 37 ++++++++++++++++++++++ .../python/gyp/test/rules/src/subdir1/function1.in | 6 ++++ .../python/gyp/test/rules/src/subdir1/function2.in | 6 ++++ .../python/gyp/test/rules/src/subdir1/program.c | 12 +++++++ 4 files changed, 61 insertions(+) create mode 100644 third_party/python/gyp/test/rules/src/subdir1/executable.gyp create mode 100644 third_party/python/gyp/test/rules/src/subdir1/function1.in create mode 100644 third_party/python/gyp/test/rules/src/subdir1/function2.in create mode 100644 third_party/python/gyp/test/rules/src/subdir1/program.c (limited to 'third_party/python/gyp/test/rules/src/subdir1') diff --git a/third_party/python/gyp/test/rules/src/subdir1/executable.gyp b/third_party/python/gyp/test/rules/src/subdir1/executable.gyp new file mode 100644 index 0000000000..c34cce5a92 --- /dev/null +++ b/third_party/python/gyp/test/rules/src/subdir1/executable.gyp @@ -0,0 +1,37 @@ +# 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.in', + 'function2.in', + ], + 'rules': [ + { + 'rule_name': 'copy_file', + 'extension': 'in', + '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/rules/src/subdir1/function1.in b/third_party/python/gyp/test/rules/src/subdir1/function1.in new file mode 100644 index 0000000000..60ff28949b --- /dev/null +++ b/third_party/python/gyp/test/rules/src/subdir1/function1.in @@ -0,0 +1,6 @@ +#include + +void function1(void) +{ + printf("Hello from function1.in\n"); +} diff --git a/third_party/python/gyp/test/rules/src/subdir1/function2.in b/third_party/python/gyp/test/rules/src/subdir1/function2.in new file mode 100644 index 0000000000..0fcfc03fdb --- /dev/null +++ b/third_party/python/gyp/test/rules/src/subdir1/function2.in @@ -0,0 +1,6 @@ +#include + +void function2(void) +{ + printf("Hello from function2.in\n"); +} diff --git a/third_party/python/gyp/test/rules/src/subdir1/program.c b/third_party/python/gyp/test/rules/src/subdir1/program.c new file mode 100644 index 0000000000..6b11ff9f67 --- /dev/null +++ b/third_party/python/gyp/test/rules/src/subdir1/program.c @@ -0,0 +1,12 @@ +#include + +extern void function1(void); +extern void function2(void); + +int main(void) +{ + printf("Hello from program.c\n"); + function1(); + function2(); + return 0; +} -- cgit v1.2.3