summaryrefslogtreecommitdiff
path: root/src/lib/evas/include
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/evas/include
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/evas/include')
-rw-r--r--src/lib/evas/include/meson.build4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/evas/include/meson.build b/src/lib/evas/include/meson.build
index aaeeb9ba66..a833f67b40 100644
--- a/src/lib/evas/include/meson.build
+++ b/src/lib/evas/include/meson.build
@@ -9,10 +9,12 @@ foreach eo_file : pub_eo_files
9 pub_eo_file_target += custom_target('eolian_gen_' + eo_file, 9 pub_eo_file_target += custom_target('eolian_gen_' + eo_file,
10 input : eo_file, 10 input : eo_file,
11 output : [eo_file + '.h'], 11 output : [eo_file + '.h'],
12 depfile : eo_file + '.d',
12 command : [eolian_gen, '-I', meson.current_source_dir(), eolian_include_directories, 13 command : [eolian_gen, '-I', meson.current_source_dir(), eolian_include_directories,
13 '-o', 'h:' + join_paths(meson.current_build_dir(), eo_file + '.h'), 14 '-o', 'h:' + join_paths(meson.current_build_dir(), eo_file + '.h'),
14 '-o', 'c:' + join_paths(meson.current_build_dir(), eo_file + '.c'), 15 '-o', 'c:' + join_paths(meson.current_build_dir(), eo_file + '.c'),
15 '-gch', '@INPUT@']) 16 '-o', 'd:' + join_paths(meson.current_build_dir(), eo_file + '.d'),
17 '-gchd', '@INPUT@'])
16endforeach 18endforeach
17 19
18eolian_include_directories += ['-I', meson.current_source_dir()] 20eolian_include_directories += ['-I', meson.current_source_dir()]