File tree Expand file tree Collapse file tree 5 files changed +62
-4
lines changed Expand file tree Collapse file tree 5 files changed +62
-4
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 57459ec8ae402be358393455533cdf363866cdca
2
+ refs/heads/master: ad954fceccc24945fc026522df5af6d01fa7b83d
Original file line number Diff line number Diff line change @@ -145,6 +145,7 @@ COMPILER_INPUTS := $(wildcard $(addprefix $(S)src/comp/, \
145
145
# #####################################################################
146
146
147
147
export CFG_SRC_DIR
148
+ export CFG_BUILD_DIR
148
149
export CFG_VERSION
149
150
export CFG_LLVM_ROOT
150
151
export CFG_ENABLE_MINGW_CROSS
Original file line number Diff line number Diff line change @@ -200,14 +200,15 @@ probe_need CFG_PERL perl
200
200
probe_need CFG_PYTHON python
201
201
probe_need CFG_CURL curl
202
202
203
- probe CFG_GIT git
203
+ probe CFG_GIT git
204
204
probe CFG_CLANG clang++
205
205
probe CFG_GCC gcc
206
206
probe CFG_LLVM_CONFIG llvm-config
207
207
probe CFG_VALGRIND valgrind
208
208
probe CFG_MAKEINFO makeinfo
209
209
probe CFG_TEXI2PDF texi2pdf
210
210
probe CFG_TEX tex
211
+ probe CFG_MAKENSIS makensis
211
212
212
213
if [ -z " $CFG_CLANG " -a -z " $CFG_GCC " ]
213
214
then
Original file line number Diff line number Diff line change 2
2
# Distribution
3
3
# #####################################################################
4
4
5
+
5
6
PKG_NAME := rust
6
7
PKG_VER = $(shell date +"% Y-% m-% d") -snap
7
8
PKG_DIR = $(PKG_NAME ) -$(PKG_VER )
8
9
PKG_TAR = $(PKG_DIR ) .tar.gz
9
10
11
+ ifdef CFG_MAKENSIS
12
+ PKG_NSI = $(S ) src/etc/pkg/rust.nsi
13
+ PKG_EXE = $(PKG_DIR ) -install.exe
14
+ endif
15
+
10
16
PKG_3RDPARTY := rt/valgrind.h rt/memcheck.h \
11
17
rt/isaac/rand.h rt/isaac/standard.h \
12
18
rt/uthash/uthash.h rt/uthash/utlist.h \
@@ -29,9 +35,20 @@ PKG_FILES = \
29
35
$(ALL_TEST_INPUTS ) \
30
36
$(GENERATED )
31
37
32
- dist : $(PKG_TAR )
38
+ dist : $(PKG_TAR ) $(PKG_EXE )
39
+
40
+ nsis-dist : $(PKG_EXE )
41
+
42
+ lic.txt : $(S ) LICENSE.txt
43
+ @$(call E, crlf: $@ )
44
+ @$(Q ) perl -pe ' s@\n@\r\n@go' < $< > $@
45
+
46
+ $(PKG_EXE ) : $(PKG_NSI ) $(PKG_FILES ) $(DOCS ) $(SREQ3 ) lic.txt
47
+ @$(call E, makensis: $@ )
48
+ $(Q ) makensis -NOCD -V1 " -XOutFile $@ " " -XLicenseData lic.txt" $<
49
+ $(Q ) rm -f lic.txt
33
50
34
- $(PKG_TAR ) : $(GENERATED )
51
+ $(PKG_TAR ) : $(PKG_FILES )
35
52
@$(call E, making dist dir)
36
53
$(Q ) rm -Rf dist
37
54
$(Q ) mkdir -p dist/$(PKG_DIR )
Original file line number Diff line number Diff line change
1
+ # -*- shell-script -*-
2
+ # (not really, but syntax is similar)
3
+ #
4
+ # This is a NSIS win32 installer script the Rust toolchain.
5
+ #
6
+
7
+ Name " Rust"
8
+ ShowInstDetails " show"
9
+ ShowUninstDetails " show"
10
+ SetCompressor " lzma"
11
+ LicenseForceSelection checkbox
12
+
13
+ Page license
14
+ Page components
15
+ Page directory
16
+ Page instfiles
17
+ UninstPage uninstConfirm
18
+ UninstPage instfiles
19
+
20
+
21
+ Section " Compiler"
22
+ SetOutPath $INSTDIR
23
+ File /oname=rustc.exe stage3\r ustc.exe
24
+ File /oname=rustllvm.dll stage3\r ustllvm.dll
25
+ File /oname=rustrt.dll stage3\r ustrt.dll
26
+ File /oname=std.dll stage3\s td.dll
27
+
28
+ SetOutPath $INSTDIR \l ib
29
+ File /oname=rustrt.dll stage3\l ib\r ustrt.dll
30
+ File /oname=std.dll stage3\l ib\s td.dll
31
+ File /oname=main.o stage3\l ib\m ain.o
32
+ File /oname=glue.o stage3\l ib\g lue.o
33
+ SectionEnd
34
+
35
+ Section " Documentation"
36
+ SetOutPath $INSTDIR \d oc
37
+ File /nonfatal /oname=rust.html doc\r ust.html
38
+ File /nonfatal /oname=rust.pdf doc\r ust.pdf
39
+ SectionEnd
You can’t perform that action at this time.
0 commit comments