about summary refs log tree commit diff
path: root/src/etc
diff options
context:
space:
mode:
authorGraydon Hoare <graydon@mozilla.com>2011-07-23 12:26:47 -0700
committerGraydon Hoare <graydon@mozilla.com>2011-07-23 12:27:06 -0700
commitad954fceccc24945fc026522df5af6d01fa7b83d (patch)
tree290f8e91aac9a379c96e162dc3d9dac9de8e745d /src/etc
parent57459ec8ae402be358393455533cdf363866cdca (diff)
downloadrust-ad954fceccc24945fc026522df5af6d01fa7b83d.tar.gz
rust-ad954fceccc24945fc026522df5af6d01fa7b83d.zip
Add an NSIS script for building a win32 installer. Closes #522.
Diffstat (limited to 'src/etc')
-rw-r--r--src/etc/pkg/rust.nsi39
1 files changed, 39 insertions, 0 deletions
diff --git a/src/etc/pkg/rust.nsi b/src/etc/pkg/rust.nsi
new file mode 100644
index 00000000000..1c9a72bde8c
--- /dev/null
+++ b/src/etc/pkg/rust.nsi
@@ -0,0 +1,39 @@
+# -*- shell-script -*-
+# (not really, but syntax is similar)
+#
+# This is a NSIS win32 installer script the Rust toolchain.
+#
+
+Name "Rust"
+ShowInstDetails "show"
+ShowUninstDetails "show"
+SetCompressor "lzma"
+LicenseForceSelection checkbox
+
+Page license
+Page components
+Page directory
+Page instfiles
+UninstPage uninstConfirm
+UninstPage instfiles
+
+
+Section "Compiler"
+    SetOutPath $INSTDIR
+    File /oname=rustc.exe     stage3\rustc.exe
+    File /oname=rustllvm.dll  stage3\rustllvm.dll
+    File /oname=rustrt.dll    stage3\rustrt.dll
+    File /oname=std.dll       stage3\std.dll
+
+    SetOutPath $INSTDIR\lib
+    File /oname=rustrt.dll   stage3\lib\rustrt.dll
+    File /oname=std.dll      stage3\lib\std.dll
+    File /oname=main.o       stage3\lib\main.o
+    File /oname=glue.o       stage3\lib\glue.o
+SectionEnd
+
+Section "Documentation"
+    SetOutPath $INSTDIR\doc
+    File /nonfatal /oname=rust.html doc\rust.html
+    File /nonfatal /oname=rust.pdf  doc\rust.pdf
+SectionEnd