mirror of
https://github.com/keystone-engine/keystone
synced 2026-06-08 15:15:30 +00:00
ffe054aaa9
* Fix Rust bindings * Various small improvements for the Rust bindings * Remove unused dependencies * Use the cmake crate to compile keystone * Add Windows support to Rust bindings * Cleanup doc a bit * Fix symlink path * Link to C++ standard library * Build all keystone targets
27 lines
658 B
Makefile
27 lines
658 B
Makefile
# Rust binding for Keystone engine. Remco Verhoef <remco@honeytrap.io>
|
|
|
|
.PHONY: gen_const build package clean check
|
|
|
|
build: keystone-sys/keystone
|
|
cargo build -vv
|
|
|
|
package: keystone-sys/keystone
|
|
cd keystone-sys && cargo package -vv
|
|
cargo package -vv
|
|
|
|
# For packaging we need to embed the keystone source in the crate
|
|
keystone-sys/keystone:
|
|
rsync -a ../.. keystone-sys/keystone --exclude bindings --filter ":- ../../.gitignore"
|
|
|
|
clean:
|
|
rm -rf keystone-sys/keystone/
|
|
cargo clean
|
|
|
|
check:
|
|
# Make sure to only use one test thread as keystone isn't thread-safe
|
|
cargo test -- --test-threads=1
|
|
|
|
gen_const:
|
|
cd .. && python2 const_generator.py rust
|
|
cargo fmt
|