2015-12-04 05:30:04 +08:00
|
|
|
AUTOMAKE_OPTIONS = subdir-objects
|
|
|
|
|
|
|
|
all:
|
|
|
|
|
|
|
|
if MINGW
|
|
|
|
|
2019-03-17 05:42:34 +08:00
|
|
|
gitrev="$(shell git --git-dir=${abs_top_srcdir}/.git --work-tree=${abs_top_srcdir} describe --always --tags | sed s/^v//)"
|
2015-12-04 05:30:04 +08:00
|
|
|
|
|
|
|
.PHONY: winsetup
|
|
|
|
|
|
|
|
Plugins/x86-unicode/INetC.dll:
|
2024-11-02 14:32:47 +08:00
|
|
|
curl -OsS https://nsis.sourceforge.io/mediawiki/images/c/c9/Inetc.zip
|
2015-12-04 05:30:04 +08:00
|
|
|
unzip Inetc.zip $@
|
|
|
|
|
|
|
|
winpath.exe: winpath.cpp
|
|
|
|
x86_64-w64-mingw32-g++ -Os -o $@ $<
|
|
|
|
x86_64-w64-mingw32-strip --strip-unneeded $@
|
|
|
|
|
|
|
|
winsetup: Plugins/x86-unicode/INetC.dll winpath.exe
|
2019-03-17 05:42:34 +08:00
|
|
|
makensis -DCROSSBUILD -DSHARED -DSIGNCODE=$(SIGNCODE) -DSRCDIR=$(top_srcdir) -DVERSION=${gitrev} $(shell test "$(host_cpu)" = x86_64 && echo "-DW64") -NOCD $(top_srcdir)/nsis/tesseract.nsi
|
2015-12-04 05:30:04 +08:00
|
|
|
|
|
|
|
endif
|