Skip to content

Commit

Permalink
Package system runtime dependencies into Windows distribution.
Browse files Browse the repository at this point in the history
  • Loading branch information
vadimcn committed Oct 2, 2013
1 parent 1a6b6c4 commit 4e59ab0
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
1 change: 1 addition & 0 deletions mk/dist.mk
Expand Up @@ -60,6 +60,7 @@ LICENSE.txt: $(S)COPYRIGHT $(S)LICENSE-APACHE $(S)LICENSE-MIT

$(PKG_EXE): rust.iss modpath.iss LICENSE.txt rust-logo.ico \
$(PKG_FILES) $(CSREQ3_T_$(CFG_BUILD_TRIPLE)_H_$(CFG_BUILD_TRIPLE))
$(CFG_PYTHON) $(S)src/etc/copy-runtime-deps.py i686-pc-mingw32/stage3/bin
@$(call E, ISCC: $@)
$(Q)"$(CFG_ISCC)" $<
endif
Expand Down
16 changes: 16 additions & 0 deletions src/etc/copy-runtime-deps.py
@@ -0,0 +1,16 @@
#!/usr/bin/env python
# xfail-license

# Copies Rust runtime dependencies to the specified directory

import snapshot, sys, os, shutil

def copy_runtime_deps(dest_dir):
for path in snapshot.get_winnt_runtime_deps():
shutil.copy(path, dest_dir)

lic_dest = os.path.join(dest_dir, "third-party")
shutil.rmtree(lic_dest) # copytree() won't overwrite existing files
shutil.copytree(os.path.join(os.path.dirname(__file__), "third-party"), lic_dest)

copy_runtime_deps(sys.argv[1])
2 changes: 1 addition & 1 deletion src/etc/pkg/rust.iss
Expand Up @@ -19,7 +19,7 @@ DisableStartupPrompt=true

OutputDir=.\
SourceDir=.\
OutputBaseFilename=rust-{#CFG_VERSION}-install
OutputBaseFilename=rust-{#CFG_VERSION_WIN}-install
DefaultDirName={pf32}\Rust

Compression=lzma2/ultra
Expand Down

5 comments on commit 4e59ab0

@bors
Copy link
Contributor

@bors bors commented on 4e59ab0 Oct 4, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

saw approval from brson
at vadimcn@4e59ab0

@bors
Copy link
Contributor

@bors bors commented on 4e59ab0 Oct 4, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging vadimcn/rust/package-runtime-deps = 4e59ab0 into auto

@bors
Copy link
Contributor

@bors bors commented on 4e59ab0 Oct 4, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

vadimcn/rust/package-runtime-deps = 4e59ab0 merged ok, testing candidate = 8bb55dbf

@bors
Copy link
Contributor

@bors bors commented on 4e59ab0 Oct 4, 2013

@bors
Copy link
Contributor

@bors bors commented on 4e59ab0 Oct 4, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fast-forwarding master to auto = 8bb55dbf

Please sign in to comment.