]> sigrok.org Git - libsigrokdecode.git/commitdiff
build: Do not hard-code decoders location on Windows
authorDaniel Elstner <redacted>
Sat, 3 Oct 2015 12:17:07 +0000 (14:17 +0200)
committerDaniel Elstner <redacted>
Sat, 3 Oct 2015 12:17:07 +0000 (14:17 +0200)
Makefile.am
configure.ac

index 02f76d9e63fd77aad5f3d5006ba016aa9da0c5da..cd93059a68392f8bee8d99f5323c3aaa467e2398 100644 (file)
@@ -23,7 +23,12 @@ AM_LIBTOOLFLAGS = --silent
 GNUMAKEFLAGS = --no-print-directory
 
 DECODERS_DIR = $(pkgdatadir)/decoders
+# Do not hard-code the decoders location on Windows.
+if WIN32
+AM_CPPFLAGS =
+else
 AM_CPPFLAGS = -DDECODERS_DIR='"$(DECODERS_DIR)"'
+endif
 
 # The tests CFLAGS are a superset of the libsigrokdecode CFLAGS.
 AM_CFLAGS = $(SRD_EXTRA_CFLAGS) $(SRD_WFLAGS) $(TESTS_CFLAGS)
index 53e8bc1abb660f57e1d7bb1dce9d253023a9fe18..09bfd56802356600c495fd1b456ace7b844fa0ba 100644 (file)
@@ -64,6 +64,8 @@ SR_PKG_VERSION_SET([SRD_PACKAGE_VERSION], [AC_PACKAGE_VERSION])
 # http://www.gnu.org/software/libtool/manual/libtool.html#Updating-version-info
 SR_LIB_VERSION_SET([SRD_LIB_VERSION], [2:0:0])
 
+AM_CONDITIONAL([WIN32], [test -z "${host_os##mingw*}" || test -z "${host_os##cygwin*}"])
+
 ############################
 ##  Package dependencies  ##
 ############################