efl/src/lib/evas/gesture
Felipe Magno de Almeida 0363fd8238 evas: Rename EAPI macro to EVAS_API in Evas library
Summary:
Patch from a series of patches to rename EAPI symbols to specific
library DSOs.

=  The Rationale =

This patch is 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
LIBAPI is the only solution that works for MSVC.

Co-authored-by: João Paulo Taylor Ienczak Zanette <jpaulotiz@gmail.com>
Co-authored-by: Lucas Cavalcante de Sousa <lucks.sousa@gmail.com>
Co-authored-by: Ricardo Campos <ricardo.campos@expertise.dev>

Reviewers: vtorri, woohyun, jptiz, lucas

Reviewed By: vtorri, lucas

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D12214
2020-12-15 23:06:12 -03:00
..
efl_canvas_gesture.c efl/gesture: remove 'type' member from Efl_Canvas_Gesture_Data 2020-03-03 10:54:20 +01:00
efl_canvas_gesture.eo remove unused imports in eo/eot files 2020-04-19 01:44:50 +02:00
efl_canvas_gesture_custom.c efl/gesture: remove empty efl.object implementations from gesture objects 2020-03-03 10:54:23 +01:00
efl_canvas_gesture_custom.eo remove unused imports in eo/eot files 2020-04-19 01:44:50 +02:00
efl_canvas_gesture_double_tap.c efl/gesture: remove empty efl.object implementations from gesture objects 2020-03-03 10:54:23 +01:00
efl_canvas_gesture_double_tap.eo efl/gesture: remove empty efl.object implementations from gesture objects 2020-03-03 10:54:23 +01:00
efl_canvas_gesture_events.eo efl/gesture: port 'rotate' gesture from elm to new gesture framework 2020-03-03 10:54:28 +01:00
efl_canvas_gesture_flick.c efl/gesture: remove empty efl.object implementations from gesture objects 2020-03-03 10:54:23 +01:00
efl_canvas_gesture_flick.eo efl/gesture: remove empty efl.object implementations from gesture objects 2020-03-03 10:54:23 +01:00
efl_canvas_gesture_long_press.c efl/gesture: rename long_tap -> long_press 2020-03-03 10:54:26 +01:00
efl_canvas_gesture_long_press.eo efl/gesture: rename long_tap -> long_press 2020-03-03 10:54:26 +01:00
efl_canvas_gesture_manager.c evas: gesture_manager: fix usage of long on Windows 2020-05-19 13:58:59 +02:00
efl_canvas_gesture_manager.eo remove unused imports in eo/eot files 2020-04-19 01:44:50 +02:00
efl_canvas_gesture_momentum.c efl/gesture: remove empty efl.object implementations from gesture objects 2020-03-03 10:54:23 +01:00
efl_canvas_gesture_momentum.eo efl/gesture: remove empty efl.object implementations from gesture objects 2020-03-03 10:54:23 +01:00
efl_canvas_gesture_private.h efl/gesture: port 'rotate' gesture from elm to new gesture framework 2020-03-03 10:54:28 +01:00
efl_canvas_gesture_recognizer.c efl/gesture: move some internal recognizer functions to be reusable 2020-03-03 10:54:27 +01:00
efl_canvas_gesture_recognizer.eo efl/gesture: rework custom gesture recognizer methodology 2020-02-14 09:21:15 +01:00
efl_canvas_gesture_recognizer_custom.c efl/gesture: rework custom gesture recognizer methodology 2020-02-14 09:21:15 +01:00
efl_canvas_gesture_recognizer_custom.eo efl/gesture: improve docs 2020-02-14 09:21:12 +01:00
efl_canvas_gesture_recognizer_double_tap.c efl/gesture: correctly filter tap events based on the processing touch point 2020-03-03 10:54:31 +01:00
efl_canvas_gesture_recognizer_double_tap.eo efl/gesture: remove bespoke recognizer properties for tap timeout 2020-02-14 09:21:09 +01:00
efl_canvas_gesture_recognizer_flick.c evas: resolve float compare warnings 2020-05-12 16:10:02 +02:00
efl_canvas_gesture_recognizer_flick.eo efl/gesture: rework gesture_recognizer::add to be a 'type' property 2020-02-14 09:20:42 +01:00
efl_canvas_gesture_recognizer_long_press.c efl/gesture: correctly filter tap events based on the processing touch point 2020-03-03 10:54:31 +01:00
efl_canvas_gesture_recognizer_long_press.eo efl/gesture: rename long_tap -> long_press 2020-03-03 10:54:26 +01:00
efl_canvas_gesture_recognizer_momentum.c efl/gesture: fix momentum gesture recognizer to properly continue its gestures 2020-03-03 10:54:32 +01:00
efl_canvas_gesture_recognizer_momentum.eo efl/gesture: rework gesture_recognizer::add to be a 'type' property 2020-02-14 09:20:42 +01:00
efl_canvas_gesture_recognizer_rotate.c efl/gesture: port 'rotate' gesture from elm to new gesture framework 2020-03-03 10:54:28 +01:00
efl_canvas_gesture_recognizer_rotate.eo efl/gesture: port 'rotate' gesture from elm to new gesture framework 2020-03-03 10:54:28 +01:00
efl_canvas_gesture_recognizer_tap.c efl/gesture: correctly filter tap events based on the processing touch point 2020-03-03 10:54:31 +01:00
efl_canvas_gesture_recognizer_tap.eo efl/gesture: rework gesture_recognizer::add to be a 'type' property 2020-02-14 09:20:42 +01:00
efl_canvas_gesture_recognizer_triple_tap.c efl/gesture: correctly filter tap events based on the processing touch point 2020-03-03 10:54:31 +01:00
efl_canvas_gesture_recognizer_triple_tap.eo efl/gesture: remove bespoke recognizer properties for tap timeout 2020-02-14 09:21:09 +01:00
efl_canvas_gesture_recognizer_zoom.c evas: resolve float compare warnings 2020-05-12 16:10:02 +02:00
efl_canvas_gesture_recognizer_zoom.eo efl/gesture: rework gesture_recognizer::add to be a 'type' property 2020-02-14 09:20:42 +01:00
efl_canvas_gesture_rotate.c efl/gesture: port 'rotate' gesture from elm to new gesture framework 2020-03-03 10:54:28 +01:00
efl_canvas_gesture_rotate.eo efl/gesture: port 'rotate' gesture from elm to new gesture framework 2020-03-03 10:54:28 +01:00
efl_canvas_gesture_tap.c efl/gesture: remove empty efl.object implementations from gesture objects 2020-03-03 10:54:23 +01:00
efl_canvas_gesture_tap.eo efl/gesture: remove empty efl.object implementations from gesture objects 2020-03-03 10:54:23 +01:00
efl_canvas_gesture_touch.c efl/gesture: api renames for Efl.Canvas.Gesture_Touch 2020-02-14 09:21:03 +01:00
efl_canvas_gesture_touch.eo remove unused imports in eo/eot files 2020-04-19 01:44:50 +02:00
efl_canvas_gesture_triple_tap.c efl/gesture: remove empty efl.object implementations from gesture objects 2020-03-03 10:54:23 +01:00
efl_canvas_gesture_triple_tap.eo efl/gesture: remove empty efl.object implementations from gesture objects 2020-03-03 10:54:23 +01:00
efl_canvas_gesture_types.eot remove unused imports in eo/eot files 2020-04-19 01:44:50 +02:00
efl_canvas_gesture_zoom.c efl/gesture: remove empty efl.object implementations from gesture objects 2020-03-03 10:54:23 +01:00
efl_canvas_gesture_zoom.eo efl/gesture: remove empty efl.object implementations from gesture objects 2020-03-03 10:54:23 +01:00
meson.build evas: Rename EAPI macro to EVAS_API in Evas library 2020-12-15 23:06:12 -03:00