summaryrefslogtreecommitdiff
path: root/src/lib/evil
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2018-12-04 20:38:07 +0100
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2018-12-07 13:05:31 +0100
commit500a36ba3d3d00ed292ed3e85bb9ac40a55bd2a9 (patch)
treed19bbb3272cf471ccda916cf4dc86e0250171392 /src/lib/evil
parent79ded15ad3c0074e1d378cc5a0accad2399fcc24 (diff)
meson: add inital support for windows compilation
Differential Revision: https://phab.enlightenment.org/D7416
Diffstat (limited to 'src/lib/evil')
-rw-r--r--src/lib/evil/meson.build69
-rw-r--r--src/lib/evil/regex/meson.build10
2 files changed, 79 insertions, 0 deletions
diff --git a/src/lib/evil/meson.build b/src/lib/evil/meson.build
new file mode 100644
index 0000000000..ff9630aa2b
--- /dev/null
+++ b/src/lib/evil/meson.build
@@ -0,0 +1,69 @@
1evil_deps = []
2evil_pub_deps = []
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.h',
11 'evil_macro_pop.h',
12 'evil_macro_wrapper.h',
13 'evil_main.h',
14 'evil_stdio.h',
15 'evil_stdlib.h',
16 'evil_string.h',
17 'evil_time.h',
18 'evil_unistd.h',
19 'evil_util.h',
20 'dirent.h',
21 'fnmatch.h',
22 'pwd.h',
23 'regex/regex.h'
24 ]
25 evil_header_sys_src = [join_paths('sys','mman.h')]
26
27 evil_src = [
28 'evil_dlfcn.c',
29 'evil_fcntl.c',
30 'evil_fnmatch.c',
31 'evil_fnmatch_list_of_states.c',
32 'evil_langinfo.c',
33 'evil_locale.c',
34 'evil_main.c',
35 'evil_mman.c',
36 'evil_pwd.c',
37 'evil_stdio.c',
38 'evil_stdlib.c',
39 'evil_string.c',
40 'evil_time.c',
41 'evil_unistd.c',
42 'evil_util.c',
43 'evil_private.h',
44 'evil_fnmatch_private.h',
45 ]
46
47 subdir('regex')
48
49 psapi = cc.find_library('psapi')
50 ole32 = cc.find_library('ole32')
51 ws2_32 = cc.find_library('ws2_32')
52 secur32 = cc.find_library('secur32')
53 uuid = cc.find_library('uuid')
54 msvcr100 = cc.find_library('msvcr100')
55
56 evil_lib = library('evil', evil_src,
57 dependencies : [psapi, ole32, ws2_32, secur32, uuid, msvcr100],
58 include_directories : [config_dir, include_directories('regex')],
59 )
60
61 evil = declare_dependency(
62 include_directories: [config_dir, include_directories('regex'), include_directories('.')],
63 dependencies : [psapi, ole32, ws2_32, secur32, uuid, msvcr100],
64 link_with: evil_lib,
65 )
66else
67 evil = declare_dependency()
68 automatic_pkgfile = false
69endif
diff --git a/src/lib/evil/regex/meson.build b/src/lib/evil/regex/meson.build
new file mode 100644
index 0000000000..d04769b72d
--- /dev/null
+++ b/src/lib/evil/regex/meson.build
@@ -0,0 +1,10 @@
1evil_src += files([
2'regcomp.c',
3'regerror.c',
4'regexec.c',
5'regfree.c',
6'cclass.h',
7'cname.h',
8'regex2.h',
9'utils.h'
10])