efl/src/lib
Felipe Magno de Almeida 3e78c99242 ecore_imf_evas: Rename EAPI macro to ECORE_IMF_EVAS_API in Ecore IMF Evas 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-11-12 13:34:23 -03:00
..
ecore ecore: Rename EAPI macro to ECORE_API in Ecore library 2020-09-20 10:23:26 -03:00
ecore_audio ecore_audio: Rename EAPI macro to ECORE_AUDIO_API in Ecore Audio library 2020-09-09 15:10:58 -03:00
ecore_avahi ecore_avahi: Rename EAPI macro to ECORE_AVAHI_API in Ecore Avahi library 2020-10-16 16:46:40 -03:00
ecore_buffer ecore_buffer: Rename EAPI macro to ECORE_BUFFER_API in Ecore Buffer library 2020-10-29 13:33:18 -03:00
ecore_cocoa ecore_cocoa: Rename EAPI macro to ECORE_COCOA_API in Ecore Cocoa library 2020-10-29 09:33:06 -03:00
ecore_con ecore_con: Rename EAPI macro to ECORE_CON_API in Ecore Con library 2020-09-15 10:16:24 -03:00
ecore_drm ecore_drm: Rename EAPI macro to ECORE_DRM_API in Ecore DRM library 2020-10-15 15:48:08 -03:00
ecore_drm2 ecore_drm2: Rename EAPI macro to ECORE_DRM2_API in Ecore DRM2 library 2020-10-17 09:08:18 -03:00
ecore_evas ecore_evas: Rename EAPI macro to ECORE_EVAS_API in Ecore Evas library 2020-10-28 18:32:52 -03:00
ecore_fb ecore_fb: Rename EAPI macro to ECORE_FB_API in Ecore FB library 2020-10-28 13:32:41 -03:00
ecore_file ecore_file: Rename EAPI macro to ECORE_FILE_API in Ecore File library 2020-10-28 10:11:36 -03:00
ecore_imf ecore_imf: Rename EAPI macro to ECORE_IMF_API in Ecore IMF library 2020-10-27 17:32:11 -03:00
ecore_imf_evas ecore_imf_evas: Rename EAPI macro to ECORE_IMF_EVAS_API in Ecore IMF Evas library 2020-11-12 13:34:23 -03:00
ecore_input ecore_input: Rename EAPI macro to ECORE_INPUT_API in Ecore Input library 2020-10-29 19:37:44 -03:00
ecore_input_evas ecore_input_evas: Rename EAPI macro to ECORE_INPUT_EVAS_API in Ecore Input Evas library 2020-10-27 13:31:56 -03:00
ecore_ipc ecore_ipc: Rename EAPI macro to ECORE_IPC_API in Ecore IPC library 2020-10-26 13:31:38 -03:00
ecore_sdl ecore_sdl: Rename EAPI macro to ECORE_SDL_API in Ecore SDL library 2020-10-30 22:52:42 -03:00
ecore_wayland ecore_wayland: Rename EAPI macro to ECORE_WAYLAND_API in Ecore Wayland library 2020-10-30 23:06:53 -03:00
ecore_win32 ecore_win32: Rename EAPI macro to ECORE_WIN32_API in Ecore Win32 library 2020-10-24 09:01:36 -03:00
ecore_wl2 ecore_wl2: Rename EAPI macro to ECORE_WL2_API in Ecore WL2 library 2020-10-30 20:05:30 -03:00
ecore_x ecore_x: Rename EAPI macro to ECORE_X_API in Ecore X library 2020-10-14 16:34:09 -03:00
ector ector: Rename EAPI macro to ECTOR_API in Ector library 2020-09-17 10:18:19 -03:00
edje edje_cxx: Remove useless EAPI definition 2020-10-14 17:22:00 -03:00
eet eet: Rename EAPI macro to EET_API in Eet library 2020-10-25 10:55:40 -03:00
eeze eeze_api: Rename EAPI macro to EEZE_API in Eeze library 2020-10-22 09:14:33 -03:00
efl efl: Rename EAPI macro to EFL_API in Efl sub-library 2020-09-20 10:25:30 -03:00
efl_canvas_wl efl_canvas_wl: Rename EAPI macro to EFL_CANVAS_WL_API in Efl Canvas WL library 2020-10-30 10:53:34 -03:00
efl_mono efl_mono: Rename EAPI macro to EFL_MONO_API in efl mono binding 2020-10-03 15:45:29 -03:00
efreet efreet: Rename EAPI macro to EFREET_API in Efreet library 2020-10-24 09:16:10 -03:00
eina eina: Rename EAPI macro to EINA_API in Eina library 2020-08-15 15:26:00 -03:00
eio eio: Rename EAPI macro to EIO_API in Eio library 2020-09-07 23:01:06 -03:00
eldbus eldbus: Rename EAPI macro to ELDBUS_API in Eldbus library 2020-09-20 10:22:27 -03:00
elementary elementary: Rename EAPI macro to ELM_API in Elementary library 2020-10-11 13:00:04 -03:00
elput elput: Rename EAPI macro to ELPUT_API in Elput library 2020-10-21 09:12:12 -03:00
elua elua: Rename EAPI macro to ELUA_API in Elua library 2020-10-20 09:11:25 -03:00
embryo embryo: Rename EAPI macro to EMBRYO_API in Embryo library 2020-10-19 09:10:51 -03:00
emile emile: Rename EAPI macro to EMILE_API in Emile library 2020-10-23 09:14:59 -03:00
emotion emotion: emotion EAPI macro to EMOTION_API in Emotion library 2020-09-20 10:19:07 -03:00
eo eo: Rename EAPI macro to EO_API in Eo library 2020-09-05 10:27:43 -03:00
eolian eolian: Rename EAPI macro to EOLIAN_API in Eolian library 2020-08-19 17:32:20 -03:00
eolian_cxx cxx: Fix uses of intrinsic eolian binbuf type 2020-06-09 10:29:32 +02:00
ephysics ephysics: Rename EAPI macro to EPHYSICS_API in Ephysics library 2020-10-30 13:27:23 -03:00
ethumb ethumb: Rename EAPI macro to ETHUMB_API in Ethumb library 2020-10-18 09:10:00 -03:00
ethumb_client ethumb_client: Rename EAPI macro to ETHUMB_CLIENT_API in Ethumb Client library 2020-10-30 17:05:00 -03:00
evas evas: Rename EAPI macro to EVAS_API in Evas library 2020-09-13 10:14:31 -03:00
evil Evil : move mkstemp(s) and mkdtemp in eina_file directly 2020-10-08 11:58:11 +01:00
.gitignore