Evas: remove Evil.h when not needed and use evil_private when needed

Test Plan: compilation

Reviewers: zmike, raster, cedric

Reviewed By: zmike

Subscribers: #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D8921
This commit is contained in:
Vincent Torri 2019-05-20 08:46:02 -04:00 committed by Mike Blumenkrantz
parent 41866a8855
commit 24e4881efb
25 changed files with 18 additions and 72 deletions

View File

@ -8,10 +8,6 @@
#include <sys/stat.h> #include <sys/stat.h>
#include <errno.h> #include <errno.h>
#ifdef _WIN32
# include <Evil.h>
#endif
#include "evas_common_private.h" #include "evas_common_private.h"
#include "evas_private.h" #include "evas_private.h"

View File

@ -1,9 +1,6 @@
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
# include <config.h> # include <config.h>
#endif #endif
#ifdef _WIN32
# include <Evil.h>
#endif
#ifdef __linux__ #ifdef __linux__
# include <sys/syscall.h> # include <sys/syscall.h>
#endif #endif

View File

@ -7,7 +7,8 @@
#ifdef _WIN32 #ifdef _WIN32
# include <winsock2.h> # include <winsock2.h>
#endif /* ! _WIN32 */ # include <evil_private.h> /* fcntl */
#endif
#include <fcntl.h> #include <fcntl.h>

View File

@ -3,7 +3,7 @@
#endif #endif
#ifdef _WIN32 #ifdef _WIN32
# include <Evil.h> # include <evil_private.h> /* evil_path_is_absolute */
#endif #endif
#include <Eet.h> #include <Eet.h>

View File

@ -10,6 +10,10 @@
#include "eo_internal.h" #include "eo_internal.h"
#ifdef _WIN32
# include <evil_private.h> /* evil_init evil_shutdown */
#endif
#include <Ecore.h> #include <Ecore.h>
#define EFL_INTERNAL_UNSTABLE #define EFL_INTERNAL_UNSTABLE

View File

@ -3,7 +3,7 @@
#endif #endif
#ifdef _WIN32 #ifdef _WIN32
# include <Evil.h> # include <windows.h>
#endif #endif
#include <assert.h> #include <assert.h>
@ -32,7 +32,7 @@ struct _ScaleitemKey
int src_x, src_y; int src_x, src_y;
unsigned int src_w, src_h; unsigned int src_w, src_h;
unsigned int dst_w, dst_h; unsigned int dst_w, dst_h;
Eina_Bool smooth : 1; Eina_Bool smooth : 1;
}; };
struct _Scaleitem struct _Scaleitem

View File

@ -29,10 +29,6 @@
# define dgettext(domain, x) (x) # define dgettext(domain, x) (x)
#endif #endif
#ifdef _WIN32
# include <Evil.h>
#endif
#include <Eina.h> #include <Eina.h>
#include "evas_language_utils.h" #include "evas_language_utils.h"

View File

@ -17,7 +17,7 @@
#include <sys/param.h> #include <sys/param.h>
#ifdef _WIN32 #ifdef _WIN32
# include <Evil.h> # include <evil_private.h> /* evil_path_is_absolute */
#endif #endif
#include "evas_common_private.h" #include "evas_common_private.h"

View File

@ -24,10 +24,6 @@
#include <stdint.h> #include <stdint.h>
#include <unistd.h> #include <unistd.h>
#ifdef _WIN32
# include <Evil.h>
#endif
#ifdef HAVE_ESCAPE #ifdef HAVE_ESCAPE
# include <Escape.h> # include <Escape.h>
#endif #endif

View File

@ -14,6 +14,10 @@
# include <dlfcn.h> /* dlopen,dlclose,etc */ # include <dlfcn.h> /* dlopen,dlclose,etc */
#endif #endif
#ifdef _WIN32
# include <evil_private.h> /* dlsym */
#endif
#if defined HAVE_DLSYM #if defined HAVE_DLSYM
# define EVAS_GL 1 # define EVAS_GL 1
# define EVAS_GL_NO_GL_H_CHECK 1 # define EVAS_GL_NO_GL_H_CHECK 1

View File

@ -4,6 +4,8 @@
#if defined HAVE_DLSYM && ! defined _WIN32 #if defined HAVE_DLSYM && ! defined _WIN32
# include <dlfcn.h> /* dlopen,dlclose,etc */ # include <dlfcn.h> /* dlopen,dlclose,etc */
#elif _WIN32
# include <evil_private.h> /* dlopen dlclose dlsym */
#else #else
# warning native_dmabuf should not get compiled if dlsym is not found on the system! # warning native_dmabuf should not get compiled if dlsym is not found on the system!
#endif #endif

View File

@ -4,6 +4,8 @@
#if defined HAVE_DLSYM && ! defined _WIN32 #if defined HAVE_DLSYM && ! defined _WIN32
# include <dlfcn.h> /* dlopen,dlclose,etc */ # include <dlfcn.h> /* dlopen,dlclose,etc */
#elif _WIN32
# include <evil_private.h> /* dlopen dlclose dlsym */
#else #else
# warning native_tbm should not get compiled if dlsym is not found on the system! # warning native_tbm should not get compiled if dlsym is not found on the system!
#endif #endif

View File

@ -4,10 +4,6 @@
#include <stdio.h> #include <stdio.h>
#ifdef _WIN32
# include <Evil.h>
#endif
#include <math.h> #include <math.h>
#include "evas_common_private.h" #include "evas_common_private.h"

View File

@ -2,10 +2,6 @@
# include "config.h" # include "config.h"
#endif #endif
#ifdef _WIN32
# include <Evil.h>
#endif
#include "evas_common_private.h" #include "evas_common_private.h"
#include "evas_private.h" #include "evas_private.h"

View File

@ -4,10 +4,6 @@
#include <stdio.h> #include <stdio.h>
#ifdef _WIN32
# include <Evil.h>
#endif
#include "evas_common_private.h" #include "evas_common_private.h"
#include "evas_private.h" #include "evas_private.h"

View File

@ -4,10 +4,6 @@
#include <stdio.h> #include <stdio.h>
#ifdef _WIN32
# include <Evil.h>
#endif
#include <openjpeg.h> #include <openjpeg.h>
#include "Evas_Loader.h" #include "Evas_Loader.h"

View File

@ -2,10 +2,6 @@
# include <config.h> # include <config.h>
#endif #endif
#ifdef _WIN32
# include <Evil.h>
#endif
#include "evas_common_private.h" #include "evas_common_private.h"
#include "evas_private.h" #include "evas_private.h"

View File

@ -6,10 +6,6 @@
#include <png.h> #include <png.h>
#include <setjmp.h> #include <setjmp.h>
#ifdef _WIN32
# include <Evil.h>
#endif
#include "evas_common_private.h" #include "evas_common_private.h"
#include "evas_private.h" #include "evas_private.h"

View File

@ -19,10 +19,6 @@
# include <netinet/in.h> # include <netinet/in.h>
#endif #endif
#ifdef _WIN32
# include <Evil.h>
#endif
#include "evas_common_private.h" #include "evas_common_private.h"
#include "evas_private.h" #include "evas_private.h"

View File

@ -6,10 +6,6 @@
#include <sys/types.h> #include <sys/types.h>
#include <fcntl.h> #include <fcntl.h>
#ifdef _WIN32
# include <Evil.h>
#endif
#include "evas_common_private.h" #include "evas_common_private.h"
#include "evas_private.h" #include "evas_private.h"

View File

@ -7,10 +7,6 @@
#include <unistd.h> #include <unistd.h>
#include <tiffio.h> #include <tiffio.h>
#ifdef _WIN32
# include <Evil.h>
#endif
#include "evas_common_private.h" #include "evas_common_private.h"
#include "evas_private.h" #include "evas_private.h"

View File

@ -4,10 +4,6 @@
#include <stdio.h> #include <stdio.h>
#ifdef _WIN32
# include <Evil.h>
#endif
#include "evas_common_private.h" #include "evas_common_private.h"
#include "evas_private.h" #include "evas_private.h"

View File

@ -6,10 +6,6 @@
#include <string.h> #include <string.h>
#include <webp/decode.h> #include <webp/decode.h>
#ifdef _WIN32
# include <Evil.h>
#endif
#include "evas_common_private.h" #include "evas_common_private.h"
#include "evas_private.h" #include "evas_private.h"

View File

@ -2,10 +2,6 @@
# include <config.h> # include <config.h>
#endif #endif
#ifdef _WIN32
# include <Evil.h>
#endif
#include "evas_common_private.h" #include "evas_common_private.h"
#include "evas_private.h" #include "evas_private.h"

View File

@ -6,10 +6,6 @@
#include <png.h> #include <png.h>
#include <setjmp.h> #include <setjmp.h>
#ifdef _WIN32
# include <Evil.h>
#endif
#include "evas_common_private.h" #include "evas_common_private.h"
#include "evas_private.h" #include "evas_private.h"