Add Windows helpers to Makefile
authorSam Thursfield <samthursfield@codethink.co.uk>
Fri, 20 May 2011 13:57:07 +0000 (14:57 +0100)
committerSam Thursfield <samthursfield@codethink.co.uk>
Fri, 20 May 2011 14:02:11 +0000 (15:02 +0100)
These will be improved :)

Makefile.am

index d877b2a..e43fc91 100644 (file)
@@ -87,3 +87,32 @@ src_dbus_client_LDADD = \
         $(moonshot_LIBS)
 
 endif
+
+
+if OS_WIN32
+
+## A couple of Windows-specific targets:
+
+## 1. Icons. You must have gnome-icon-theme and gnome-icon-theme-symbolic installed
+##    in c:/build prefix; and ImageMagick installed in c:/tools/ImageMagick. This
+##    pulls in the icons required by moonshot and converts svg's to png's (we have
+##    no svg support built in to Windows Gtk+ right now).
+
+icons:
+       mkdir -p share/icons
+       cp c:/build/share/icons/gnome/48x48/status/avatar-default.png share/icons
+       c:/tools/ImageMagick/convert.exe -background none c:/build/share/icons/gnome/scalable/actions/edit-clear-symbolic.svg -size 13x13 share/icons/edit-clear-symbolic.png
+       c:/tools/ImageMagick/convert.exe -background none c:/build/share/icons/gnome/scalable/actions/edit-find-symbolic.svg -size 13x13 share/icons/edit-find-symbolic.png
+
+
+## 2. Installer. You must have the Windows Installer XML toolkit version 3.5
+##    installed in its default path. Note that this requires at least .NET
+##    runtime with service packs 1 and 2.
+
+installer: moonshot.msi
+
+moonshot.msi: windows/app.wxs
+       candle $<
+       light -b c:/build -b c:/tools/mingw -o moonshot.msi app.wixobj
+
+endif