From cdd134a3a07df23c87be76d991dbcebdaccc9511 Mon Sep 17 00:00:00 2001 From: Marcel Hollerbach Date: Thu, 14 Mar 2019 14:26:34 -0400 Subject: [PATCH] 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(+) create mode 100644 src/tests/elementary/efl_ui_compile_test.c 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 + +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 )