aboutsummaryrefslogtreecommitdiff
path: root/test cases
diff options
context:
space:
mode:
authorXavier Claessens <xavier.claessens@collabora.com>2023-02-20 11:18:00 -0500
committerXavier Claessens <xclaesse@gmail.com>2023-05-31 11:59:39 -0400
commitd17e3ce6ba0a22f449c9bcb82d67281048c776e9 (patch)
tree98bc49bb7236913901d6f6e911d2e2a3b98289e1 /test cases
parent95b03f793028968a4a6df7fe25358fd8c5d39a0c (diff)
downloadmeson-d17e3ce6ba0a22f449c9bcb82d67281048c776e9.zip
meson-d17e3ce6ba0a22f449c9bcb82d67281048c776e9.tar.gz
meson-d17e3ce6ba0a22f449c9bcb82d67281048c776e9.tar.bz2
preprocess: Allow preprocessing any file extensions
Diffstat (limited to 'test cases')
-rw-r--r--test cases/common/259 preprocess/meson.build6
1 files changed, 3 insertions, 3 deletions
diff --git a/test cases/common/259 preprocess/meson.build b/test cases/common/259 preprocess/meson.build
index 2650166..5107427 100644
--- a/test cases/common/259 preprocess/meson.build
+++ b/test cases/common/259 preprocess/meson.build
@@ -6,16 +6,16 @@ add_project_arguments(['-DFOO=0', '-DBAR=0'], language: 'c')
fs = import('fs')
bar_content = fs.read('bar.c')
-bar_c = custom_target(
+bar_x = custom_target(
input: 'bar.c',
- output: 'bar.c',
+ output: 'bar.x',
command: ['python3', '-c', '''import sys;print(sys.argv[1].replace('@BAR@', 'bar'))''', bar_content],
capture: true,
)
dep = declare_dependency(compile_args: '-DPLOP=0')
-pp_files = cc.preprocess('foo.c', bar_c, output: '@PLAINNAME@', dependencies: dep)
+pp_files = cc.preprocess('foo.c', bar_x, output: '@PLAINNAME@.c', dependencies: dep)
foreach f : pp_files
message(f.full_path())