zmike pushed a commit to branch master.

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

commit cdd134a3a07df23c87be76d991dbcebdaccc9511
Author: Marcel Hollerbach <m...@marcel-hollerbach.de>
Date:   Thu Mar 14 14:26:34 2019 -0400

    elementary: add compile checks for the efl_ui.h header
    
    Summary:
    we should check if the header actaully compiles without the beta
    defines.
    
    Depends on D8342
    
    Reviewers: zmike, segfaultxavi
    
    Reviewed By: zmike
    
    Subscribers: cedric, #reviewers, #committers
    
    Tags: #efl
    
    Differential Revision: https://phab.enlightenment.org/D8343
---
 src/tests/elementary/efl_ui_compile_test.c | 13 +++++++++++++
 src/tests/elementary/meson.build           |  5 +++++
 2 files changed, 18 insertions(+)

diff --git a/src/tests/elementary/efl_ui_compile_test.c 
b/src/tests/elementary/efl_ui_compile_test.c
new file mode 100644
index 0000000000..651295da03
--- /dev/null
+++ b/src/tests/elementary/efl_ui_compile_test.c
@@ -0,0 +1,13 @@
+#undef EFL_BETA_API_SUPPORT
+#undef EFL_EO_API_SUPPORT
+#define EFL_NOLEGACY_API_SUPPORT
+
+#include <Efl_Ui.h>
+
+EAPI_MAIN void
+efl_main(void *data EINA_UNUSED,
+         const Efl_Event *ev EINA_UNUSED)
+{
+}
+
+EFL_MAIN()
diff --git a/src/tests/elementary/meson.build b/src/tests/elementary/meson.build
index e9be0b2a41..5ffbf96789 100644
--- a/src/tests/elementary/meson.build
+++ b/src/tests/elementary/meson.build
@@ -149,6 +149,11 @@ efl_ui_suite = executable('efl_ui_suite',
   ]
 )
 
+efl_ui_compile_test = executable('efl_ui_compile_test',
+  'efl_ui_compile_test.c',
+  dependencies: [elementary, eio],
+)
+
 test('elementary-suite', elementary_suite,
   env : test_env
 )

-- 


Reply via email to