From c0bc4fd5a481057f26aa6472c8256fd029a6259f Mon Sep 17 00:00:00 2001 From: Marcel Hollerbach Date: Sun, 19 Apr 2020 21:37:37 +0200 Subject: [PATCH] eo: install eot files correctly eina_types.eot is needed in order to fetch all needed informations. Differential Revision: https://phab.enlightenment.org/D11736 --- src/lib/eo/meson.build | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/src/lib/eo/meson.build b/src/lib/eo/meson.build index abc563ff60..83eedb0de7 100644 --- a/src/lib/eo/meson.build +++ b/src/lib/eo/meson.build @@ -23,10 +23,25 @@ pub_eo_types_files = [ 'eina_types.eot' ] -eo_header = ['Eo.h'] - pub_eo_file_target = [] priv_eo_file_target = [] + +foreach eo_file : pub_eo_types_files + pub_eo_file_target += custom_target('eolian_gen_' + eo_file, + input : eo_file, + output : [eo_file + '.h'], + depfile : eo_file + '.d', + install : true, + install_dir : dir_package_include, + command : eolian_gen + [ '-I', meson.current_source_dir(), eolian_include_directories, + '-o', 'h:' + join_paths(meson.current_build_dir(), eo_file + '.h'), + '-o', 'c:' + join_paths(meson.current_build_dir(), eo_file + '.c'), + '-o', 'd:' + join_paths(meson.current_build_dir(), eo_file + '.d'), + '-gchd', '@INPUT@']) +endforeach + +eo_header = ['Eo.h'] + foreach eo_file : pub_eo_files pub_eo_file_target += custom_target('eolian_gen_' + eo_file, input : eo_file,