Skip to content

Commit 13c9063

Browse files
committed
meson: generate developer tooling files
Signed-off-by: Pavel Hrdina <[email protected]> Reviewed-by: Peter Krempa <[email protected]> Reviewed-by: Neal Gompa <[email protected]>
1 parent 1dfd424 commit 13c9063

File tree

2 files changed

+20
-3
lines changed

2 files changed

+20
-3
lines changed

configure.ac

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,5 @@ m4_if(m4_version_compare([2.61a.100],
104104
[GNUmakefile=$GNUmakefile])])
105105

106106
AC_CONFIG_FILES([\
107-
Makefile \
108-
.color_coded \
109-
.ycm_extra_conf.py])
107+
Makefile])
110108
AC_OUTPUT

meson.build

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2326,6 +2326,25 @@ configure_file(
23262326
run_command('chmod', 'a+x', meson.current_build_dir() / 'run')
23272327

23282328

2329+
# generate developer tooling files
2330+
tooling_files = [
2331+
'.color_coded.in',
2332+
'.ycm_extra_conf.py.in',
2333+
]
2334+
2335+
tooling_conf = configuration_data()
2336+
tooling_conf.set('abs_top_builddir', meson.build_root())
2337+
tooling_conf.set('abs_top_srcdir', meson.source_root())
2338+
2339+
foreach file : tooling_files
2340+
configure_file(
2341+
input: file,
2342+
output: '@BASENAME@',
2343+
configuration: tooling_conf,
2344+
)
2345+
endforeach
2346+
2347+
23292348
# print configuration summary
23302349

23312350
driver_summary = {

0 commit comments

Comments
 (0)