Skip to content

Commit fe36936

Browse files
committed
Generate amast.tar.gz
1 parent 2e5f895 commit fe36936

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

tools/unity/meson.build

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ files_txt = configure_file(
3232
}
3333
)
3434

35-
configure_file(
35+
amast_cfg = configure_file(
3636
input: 'amast_config.h',
3737
output: 'amast_config.h',
3838
copy: true
@@ -74,6 +74,29 @@ amast_src = custom_target(
7474
depends: [amast_exe, amast_makefile]
7575
)
7676

77+
custom_target(
78+
'tarball',
79+
output: 'amast.tar.gz',
80+
command: [
81+
'tar', 'czf', '@OUTPUT@',
82+
'--transform', 's,^.*/unity/,amast/,',
83+
] +
84+
amast_src[0] +
85+
amast_src[1] +
86+
amast_src[2] +
87+
amast_src[3] +
88+
amast_src[4] +
89+
amast_src[5] +
90+
amast_src[6] +
91+
amast_src[7] +
92+
meson.current_build_dir() / 'amast_libuv.c' +
93+
amast_cfg +
94+
amast_makefile,
95+
depends: [amast_src, amast_makefile],
96+
build_always_stale: true,
97+
build_by_default: true,
98+
)
99+
77100
if unit_test
78101
e = executable(
79102
'unity',

0 commit comments

Comments
 (0)