summaryrefslogtreecommitdiff
path: root/src/lib/ecore_audio
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@samsung.com>2018-10-21 15:55:51 +0200
committerDaniel Kolesa <d.kolesa@samsung.com>2018-10-24 12:02:55 +0200
commit5a3d79d3833a85675a26875594b5b07a99d79365 (patch)
treee264900c8e160240eaafc45f5d739d611374b4ee /src/lib/ecore_audio
parentd82deea833d1adf993b115049ee60b628c530420 (diff)
meson: add eolian custom dependencies support
This uses the meson/ninja depfile functionality + eolian to make sure proper dependencies between generated files and .eo files are managed, to ensure consistent re-generation of all generated files that are affected upon .eo file modification. For custom rules with multiple outputs, Ninja currently does not support depfiles. Therefore, split those into two custom rules so that the depfiles functionality can be enabled. While this is ugly and slows down the process a little by having to invoke Eolian twice instead of once, it has to be done and it's still better than what we had in Autotools anyway. Differential revision: D7187 Fixes T6700.
Diffstat (limited to 'src/lib/ecore_audio')
-rw-r--r--src/lib/ecore_audio/meson.build4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/ecore_audio/meson.build b/src/lib/ecore_audio/meson.build
index 099f845..6fdd5a3 100644
--- a/src/lib/ecore_audio/meson.build
+++ b/src/lib/ecore_audio/meson.build
@@ -16,12 +16,14 @@ foreach eo_file : pub_eo_files
16 pub_eo_file_target += custom_target('eolian_gen_' + eo_file, 16 pub_eo_file_target += custom_target('eolian_gen_' + eo_file,
17 input : eo_file, 17 input : eo_file,
18 output : [eo_file + '.h'], 18 output : [eo_file + '.h'],
19 depfile : eo_file + '.d',
19 install : true, 20 install : true,
20 install_dir : dir_package_include, 21 install_dir : dir_package_include,
21 command : [eolian_gen, '-I', meson.current_source_dir(), eolian_include_directories, 22 command : [eolian_gen, '-I', meson.current_source_dir(), eolian_include_directories,
22 '-o', 'h:' + join_paths(meson.current_build_dir(), eo_file + '.h'), 23 '-o', 'h:' + join_paths(meson.current_build_dir(), eo_file + '.h'),
23 '-o', 'c:' + join_paths(meson.current_build_dir(), eo_file + '.c'), 24 '-o', 'c:' + join_paths(meson.current_build_dir(), eo_file + '.c'),
24 '-gch', '@INPUT@']) 25 '-o', 'd:' + join_paths(meson.current_build_dir(), eo_file + '.d'),
26 '-gchd', '@INPUT@'])
25endforeach 27endforeach
26 28
27pub_eo_types_files = [] 29pub_eo_types_files = []