Skip to content
Snippets Groups Projects
Commit daa14003 authored by Remco's avatar Remco
Browse files

updated readme, makefiles, added go and rust formatting to const generated files

parent b2996ada
Branches
Tags
No related merge requests found
......@@ -15,11 +15,9 @@ SAMPLE_X86 = $(TMPDIR)/sample_x86
all:
cd python && $(MAKE) gen_const
python const_generator.py rust
python const_generator.py go
python const_generator.py python
python const_generator.py ruby
python const_generator.py nodejs
cd nodejs && $(MAKE) gen_const
cd rust && $(MAKE) gen_const
cd go && $(MAKE) gen_const
cd ruby && $(MAKE) gen_const
samples: expected python
......@@ -75,10 +73,10 @@ clean:
cd ruby && $(MAKE) clean
check:
make -C python check
make -C rust check
make -C go check
make -C nodejs check
make -C ruby check
cd python && $(MAKE) check
cd rust && $(MAKE) check
cd go && $(MAKE) check
cd nodejs && $(MAKE) check
cd ruby && $(MAKE) check
FORCE:
# Python binding for Keystone engine. Nguyen Anh Quynh <aquynh@gmail.com>
# Go binding for Keystone engine. Remco Verhoef <remco@honeytrap.io>
ifndef BUILDDIR
OBJDIR = ./build
......@@ -6,10 +6,11 @@ else
OBJDIR = $(abspath $(BUILDDIR))/obj/bindings/go
endif
.PHONY: gen_const install clean
.PHONY: gen_const install clean check
gen_const:
cd .. && python const_generator.py go
go fmt
install:
cd keystone && go build
......
# keystone
Go bindings for the [keystone](http://www.keystone-engine.org/) engine.
## Configuration
```
export CGO_CFLAGS -I../../../include/keystone/
export CGO_LDFLAGS "-L../../../build/llvm/lib/ -lkeystone"
```
## Sample
```go
package main
......@@ -32,14 +39,11 @@ func main() {
}
```
## Installation
## Notes
## Testing
## Contributing
```
go test
```
Contributors:
## Contributors
- Remco Verhoef (@remco_verhoef)
Special thanks to:
- Sébastien Duquette (@ekse) for his [unicorn-rs](https://github.com/ekse/unicorn-rs) binding
# Python binding for Keystone engine. Nguyen Anh Quynh <aquynh@gmail.com>
# NodeJS binding for Keystone engine. Ingmar Steen
ifndef BUILDDIR
OBJDIR = ./build
......@@ -6,7 +6,7 @@ else
OBJDIR = $(abspath $(BUILDDIR))/obj/bindings/nodejs
endif
.PHONY: gen_const install clean
.PHONY: gen_const install clean check
gen_const:
cd .. && python const_generator.py nodejs
......
# Python binding for Keystone engine. Nguyen Anh Quynh <aquynh@gmail.com>
# Rust binding for Keystone engine. Remco Verhoef <remco@honeytrap.io>
ifndef BUILDDIR
OBJDIR = ./build
......@@ -6,10 +6,11 @@ else
OBJDIR = $(abspath $(BUILDDIR))/obj/bindings/rust
endif
.PHONY: gen_const install install3 clean
.PHONY: gen_const install clean check
gen_const:
cd .. && python const_generator.py rust
cargo fmt
install:
cargo build
......
# keystone-rs
Rust bindings for the [keystone](http://www.keystone-engine.org/) engine.
## Sample
```rust
extern crate keystone;
use keystone::{Keystone, Arch, Mode, OptionType, OptionValue};
......@@ -19,13 +20,12 @@ fn main() {
}
```
## Installation
## Notes
## Contributing
## Testing
```
cargo test
```
Contributors:
## Contributors
- Remco Verhoef (@remco_verhoef)
Special thanks to:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment