[geany/geany-plugins] 6f5b1f: Windows/Mingw support: set appropriate compile-time paths for Windows

Enrico Tröger git-noreply at xxxxx
Sat Feb 27 12:23:19 UTC 2016


Branch:      refs/heads/master
Author:      Enrico Tröger <enrico.troeger at uvena.de>
Committer:   Enrico Tröger <enrico.troeger at uvena.de>
Date:        Sat, 27 Feb 2016 12:23:19 UTC
Commit:      6f5b1fd27e373bf6ec49f6407f48fdd50ad6706b
             https://github.com/geany/geany-plugins/commit/6f5b1fd27e373bf6ec49f6407f48fdd50ad6706b

Log Message:
-----------
Windows/Mingw support: set appropriate compile-time paths for Windows

On Windows we cannot use generated absolute paths based on the
installation prefix, so use relative paths instead.


Modified Paths:
--------------
    build/vars.build.mk

Modified: build/vars.build.mk
19 lines changed, 17 insertions(+), 2 deletions(-)
===================================================================
@@ -1,13 +1,28 @@
-AM_CFLAGS = \
+if MINGW
+LOCAL_AM_CFLAGS = \
+	-DLOCALEDIR=\""share/locale"\" \
+	-DPREFIX=\"\" \
+	-DDOCDIR=\"\" \
+	-DGEANYPLUGINS_DATADIR=\"share\" \
+	-DPKGDATADIR=\""share/geany-plugins"\" \
+	-DLIBDIR=\""lib"\" \
+	-DPKGLIBDIR=\"\"
+else
+LOCAL_AM_CFLAGS = \
 	-DLOCALEDIR=\""$(LOCALEDIR)"\" \
 	-DPREFIX=\""$(prefix)"\" \
 	-DDOCDIR=\""$(docdir)"\" \
 	-DGEANYPLUGINS_DATADIR=\""$(datadir)"\" \
 	-DPKGDATADIR=\""$(pkgdatadir)"\" \
 	-DLIBDIR=\""$(libdir)"\" \
-	-DPKGLIBDIR=\""$(pkglibdir)"\" \
+	-DPKGLIBDIR=\""$(pkglibdir)"\"
+endif
+
+AM_CFLAGS = \
+	${LOCAL_AM_CFLAGS} \
 	$(GEANY_CFLAGS) \
 	$(GP_CFLAGS)
+	
 
 AM_LDFLAGS = -module -avoid-version -no-undefined $(GP_LDFLAGS)
 



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Plugins-Commits mailing list