From 3df65c03f8f87f3eac9ea15998e2511730a9473c Mon Sep 17 00:00:00 2001 From: Sam Thursfield Date: Fri, 20 May 2011 14:57:07 +0100 Subject: [PATCH] Add Windows helpers to Makefile These will be improved :) --- Makefile.am | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/Makefile.am b/Makefile.am index d877b2a..e43fc91 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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 -- 2.1.4