]> git.lyx.org Git - lyx.git/commitdiff
Make windres configurable
authorGeorg Baum <baum@lyx.org>
Thu, 5 May 2016 18:13:56 +0000 (20:13 +0200)
committerRichard Heck <rgheck@lyx.org>
Sun, 29 May 2016 21:55:43 +0000 (17:55 -0400)
The windres program is typically not called windres for cross compilation.
Now you can call configure with the argument
WINDRES=x86_64-w64-mingw32-windres
in order to use the windres program on a standard debian installation.

configure.ac
src/Makefile.am

index 3b1a900ddb82522bc6dc9839c5a4ac98593764ab..0cc706c60ec71370129c0f2389788cd96324f69f 100644 (file)
@@ -117,6 +117,8 @@ AC_CHECK_LIB(psapi, main, [LIBPSAPI=-lpsapi])
 AC_SUBST(LIBPSAPI)
 AC_CHECK_LIB(gdi32, main)
 AC_CHECK_LIB(ole32, main)
+test x"$WINDRES" = x && WINDRES=windres
+AC_SUBST(WINDRES)
 
 LYX_USE_INCLUDED_BOOST
 LYX_USE_INCLUDED_MYTHES
index 8166b11ff43afee288cd151316190eac43ead291..57f66d90701187c78bf74056d280cc2b3f13af0b 100644 (file)
@@ -42,7 +42,7 @@ lyx_LDADD = \
 if LYX_WIN_RESOURCE
 .rc.o:
        cp $(top_srcdir)/development/Win32/packaging/icons/lyx_*32x32.ico .
-       windres -I$(top_builddir) --preprocessor "$(CPP) -xc-header -DRC_INVOKED" $< -o $@
+       $(WINDRES) -I$(top_builddir) --preprocessor "$(CPP) -xc-header -DRC_INVOKED" $< -o $@
 endif
 
 if INSTALL_MACOSX