Makefile.am 674 B

12345678910111213141516171819202122
  1. AUTOMAKE_OPTIONS = subdir-objects
  2. all:
  3. if MINGW
  4. gitrev="$(shell git --git-dir=${abs_top_srcdir}/.git --work-tree=${abs_top_srcdir} describe --always --tags | sed s/^v//)"
  5. .PHONY: winsetup
  6. Plugins/x86-unicode/INetC.dll:
  7. curl -OsS https://nsis.sourceforge.io/mediawiki/images/c/c9/Inetc.zip
  8. unzip Inetc.zip $@
  9. winpath.exe: winpath.cpp
  10. x86_64-w64-mingw32-g++ -Os -o $@ $<
  11. x86_64-w64-mingw32-strip --strip-unneeded $@
  12. winsetup: Plugins/x86-unicode/INetC.dll winpath.exe
  13. makensis -DCROSSBUILD -DSHARED -DSIGNCODE=$(SIGNCODE) -DSRCDIR=$(top_srcdir) -DVERSION=${gitrev} $(shell test "$(host_cpu)" = x86_64 && echo "-DW64") -NOCD $(top_srcdir)/nsis/tesseract.nsi
  14. endif