diff options
author | Cedric BAIL <cedric@osg.samsung.com> | 2016-04-13 15:55:31 -0700 |
---|---|---|
committer | Cedric BAIL <cedric@osg.samsung.com> | 2016-04-14 15:52:50 -0700 |
commit | 4c921204575a8bc96d9449810ab963d0461c6152 (patch) | |
tree | 4315118990d0fc30551e288203d5aa9d6cebcac9 /src/lib | |
parent | a73ca351de75ae39743db6bbe1a89243988ba970 (diff) |
evil: make it possible to build the library alone.
So I have been battling with autotools on this for a full week now,
and what we want is basically impossible. A.k.a. one file definition
and possibility to do a full build or just a partial build of efl.
Even moving to just partial build require to land a massive patch that
change everything in our build system and this is just not a road I
want to take.
For reference, if one day automake allow the use of any kind of variable
(autoconf AC_SUBST expansion or $()) in the _SOURCES parameter, it will
be possible to fix. Alternatively if they allow to build subdirectory
before they do BUILT_SOURCE, it would make it possible to incrementaly
move to only partial build. In the mean time, a less problematic solution
is to duplicate source code.
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/evil/Makefile.am | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/src/lib/evil/Makefile.am b/src/lib/evil/Makefile.am new file mode 100644 index 0000000..2ac122f --- /dev/null +++ b/src/lib/evil/Makefile.am | |||
@@ -0,0 +1,81 @@ | |||
1 | if HAVE_WINDOWS | ||
2 | |||
3 | ### Library | ||
4 | |||
5 | lib_LTLIBRARIES = libevil.la | ||
6 | |||
7 | install_evilheadersdir = $(includedir)/evil-@VMAJ@ | ||
8 | dist_install_evilheaders_DATA = \ | ||
9 | Evil.h \ | ||
10 | evil_dlfcn.h \ | ||
11 | evil_fcntl.h \ | ||
12 | evil_inet.h \ | ||
13 | evil_langinfo.h \ | ||
14 | evil_locale.h \ | ||
15 | evil_macro.h \ | ||
16 | evil_macro_pop.h \ | ||
17 | evil_macro_wrapper.h \ | ||
18 | evil_main.h \ | ||
19 | evil_stdio.h \ | ||
20 | evil_stdlib.h \ | ||
21 | evil_string.h \ | ||
22 | evil_time.h \ | ||
23 | evil_unistd.h \ | ||
24 | evil_util.h \ | ||
25 | dirent.h \ | ||
26 | fnmatch.h \ | ||
27 | pwd.h | ||
28 | |||
29 | evilmmanheadersdir = $(includedir)/evil-@VMAJ@/sys | ||
30 | dist_evilmmanheaders_DATA = \ | ||
31 | sys/mman.h | ||
32 | |||
33 | libevil_la_SOURCES = \ | ||
34 | evil_dirent.c \ | ||
35 | evil_dlfcn.c \ | ||
36 | evil_fcntl.c \ | ||
37 | evil_fnmatch.c \ | ||
38 | evil_fnmatch_list_of_states.c \ | ||
39 | evil_inet.c \ | ||
40 | evil_langinfo.c \ | ||
41 | evil_locale.c \ | ||
42 | evil_link_xp.cpp \ | ||
43 | evil_main.c \ | ||
44 | evil_mman.c \ | ||
45 | evil_pwd.c \ | ||
46 | evil_stdio.c \ | ||
47 | evil_stdlib.c \ | ||
48 | evil_string.c \ | ||
49 | evil_time.c \ | ||
50 | evil_unistd.c \ | ||
51 | evil_util.c \ | ||
52 | evil_private.h \ | ||
53 | evil_fnmatch_private.h | ||
54 | |||
55 | libevil_la_CPPFLAGS = @EVIL_CPPFLAGS@ | ||
56 | libevil_la_CFLAGS = @EVIL_CFLAGS@ @EVIL_CFLAGS_WRN@ -D__USE_MINGW_ANSI_STDIO | ||
57 | libevil_la_CXXFLAGS = @EVIL_CXXFLAGS@ @EVIL_CFLAGS@ | ||
58 | libevil_la_LIBADD = @EVIL_SUBBUILD_LIBS@ | ||
59 | libevil_la_LDFLAGS = @EFL_LTLIBRARY_FLAGS@ | ||
60 | |||
61 | # regex | ||
62 | |||
63 | dist_install_evilheaders_DATA += \ | ||
64 | regex/regex.h | ||
65 | |||
66 | libevil_la_SOURCES += \ | ||
67 | regex/regcomp.c \ | ||
68 | regex/regerror.c \ | ||
69 | regex/regexec.c \ | ||
70 | regex/regfree.c \ | ||
71 | regex/cclass.h \ | ||
72 | regex/cname.h \ | ||
73 | regex/regex2.h \ | ||
74 | regex/utils.h | ||
75 | |||
76 | libevil_la_CPPFLAGS += \ | ||
77 | -I$(top_srcdir)/src/lib/evil \ | ||
78 | -I$(top_srcdir)/src/lib/evil/regex \ | ||
79 | -DPOSIX_MISTAKE | ||
80 | |||
81 | endif | ||