summaryrefslogtreecommitdiff
path: root/src/lib/evil
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2019-09-05 09:21:10 +0000
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2019-09-05 13:20:36 +0200
commit9736541957927d2d77e4e5bd55aac46cb0d34240 (patch)
treea902f909cc7442ceefdb37ebea59c803a1b96eb6 /src/lib/evil
parentf2937018910751a73bcf87448785d6f688e374a4 (diff)
Evil: remove installation of header and pc files, remove from git Evil.h
this patch finishes to remove Evil public headers Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D9847
Diffstat (limited to 'src/lib/evil')
-rw-r--r--src/lib/evil/Evil.h161
-rw-r--r--src/lib/evil/meson.build19
2 files changed, 2 insertions, 178 deletions
diff --git a/src/lib/evil/Evil.h b/src/lib/evil/Evil.h
deleted file mode 100644
index 147e45a..0000000
--- a/src/lib/evil/Evil.h
+++ /dev/null
@@ -1,161 +0,0 @@
1#ifndef __EVIL_H__
2#define __EVIL_H__
3
4/**
5 * @file Evil.h
6 * @brief The file that provides miscellaneous functions ported from Unix.
7 */
8
9/**
10 * @page evil_main Evil
11 * @author Vincent Torri
12 * @date 2008 (created)
13 *
14 * @section toc Table of Contents
15 *
16 * @li @ref evil_main_intro
17 * @li @ref evil_main_ack
18 * @li @ref evil_main_compiling
19 * @li @ref evil_main_next_steps
20 *
21 * @section evil_main_intro Introduction
22 *
23 * The Evil library is an evil library that ports some evil Unix
24 * functions to the Windows (XP or above, or Mobile) platform. The
25 * evilness is so huge that the most of the functions are not POSIX or
26 * BSD compliant.
27 *
28 * These functions are intended to be used in the Enlightenment
29 * Foundation Libraries only and can be compiled only on Windows,
30 * using MSYS/MinGW on Windows, and cross-compilation on Unix. This
31 * library is minimal in the sense that only the functions needed to
32 * compile the EFL are available. The purpose of this library is NOT
33 * to have a full POSIX emulation et it is NOT a replacement of
34 * cygwin. To compare the size of the DLL themselves, Evil is around
35 * 33 KB and cygwin DLL is around 800 KB.
36 *
37 * @section evil_main_ack Acknowledgments
38 *
39 * This library has receive some from people interested in the EFL or
40 * not. Among them, evil thanks to Lars Munch, Raoul Hecky, Nicolas
41 * Aguirre, Tor Lillqvist, Lance Fetters, Vincent Richomme, Paul
42 * Vixie, Daniel Stenberg, who helped the author of the library in
43 * different fields (code and tests).
44 *
45 * @section evil_main_compiling How to compile
46 *
47 * Evil is a library your application links to. The procedure for
48 * this is very simple. You simply have to compile your application
49 * with the appropriate compiler flags that the @p pkg-config script
50 * outputs. For example:
51 *
52 * Compiling C or C++ files into object files:
53 *
54 * @verbatim
55 gcc -c -o main.o main.c `pkg-config --cflags evil`
56 @endverbatim
57 *
58 * Linking object files into a binary executable:
59 *
60 * @verbatim
61 gcc -o my_application main.o `pkg-config --libs evil`
62 @endverbatim
63 *
64 * See @ref pkgconfig
65 *
66 * @section evil_main_next_steps Next Steps
67 *
68 * After you understood what Evil is and installed it in your system
69 * you should proceed understanding the programming interface.
70 *
71 * Recommended reading:
72 *
73 * @li @ref Evil_Mman
74 * @li @ref Evil_Unistd_Group
75 * @li @ref Evil_Dlfcn
76 * @li @ref Evil_Langinfo_Group
77 * @li @ref Evil_Locale_Group
78 * @li @ref Evil_Stdio_Group
79 * @li @ref Evil_Main_Group
80 * @li @ref Evil_String_Group
81 * @li @ref Evil_Stdlib_Group
82 * @li @ref Evil_Time_Group
83 */
84
85/**
86 * @cond LOCAL
87 */
88
89#ifdef __cplusplus
90extern "C" {
91#endif
92
93
94#ifdef _MSC_VER
95# ifdef _WIN64
96typedef __int64 pid_t;
97# else
98typedef int pid_t;
99# endif
100typedef SSIZE_T ssize_t;
101typedef unsigned short mode_t;
102# define strdup(str) _strdup(str)
103#endif
104
105#ifndef S_ISDIR
106# define S_ISDIR(m) (((m) & _S_IFMT) == _S_IFDIR)
107#endif
108
109#ifndef S_ISREG
110# define S_ISREG(m) (((m) & _S_IFMT) == _S_IFREG)
111#endif
112
113#define S_ISLNK(m) 0
114
115#define S_IRUSR _S_IRUSR
116#ifndef S_IRGRP
117# define S_IRGRP S_IRUSR
118#endif
119#ifndef S_IROTH
120# define S_IROTH S_IRUSR
121#endif
122
123#define S_IWUSR _S_IWUSR
124#ifndef S_IWGRP
125# define S_IWGRP S_IWUSR
126#endif
127#ifndef S_IWOTH
128# define S_IWOTH S_IWUSR
129#endif
130
131#define S_IXUSR _S_IXUSR
132#ifndef S_IXGRP
133# define S_IXGRP S_IXUSR
134#endif
135#ifndef S_IXOTH
136# define S_IXOTH S_IXUSR
137#endif
138
139#define _S_IRWXU (_S_IREAD | _S_IWRITE | _S_IEXEC)
140#ifndef S_IRWXG
141# define S_IRWXG _S_IRWXU
142#endif
143#ifndef S_IRWXO
144# define S_IRWXO _S_IRWXU
145#endif
146
147#define _S_IXUSR _S_IEXEC
148#define _S_IWUSR _S_IWRITE
149#define _S_IRUSR _S_IREAD
150
151#include "evil_private.h"
152
153#ifdef __cplusplus
154}
155#endif
156
157/**
158 * @endcond
159 */
160
161#endif /* __EVIL_H__ */
diff --git a/src/lib/evil/meson.build b/src/lib/evil/meson.build
index 7877c7f..008fc9f 100644
--- a/src/lib/evil/meson.build
+++ b/src/lib/evil/meson.build
@@ -1,22 +1,6 @@
1evil_deps = [] 1evil_deps = []
2evil_pub_deps = [] 2evil_pub_deps = []
3if target_machine.system() == 'windows' 3if target_machine.system() == 'windows'
4 evil_header_src = [
5 'Evil.h',
6 'evil_dlfcn.h',
7 'evil_fcntl.h',
8 'evil_langinfo.h',
9 'evil_locale.h',
10 'evil_macro_wrapper.h',
11 'evil_main.h',
12 'evil_stdio.h',
13 'evil_stdlib.h',
14 'evil_string.h',
15 'evil_time.h',
16 'evil_unistd.h',
17 'evil_util.h',
18 ]
19
20 evil_src = [ 4 evil_src = [
21 'evil_dlfcn.c', 5 'evil_dlfcn.c',
22 'evil_fcntl.c', 6 'evil_fcntl.c',
@@ -53,5 +37,6 @@ if target_machine.system() == 'windows'
53 ) 37 )
54else 38else
55 evil = declare_dependency() 39 evil = declare_dependency()
56 automatic_pkgfile = false
57endif 40endif
41
42automatic_pkgfile = false \ No newline at end of file