Skip to content

Commit

Permalink
Windows/Mingw support: set appropriate compile-time paths for Windows
Browse files Browse the repository at this point in the history
On Windows we cannot use generated absolute paths based on the
installation prefix, so use relative paths instead.
  • Loading branch information
eht16 committed Feb 27, 2016
1 parent 5f4e4ef commit 6f5b1fd
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions build/vars.build.mk
@@ -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)

Expand Down

0 comments on commit 6f5b1fd

Please sign in to comment.