Include mlvirtmanager in the Windows installer.
authorRichard W.M. Jones <rjones@redhat.com>
Mon, 7 Jan 2008 19:00:16 +0000 (19:00 +0000)
committerRichard W.M. Jones <rjones@redhat.com>
Mon, 7 Jan 2008 19:00:16 +0000 (19:00 +0000)
* wininstaller.nsis.in: Include mlvirtmanager in the Windows
  installer.
* Makefile.in: Re-enable native code builds for Windows installer.
* mlvirtmanager/Makefile.in: Pass $(LDFLAGS) when building on
  Windows - you need to specify the location of $GTK/lib.

ChangeLog
Makefile.in
mlvirtmanager/Makefile.in
wininstaller.nsis.in

index c8b673a..c8f24f9 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2008-01-07  Richard Jones  <rjones@redhat.com>
 
+       Include mlvirtmanager in the Windows installer.
+       * wininstaller.nsis.in: Include mlvirtmanager in the Windows
+         installer.
+       * Makefile.in: Re-enable native code builds for Windows installer.
+       * mlvirtmanager/Makefile.in: Pass $(LDFLAGS) when building on
+         Windows - you need to specify the location of $GTK/lib.
+
        Bundle Gtk DLLs and support files in the Windows installer.
        * configure.ac: Detect library paths instead of hard-
          coding them.
index a7cc00b..172b103 100755 (executable)
@@ -72,7 +72,7 @@ endif
 ifneq ($(MAKENSIS),)
 wininstaller: $(PACKAGE)-$(VERSION).exe
 
-$(PACKAGE)-$(VERSION).exe: wininstaller.nsis all opt
+$(PACKAGE)-$(VERSION).exe: wininstaller.nsis all opt
        "$(MAKENSIS)" \
          //DPACKAGE=$(PACKAGE) //DVERSION=$(VERSION) \
          //DOUTFILE=$@ $<
index b09cc57..b9bf280 100755 (executable)
@@ -73,8 +73,8 @@ mlvirtmanager: $(VIRTMANAGER_OBJS)
          ../libvirt/mllibvirt.cma gtkInit.cmo -o $@ $^
 
 mlvirtmanager.opt: $(VIRTMANAGER_XOBJS)
-       $(OCAMLOPT) \
-         $(OCAMLOPTINCS) $(OCAMLOPTFLAGS) $(OCAMLOPTLIBS) \
+       $(OCAMLOPT) -verbose $(OCAMLOPTINCS) $(OCAMLOPTFLAGS) $(OCAMLOPTLIBS) \
+         -cclib "$(LDFLAGS)" \
          ../libvirt/mllibvirt.cmxa gtkInit.cmx -o $@ $^
 endif
 
index f348540..92c5789 100755 (executable)
@@ -86,7 +86,7 @@ SectionEnd
 Section "Programs (recommended)"\r
        SetOutPath $INSTDIR\r
        File "/oname=mlvirsh.exe" "mlvirsh\mlvirsh.opt"\r
-       #File "/oname=mlvirtmanager.exe" "mlvirsh\mlvirtmanager.opt"\r
+       File "/oname=mlvirtmanager.exe" "mlvirsh\mlvirtmanager.opt"\r
 SectionEnd\r
 \r
 Section "OCaml Libvirt bindings (for developers only)"\r
@@ -97,18 +97,22 @@ Section "Start Menu Shortcuts"
        CreateDirectory "$SMPROGRAMS\${PACKAGE}"\r
        CreateShortCut "$SMPROGRAMS\${PACKAGE}\Uninstall.lnk" "$INSTDIR\Uninstall ${PACKAGE}.exe" "" "$INSTDIR\Uninstall ${PACKAGE}.exe" 0\r
        CreateShortCut "$SMPROGRAMS\${PACKAGE}\Virt Shell.lnk" "$INSTDIR\mlvirsh.exe" "" "$INSTDIR\mlvirsh.exe" 0\r
+       CreateShortCut "$SMPROGRAMS\${PACKAGE}\Virt Control.lnk" "$INSTDIR\mlvirtmanager.exe" "" "$INSTDIR\mlvirtmanager.exe" 0\r
 SectionEnd\r
 \r
 Section "Desktop Icons"\r
        CreateShortCut "$DESKTOP\Virt Shell.lnk" "$INSTDIR\mlvirsh.exe" "" "$INSTDIR\mlvirsh.exe" 0\r
+       CreateShortCut "$DESKTOP\Virt Control.lnk" "$INSTDIR\mlvirtmanager.exe" "" "$INSTDIR\mlvirtmanager.exe" 0\r
 SectionEnd\r
 \r
 Section "Uninstall"\r
        # Desktop icons\r
        Delete /rebootok "$DESKTOP\Virt Shell.lnk"\r
+       Delete /rebootok "$DESKTOP\Virt Control.lnk"\r
 \r
        # Menu shortcuts\r
        Delete /rebootok "$SMPROGRAMS\${PACKAGE}\Virt Shell.lnk"\r
+       Delete /rebootok "$SMPROGRAMS\${PACKAGE}\Virt Control.lnk"\r
        Delete /rebootok "$SMPROGRAMS\${PACKAGE}\Uninstall.lnk"\r
        RMDir "$SMPROGRAMS\${PACKAGE}"\r
 \r