Revision f53ec699 Makefile
b/Makefile | ||
---|---|---|
437 | 437 |
qemu-img.texi qemu-nbd.texi qemu-options.texi \ |
438 | 438 |
qemu-monitor.texi qemu-img-cmds.texi |
439 | 439 |
|
440 |
ifdef CONFIG_WIN32 |
|
441 |
|
|
442 |
INSTALLER = qemu-setup-$(VERSION)$(EXESUF) |
|
443 |
|
|
444 |
nsisflags = -V2 -NOCD |
|
445 |
|
|
446 |
ifneq ($(wildcard $(SRC_PATH)/dll),) |
|
447 |
ifeq ($(ARCH),x86_64) |
|
448 |
# 64 bit executables |
|
449 |
DLL_PATH = $(SRC_PATH)/dll/w64 |
|
450 |
nsisflags += -DW64 |
|
451 |
else |
|
452 |
# 32 bit executables |
|
453 |
DLL_PATH = $(SRC_PATH)/dll/w32 |
|
454 |
endif |
|
455 |
endif |
|
456 |
|
|
457 |
.PHONY: installer |
|
458 |
installer: $(INSTALLER) |
|
459 |
|
|
460 |
INSTDIR=/tmp/qemu-nsis |
|
461 |
|
|
462 |
$(INSTALLER): $(SRC_PATH)/qemu.nsi |
|
463 |
make install prefix=${INSTDIR} |
|
464 |
ifdef SIGNCODE |
|
465 |
(cd ${INSTDIR}; \ |
|
466 |
for i in *.exe; do \ |
|
467 |
$(SIGNCODE) $${i}; \ |
|
468 |
done \ |
|
469 |
) |
|
470 |
endif # SIGNCODE |
|
471 |
(cd ${INSTDIR}; \ |
|
472 |
for i in qemu-system-*.exe; do \ |
|
473 |
arch=$${i%.exe}; \ |
|
474 |
arch=$${arch#qemu-system-}; \ |
|
475 |
echo Section \"$$arch\" Section_$$arch; \ |
|
476 |
echo SetOutPath \"\$$INSTDIR\"; \ |
|
477 |
echo File \"\$${BINDIR}\\$$i\"; \ |
|
478 |
echo SectionEnd; \ |
|
479 |
done \ |
|
480 |
) >${INSTDIR}/system-emulations.nsh |
|
481 |
makensis $(nsisflags) \ |
|
482 |
$(if $(BUILD_DOCS),-DCONFIG_DOCUMENTATION="y") \ |
|
483 |
$(if $(CONFIG_GTK),-DCONFIG_GTK="y") \ |
|
484 |
-DBINDIR="${INSTDIR}" \ |
|
485 |
$(if $(DLL_PATH),-DDLLDIR="$(DLL_PATH)") \ |
|
486 |
-DSRCDIR="$(SRC_PATH)" \ |
|
487 |
-DOUTFILE="$(INSTALLER)" \ |
|
488 |
$(SRC_PATH)/qemu.nsi |
|
489 |
rm -r ${INSTDIR} |
|
490 |
ifdef SIGNCODE |
|
491 |
$(SIGNCODE) $(INSTALLER) |
|
492 |
endif # SIGNCODE |
|
493 |
endif # CONFIG_WIN |
|
494 |
|
|
440 | 495 |
# Add a dependency on the generated files, so that they are always |
441 | 496 |
# rebuilt before other object files |
442 | 497 |
ifneq ($(filter-out %clean,$(MAKECMDGOALS)),$(if $(MAKECMDGOALS),,fail)) |
Also available in: Unified diff