efl/src/tests/ecore
Felipe Magno de Almeida b0f5c73ea3 ecore: Rename EAPI macro to ECORE_API in Ecore library
Patch from a series of patches to rename EAPI symbols to specific
library DSOs.

EAPI was designed to be able to pass
```__attribute__ ((visibility ("default")))``` for symbols with
GCC, which would mean that even if -fvisibility=hidden was used
when compiling the library, the needed symbols would get exported.

MSVC __almost__ works like GCC (or mingw) in which you can
declare everything as export and it will just work (slower, but
it will work). But there's a caveat: global variables will not
work the same way for MSVC, but works for mingw and GCC.

For global variables (as opposed to functions), MSVC requires
correct DSO visibility for MSVC: instead of declaring a symbol as
export for everything, you need to declare it as import when
importing from another DSO and export when defining it locally.

With current EAPI definitions, we get the following example
working in mingw and MSVC (observe it doesn't define any global
variables as exported symbols).

Example 1:
dll1:
```
EAPI void foo(void);

EAPI void bar()
{
  foo();
}
```
dll2:
```
EAPI void foo()
{
  printf ("foo\n");
}
```

This works fine with API defined as __declspec(dllexport) in both
cases and for gcc defining as
```__atttribute__((visibility("default")))```.

However, the following:
Example 2:

dll1:

```
EAPI extern int foo;
EAPI void foobar(void);

EAPI void bar()
{
  foo = 5;
  foobar();
}
```

dll2:

```
EAPI int foo = 0;
EAPI void foobar()
{
  printf ("foo %d\n", foo);
}
```

This will work on mingw but will not work for MSVC. And that's why
EAPI is the only solution that worked for MSVC.

Co-authored-by: João Paulo Taylor Ienczak Zanette <jpaulotiz@gmail.com>
Co-authored-by: Ricardo Campos <ricardo.campos@expertise.dev>
Co-authored-by: Lucas Cavalcante de Sousa <lucks.sousa@gmail.com>
2020-09-20 10:23:26 -03:00
..
ecore_audio_out_test.eo Revert "eolian: disallow missing docs for stable API where necessary" 2019-09-30 19:48:19 +02:00
ecore_suite.c ecore_evas: Introduce cnp / dnd API for ecore evas 2020-03-08 10:59:25 +01:00
ecore_suite.h ecore: Rename EAPI macro to ECORE_API in Ecore library 2020-09-20 10:23:26 -03:00
ecore_test_animator.c tests: resolve float comparison warnings 2020-05-09 09:25:14 +01:00
ecore_test_args.c tests: move to using checked fixtures for all test suites 2018-04-05 11:10:26 +02:00
ecore_test_ecore.c tests/ecore: unset app args after app args unit test to prevent invalid reads 2019-10-24 18:23:03 +02:00
ecore_test_ecore_audio.c tests: resolve float comparison warnings 2020-05-09 09:25:14 +01:00
ecore_test_ecore_evas.c ecore_evas: Introduce cnp / dnd API for ecore evas 2020-03-08 10:59:25 +01:00
ecore_test_ecore_evas_selection.c ecore_evas: Introduce cnp / dnd API for ecore evas 2020-03-08 10:59:25 +01:00
ecore_test_ecore_fb.c tests: add instrumentation to existing tests to find slow tests 2018-04-05 11:10:25 +02:00
ecore_test_ecore_file.c tests/ecore: ensure that we attempt to re-set PATH in ecore-file tests 2019-10-24 18:23:14 +02:00
ecore_test_ecore_imf.c build: use only BUILD_ECORE_IMF_XIM as a define 2019-04-17 15:45:35 -04:00
ecore_test_ecore_input.c tests: remove "info" messages from ecore-drm/input tests 2018-04-10 11:28:01 +02:00
ecore_test_ecore_thread_eina_thread_queue.c Use __func__ C99 identifier instead of __FUNCTION__ compiler extension 2020-05-07 09:27:07 -04:00
ecore_test_ecore_x.c tests: add instrumentation to existing tests to find slow tests 2018-04-05 11:10:25 +02:00
ecore_test_idle.c tests: split ecore idler tests into separate file 2018-04-10 11:28:01 +02:00
ecore_test_job.c ecore/signal: increase maximum signal throughput 2019-09-19 14:37:16 -07:00
ecore_test_pipe.c ecore_pipe: remove null check condition and fix segfualt on Windows 2018-08-17 12:42:35 -04:00
ecore_test_poller.c tests: split ecore poller tests into separate file 2018-04-10 11:28:01 +02:00
ecore_test_timer.c tests: resolve float comparison warnings 2020-05-09 09:25:14 +01:00
efl_app_suite.c eolian: drop class function overriding 2019-02-13 16:59:58 +01:00
efl_app_suite.h Revert "Revert command line array object because it's broken by design" 2019-02-12 21:42:33 +01:00
efl_app_test_cml.c ecore: Rename EAPI macro to ECORE_API in Ecore library 2020-09-20 10:23:26 -03:00
efl_app_test_cml.eo Revert "eolian: disallow missing docs for stable API where necessary" 2019-09-30 19:48:19 +02:00
efl_app_test_env.c eolian: drop class function overriding 2019-02-13 16:59:58 +01:00
efl_app_test_loop.c eo: use efl_provider_{un,}register infrastructure instead of Efl_Loop one. 2019-07-17 21:57:57 +02:00
efl_app_test_loop_fd.c tests: fix warnings and undef ref on Windows (using meson :-) ) 2019-06-20 12:50:35 +01:00
efl_app_test_loop_timer.c tests/efl_app: add port of intensive timer recursion 2019-10-30 08:49:12 -07:00
efl_app_test_promise.c singularize srand in eina_init - only once in one place 2020-10-03 20:46:50 +01:00
meson.build ecore: Rename EAPI macro to ECORE_API in Ecore library 2020-09-20 10:23:26 -03:00
sample.ogg
sample.wav