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.
This commit is contained in:
Cedric BAIL 2016-04-13 15:55:31 -07:00
parent a73ca351de
commit 4c92120457
2 changed files with 82 additions and 0 deletions

View File

@ -5483,6 +5483,7 @@ doc/Doxyfile
doc/previews/Makefile
doc/widgets/Makefile
src/Makefile
src/lib/evil/Makefile
src/benchmarks/eina/Makefile
src/benchmarks/eo/Makefile
src/benchmarks/evas/Makefile

81
src/lib/evil/Makefile.am Normal file
View File

@ -0,0 +1,81 @@
if HAVE_WINDOWS
### Library
lib_LTLIBRARIES = libevil.la
install_evilheadersdir = $(includedir)/evil-@VMAJ@
dist_install_evilheaders_DATA = \
Evil.h \
evil_dlfcn.h \
evil_fcntl.h \
evil_inet.h \
evil_langinfo.h \
evil_locale.h \
evil_macro.h \
evil_macro_pop.h \
evil_macro_wrapper.h \
evil_main.h \
evil_stdio.h \
evil_stdlib.h \
evil_string.h \
evil_time.h \
evil_unistd.h \
evil_util.h \
dirent.h \
fnmatch.h \
pwd.h
evilmmanheadersdir = $(includedir)/evil-@VMAJ@/sys
dist_evilmmanheaders_DATA = \
sys/mman.h
libevil_la_SOURCES = \
evil_dirent.c \
evil_dlfcn.c \
evil_fcntl.c \
evil_fnmatch.c \
evil_fnmatch_list_of_states.c \
evil_inet.c \
evil_langinfo.c \
evil_locale.c \
evil_link_xp.cpp \
evil_main.c \
evil_mman.c \
evil_pwd.c \
evil_stdio.c \
evil_stdlib.c \
evil_string.c \
evil_time.c \
evil_unistd.c \
evil_util.c \
evil_private.h \
evil_fnmatch_private.h
libevil_la_CPPFLAGS = @EVIL_CPPFLAGS@
libevil_la_CFLAGS = @EVIL_CFLAGS@ @EVIL_CFLAGS_WRN@ -D__USE_MINGW_ANSI_STDIO
libevil_la_CXXFLAGS = @EVIL_CXXFLAGS@ @EVIL_CFLAGS@
libevil_la_LIBADD = @EVIL_SUBBUILD_LIBS@
libevil_la_LDFLAGS = @EFL_LTLIBRARY_FLAGS@
# regex
dist_install_evilheaders_DATA += \
regex/regex.h
libevil_la_SOURCES += \
regex/regcomp.c \
regex/regerror.c \
regex/regexec.c \
regex/regfree.c \
regex/cclass.h \
regex/cname.h \
regex/regex2.h \
regex/utils.h
libevil_la_CPPFLAGS += \
-I$(top_srcdir)/src/lib/evil \
-I$(top_srcdir)/src/lib/evil/regex \
-DPOSIX_MISTAKE
endif