Windows build
This commit is contained in:
parent
67f409dd99
commit
b7ab605c09
19
configure.ac
19
configure.ac
@ -34,16 +34,25 @@ AS_IF([test "x$enable_build_tests" = "xyes"], [
|
||||
|
||||
AM_CONDITIONAL(BUILD_TESTS, test "x$enable_build_tests" = "xyes")
|
||||
|
||||
|
||||
|
||||
PKG_CHECK_MODULES(LIBUUID, [uuid])
|
||||
|
||||
PKG_CHECK_MODULES(OPENSSL, [openssl])
|
||||
|
||||
PKG_CHECK_MODULES(LIBTDATA, [libtdata >= 0.2.2])
|
||||
PKG_CHECK_MODULES(LIBSEXPR, [libsexpr >= 1.3.1])
|
||||
|
||||
AM_CONDITIONAL(BUILD_WIN32, test "x$enable_win32_build" = "xyes")
|
||||
case $host_os in
|
||||
linux*) WIN32=no
|
||||
LINUX=yes
|
||||
PKG_CHECK_MODULES(LIBUUID, [uuid]);;
|
||||
mingw*) WIN32=yes
|
||||
LINUX=no;;
|
||||
msys*) WIN32=yes
|
||||
LINUX=no;;
|
||||
esac
|
||||
|
||||
|
||||
AM_CONDITIONAL(COND_WIN32, test x$WIN32=xyes)
|
||||
|
||||
dnl AM_CONDITIONAL(BUILD_WIN32, test "x$enable_win32_build" = "xyes")
|
||||
|
||||
|
||||
AC_OUTPUT([
|
||||
|
@ -10,15 +10,15 @@ AM_CPPFLAGS = \
|
||||
|
||||
AM_CFLAGS = -Wall -g
|
||||
|
||||
if !BUILD_WIN32
|
||||
if !COND_WIN32
|
||||
LIBS += $(ZOFFICE_LIBS)
|
||||
endif !BUILD_WIN32
|
||||
endif !COND_WIN32
|
||||
|
||||
libsntl = ../lib/.libs/libsntl.la
|
||||
|
||||
|
||||
|
||||
if !BUILD_WIN32
|
||||
if !COND_WIN32
|
||||
|
||||
bin_PROGRAMS = sntlc sntld gentest
|
||||
|
||||
@ -34,7 +34,7 @@ gentest_SOURCES = gentest.c
|
||||
gentest_LDADD = $(LIBTDATA_LIBS) $(LIBSEXPR_LIBS) $(OPENSSL_LIBS) \
|
||||
$(LIBUUID_LIBS) $(libsntl)
|
||||
|
||||
else BUILD_WIN32
|
||||
else COND_WIN32
|
||||
|
||||
bin_PROGRAMS = sntlc
|
||||
|
||||
@ -42,7 +42,7 @@ sntlc_SOURCES = sntlc.c
|
||||
sntlc_LDADD = $(LIBTDATA_LIBS) $(LIBSEXPR_LIBS) $(OPENSSL_LIBS) \
|
||||
$(LIBUUID_LIBS) $(libsntl) -lws2_32
|
||||
|
||||
endif BUILD_WIN32
|
||||
endif COND_WIN32
|
||||
|
||||
#zsyncd_LDFLAGS = \
|
||||
# -Wl,--export-dynamic
|
||||
|
@ -18,13 +18,16 @@ libsxmp_la_SOURCES = \
|
||||
|
||||
libsxmp_la_LDFLAGS =
|
||||
|
||||
libsxmp_la_LIBADD = -lpthread -lcrypto $(LIBTDATA_LIBS) $(LIBSEXPR_LIBS) $(OPENSSL_LIBS)
|
||||
libsxmp_la_LIBADD = -lpthread -lcrypto $(OPENSSL_LIBS)
|
||||
|
||||
if COND_WIN32
|
||||
|
||||
libtdata_la_LDFLAGS = -no-undefined
|
||||
libsxmp_la_LIBADD += -lmman -luuid /mingw64/lib/libsexpr.a /mingw64/lib/libtdata.a
|
||||
|
||||
if BUILD_WIN32
|
||||
libsxmp_la_LIBADD += -luuid
|
||||
else
|
||||
libsxmp_la_LIBADD += $(LIBUUID_LIBS)
|
||||
endif !BUILD_WIN32
|
||||
libsxmp_la_LIBADD += $(LIBTDATA_LIBS) $(LIBSEXPR_LIBS) $(LIBUUID_LIBS)
|
||||
endif !COND_WIN32
|
||||
|
||||
pkgconfigdir = $(libdir)/pkgconfig
|
||||
pkgconfig_DATA = libsxmp.pc
|
||||
|
@ -13,7 +13,7 @@ AM_CFLAGS = -Wall -g
|
||||
# where to find libsntl
|
||||
libsntl = ../lib/.libs/libsntl.la
|
||||
|
||||
if !BUILD_WIN32
|
||||
if !COND_WIN32
|
||||
|
||||
bin_PROGRAMS = lv2sd lv2sc lv2ftpd lv2ftpc
|
||||
|
||||
@ -34,7 +34,7 @@ lv2ftpc_LDADD = $(LIBTDATA_LIBS) $(LIBSEXPR_LIBS) $(OPENSSL_LIBS) \
|
||||
$(LIBUUID_LIBS) $(libsntl) -lpthread
|
||||
|
||||
|
||||
else BUILD_WIN32
|
||||
else COND_WIN32
|
||||
|
||||
bin_PROGRAMS = lv2sc
|
||||
|
||||
@ -42,5 +42,5 @@ lv2sc_SOURCES = lv2sc.c
|
||||
lv2sc_LDADD = $(LIBTDATA_LIBS) $(LIBSEXPR_LIBS) $(OPENSSL_LIBS) \
|
||||
$(LIBUUID_LIBS) $(libsntl) -lws2_32
|
||||
|
||||
endif BUILD_WIN32
|
||||
endif COND_WIN32
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user