bu5hm4n pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=91a5312f70169da3c7d64cdfc8ebe12d04de5889

commit 91a5312f70169da3c7d64cdfc8ebe12d04de5889
Author: Marcel Hollerbach <[email protected]>
Date:   Thu Jun 4 10:23:29 2020 +0200

    build: do not publish surface .eo files
    
    they are privat, they should never be installed.
    
    Reviewed-by: Stefan Schmidt <[email protected]>
    Differential Revision: https://phab.enlightenment.org/D11933
---
 src/lib/evas/canvas/meson.build | 23 +++++++++++++++++++----
 1 file changed, 19 insertions(+), 4 deletions(-)

diff --git a/src/lib/evas/canvas/meson.build b/src/lib/evas/canvas/meson.build
index 7dc662e097..db23590ba3 100644
--- a/src/lib/evas/canvas/meson.build
+++ b/src/lib/evas/canvas/meson.build
@@ -5,10 +5,6 @@ pub_eo_files = [
   'efl_canvas_image.eo',
   'efl_canvas_snapshot.eo',
   'efl_canvas_proxy.eo',
-  'efl_canvas_surface.eo',
-  'efl_canvas_surface_tbm.eo',
-  'efl_canvas_surface_x11.eo',
-  'efl_canvas_surface_wayland.eo',
   'efl_canvas_filter_internal.eo',
   'efl_input_state.eo',
   'efl_input_interface.eo',
@@ -50,6 +46,25 @@ pub_eo_files = [
   'efl_canvas_object_animation.eo',
 ]
 
+priv_eo_files = [
+  'efl_canvas_surface.eo',
+  'efl_canvas_surface_tbm.eo',
+  'efl_canvas_surface_x11.eo',
+  'efl_canvas_surface_wayland.eo',
+]
+
+foreach eo_file : priv_eo_files
+  priv_eo_file_target += custom_target('eolian_gen_' + eo_file,
+    input : eo_file,
+    output : [eo_file + '.h'],
+    depfile : eo_file + '.d',
+    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
+
 evas_canvas_eo_files = pub_eo_files
 
 pub_evas_eo_files += files(pub_eo_files)

-- 


Reply via email to