Compare commits
2 Commits
f8252ab0be
...
8b7741866a
Author | SHA1 | Date |
---|---|---|
paring | 8b7741866a | |
paring | 6e7128bc3d |
|
@ -1,2 +1,3 @@
|
||||||
/target
|
/target
|
||||||
/Cargo.lock
|
/Cargo.lock
|
||||||
|
out
|
|
@ -3,7 +3,9 @@ name = "skyhook-native"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
||||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
skyhook = { path = "./vendor/skyhook/skyhook" }
|
skyhook = { path = "./vendor/skyhook/skyhook" }
|
||||||
|
|
||||||
|
[lib]
|
||||||
|
name = "skyhook"
|
||||||
|
crate-type = ["dylib"]
|
||||||
|
|
|
@ -0,0 +1,23 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -x
|
||||||
|
|
||||||
|
mkdir -p out/x86_64
|
||||||
|
mkdir -p out/i686
|
||||||
|
|
||||||
|
# x86_64
|
||||||
|
cargo build --release --target x86_64-unknown-linux-gnu
|
||||||
|
# cargo build --release --target x86_64-apple-darwin
|
||||||
|
echo [Windows]
|
||||||
|
cargo build --release --target x86_64-pc-windows-gnu
|
||||||
|
|
||||||
|
|
||||||
|
# i686
|
||||||
|
cargo build --release --target i686-unknown-linux-gnu
|
||||||
|
cargo build --release --target i686-pc-windows-gnu
|
||||||
|
|
||||||
|
cp target/x86_64-unknown-linux-gnu/release/libskyhook.so out/x86_64
|
||||||
|
cp target/x86_64-pc-windows-gnu/release/skyhook.dll out/x86_64
|
||||||
|
|
||||||
|
cp target/i686-unknown-linux-gnu/release/libskyhook.so out/i686
|
||||||
|
cp target/i686-pc-windows-gnu/release/skyhook.dll out/i686
|
|
@ -0,0 +1,13 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# x86_64
|
||||||
|
rustup target add x86_64-unknown-linux-gnu
|
||||||
|
rustup target add x86_64-apple-darwin
|
||||||
|
rustup target add x86_64-pc-windows-gnu
|
||||||
|
|
||||||
|
# i686
|
||||||
|
rustup target add i686-unknown-linux-gnu
|
||||||
|
rustup target add i686-pc-windows-gnu
|
||||||
|
|
||||||
|
# sudo pacman -S mingw-w64-binutils mingw-w64-gcc mingw-w64-headers \
|
||||||
|
# clang gcc zlib libmpc mpfr gmp
|
Reference in New Issue