-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add configure.win and cleanup.win (#298)
- Loading branch information
1 parent
e7e840b
commit 4566a2b
Showing
15 changed files
with
98 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
rm -f src/Makevars.win |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
CARGO_VERSION="$(cargo --version)" | ||
|
||
if [ $ret -ne 0 ]; then | ||
echo "-------------- ERROR: CONFIGURATION FAILED --------------------" | ||
echo "" | ||
echo "The cargo command is not available. To install Rust, please refer" | ||
echo "to the official instruction:" | ||
echo "" | ||
echo "https://www.rust-lang.org/tools/install" | ||
echo "" | ||
echo "---------------------------------------------------------------" | ||
|
||
exit $ret | ||
fi | ||
|
||
# There's a little chance that rustc is not available on PATH while cargo is. | ||
# So, just ignore the error case. | ||
RUSTC_VERSION="$(rustc --version || true)" | ||
|
||
# Report the version of Rustc to comply with the CRAN policy | ||
echo "using Rust package manager: '${CARGO_VERSION}'" | ||
echo "using Rust compiler: '${RUSTC_VERSION}'" | ||
|
||
sed -e "s/@TARGET@/x86_64-pc-windows-gnu/" src/Makevars.win.in > src/Makevars.win |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
savvy-bindgen/src/gen/templates/Makevars.win → ...bindgen/src/gen/templates/Makevars.win.in
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
rm -f src/Makevars.win |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
CARGO_VERSION="$(cargo --version)" | ||
|
||
if [ $ret -ne 0 ]; then | ||
echo "-------------- ERROR: CONFIGURATION FAILED --------------------" | ||
echo "" | ||
echo "The cargo command is not available. To install Rust, please refer" | ||
echo "to the official instruction:" | ||
echo "" | ||
echo "https://www.rust-lang.org/tools/install" | ||
echo "" | ||
echo "---------------------------------------------------------------" | ||
|
||
exit $ret | ||
fi | ||
|
||
# There's a little chance that rustc is not available on PATH while cargo is. | ||
# So, just ignore the error case. | ||
RUSTC_VERSION="$(rustc --version || true)" | ||
|
||
# Report the version of Rustc to comply with the CRAN policy | ||
echo "using Rust package manager: '${CARGO_VERSION}'" | ||
echo "using Rust compiler: '${RUSTC_VERSION}'" | ||
|
||
sed -e "s/@TARGET@/x86_64-pc-windows-gnu/" src/Makevars.win.in > src/Makevars.win |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,6 @@ | |
*.dll | ||
target | ||
.cargo | ||
|
||
Makevars | ||
Makevars.win |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters