Skip to content

Commit

Permalink
meson: clean up of prev commit
Browse files Browse the repository at this point in the history
  • Loading branch information
stsp committed Dec 30, 2024
1 parent 2df22af commit 4296f99
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 15 deletions.
9 changes: 4 additions & 5 deletions fdpp/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ project('libfdpp', ['c', 'cpp'], default_options: ['cpp_std=c++20'],

MF = meson.current_source_dir() / 'parsers/mkfar.sh'
PD = meson.current_source_dir() / 'parsers/parse_decls.sh'
RAI = meson.current_source_dir() / 'run_arg_in.sh'
RAO = meson.current_source_dir() / 'run_arg_out.sh'
RA = meson.current_source_dir() / 'run_arg.sh'
tg = dependency('thunk_gen')
TGMK = tg.get_variable(pkgconfig: 'makeinc')
TFLAGS = '-a 2 -p 2'
Expand Down Expand Up @@ -65,7 +64,7 @@ make = find_program('make')
gad = custom_target('glob_asmdefs.h',
output: 'glob_asmdefs.h',
input: 'src/glob_asm.h',
command: [RAO, 'glob_asmdefs.h', make, '-f', TGMK,
command: [RA, 'glob_asmdefs.h', make, '-f', TGMK,
'glob_asmdefs.h', 'GLOB_ASM=@INPUT@'],
capture: true)

Expand Down Expand Up @@ -105,7 +104,7 @@ tgenv.set('TFLAGS', TFLAGS)
tc = custom_target('thunk_calls.h',
output: 'thunk_calls.h',
input: GEN['thunk_calls.tmp'],
command: [RAI, 'thunk_calls.tmp', 'thunk_calls.h',
command: [RA, '-i', 'thunk_calls.tmp', 'thunk_calls.h',
make, '-f', TGMK, 'thunk_calls.h'],
env: tgenv,
feed: true,
Expand All @@ -114,7 +113,7 @@ tc = custom_target('thunk_calls.h',
ta = custom_target('thunk_asms.h',
output: 'thunk_asms.h',
input: GEN['thunk_asms.tmp'],
command: [RAI, 'thunk_asms.tmp', 'thunk_asms.h',
command: [RA, '-i', 'thunk_asms.tmp', 'thunk_asms.h',
make, '-f', TGMK, 'thunk_asms.h'],
env: tgenv,
feed: true,
Expand Down
6 changes: 4 additions & 2 deletions fdpp/run_arg_in.sh → fdpp/run_arg.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#!/bin/sh

cat >$1
shift
if [ "$1" = "-i" ]; then
cat >$2
shift 2
fi
OUT=$1
shift
PRG=$1
Expand Down
8 changes: 0 additions & 8 deletions fdpp/run_arg_out.sh

This file was deleted.

0 comments on commit 4296f99

Please sign in to comment.