make installer target (windows only)
authorJoachim Breitner <mail@joachim-breitner.de>
Wed, 30 Dec 2009 17:49:54 +0000 (17:49 +0000)
committerJoachim Breitner <mail@joachim-breitner.de>
Wed, 30 Dec 2009 17:49:54 +0000 (17:49 +0000)
Makefile.am
configure.ac

index ace49a2..9274aaa 100644 (file)
@@ -28,7 +28,20 @@ update-icon-cache:
                echo "***   $(gtk_update_icon_cache)"; \
        fi
 
-
 dist_man_MANS = sm.6
 EXTRA_DIST = sm.py sm.desktop.in sm.html
-CLEANFILES = sm.desktop
+CLEANFILES = sm.desktop 
+
+if WIN32
+INSTALLER_BASE = screen-message-setup-@PACKAGE_VERSION@
+INSTALLER = $(INSTALLER_BASE).exe
+CLEANFILES += setup-app-ver-name.iss 
+setup-app-ver-name.iss:
+       echo "AppVerName=Screen Message @PACKAGE_VERSION@" > $@
+
+$(INSTALLER): setup.iss sm.exe setup-app-ver-name.iss
+       "$(WINE)" "$(ISCC)" /O. /F$(INSTALLER_BASE) $< 
+
+installer: $(INSTALLER)
+
+endif
index bf2b8d7..f32b452 100644 (file)
@@ -8,6 +8,24 @@ AS_CASE($host,
 
 AM_CONDITIONAL(WIN32, test "x$win32" = xtrue)
 
+AC_ARG_WITH([iscc],
+            [AS_HELP_STRING([--with-issc=PATH],
+              [path to the Inno Setup compiler for win32 cross builds])],
+            [ ],
+            [with_iscc=no])
+
+AS_IF([test "x$with_iscc" != xno],
+           [
+           AC_CHECK_TOOL(WINE,[wine],[],[])
+           AC_SUBST(ISCC,[$with_iscc])
+           ],
+           [
+           AS_IF([test "x$win32" = xtrue],
+               [AC_MSG_ERROR("You need to specify --with-iscc when building for Win32")]
+               )
+           ])
+
+
 PKG_PROG_PKG_CONFIG
 AC_ARG_WITH([win32-gtk],
             [AS_HELP_STRING([--with-win32-gtk=PATH],