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
This commit is contained in:
Marcel Hollerbach 2019-03-14 14:26:34 -04:00 committed by Mike Blumenkrantz
parent 72b866b8b2
commit cdd134a3a0
2 changed files with 18 additions and 0 deletions

View File

@ -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()

View File

@ -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
)