Commit Graph

32 Commits

Author SHA1 Message Date
Robert Xiao
f55e7834ba Replace javah by javac -h, only write new constant files if something changes.
The const_generator changes help to ensure that e.g. Java rebuilds don't keep
rebuilding everything.
2023-07-06 20:12:36 -07:00
Robert Xiao
dfdc8e7e8e Switch to Maven to build the Java bits.
Maven is now used to update the constants, build the Java code, call make to
build the native library, and run all the tests. I have removed the "install"
and "uninstall" targets; instead, the expectation will be that the JNI library
will be placed somewhere on java.library.path and the JAR file will be used as
usual (e.g. in a downstream Maven project, or placed on the classpath of your
project).

Since Maven is now running our tests, this eliminates the need to bundle test
dependencies in `testdep`, and makes the project structured more like a typical
Java project.
2023-06-29 16:08:18 -07:00
Robert Xiao
9cdb5cb745 Reformat Java bindings. 2023-06-17 14:17:57 -07:00
Matheus C. França
e9e7e0b6cf
Merge branch 'dev' into zig-bindgen 2023-03-23 16:17:55 -03:00
Matheus C. França
c6158b8628 zig consts 2023-03-23 10:09:41 -03:00
TSR Berry
1d12e8778b
bindings: Rename dotnet project to UnicornEngine
Add a few more properties to prepare a nuget package
2022-11-02 14:46:08 +01:00
Eric Poole
cfee2139a0
TriCore Support (#1568)
* TriCore Support

python sample

* Update sample_tricore.py

Correct attribution

* Update sample_tricore.py

Fixed byte code to execute properly.

* Update sample_tricore.py

Removed testing artifact

* Added tricore msvc config-file.h

* Added STATIC to tricore config and added helper methods to symbol file generation.

* Update op_helper.c

Use built in crc32

* Fix tricore samples and small code blocks are now handled properly

* Add CPU types

* Generate bindings

* Format code

Co-authored-by: lazymio <mio@lazym.io>
2022-04-29 23:11:34 +02:00
Nguyen Anh Quynh
6813e4a042 bindings: update const_generator.py, and update all binding constants 2022-01-01 09:24:28 +08:00
mio
8b0285e135
Add python support for s390x 2022-01-01 00:58:10 +01:00
lazymio
090686f8ed
uc_ctl proposal (#1473)
* Add uc_ctl

* Add comments

* Slightly changed for bindings generation

* Generate bindings
2021-10-30 10:45:32 +08:00
Nguyen Anh Quynh
aaaea14214 import Unicorn2 2021-10-03 22:14:44 +08:00
Dominik Maier
625399774c
X64 base regs (#1166)
* x86: setup FS & GS base

* Fixed base register writes for x64, removed then for x16/x32 (the don't exist there?)

* FS reg comes before GS so the base regs do so, too

* added shebang to const_generator.py

* Added base regs to and added 'all' support to const_generator

Co-authored-by: naq <aquynh@gmail.com>
2020-05-05 08:34:51 +08:00
Coldzer0
84220d8360 Pascal/Delphi binding (#987)
* Pascal/Delphi binding

Pascal/Delphi language binding

* update credits
2018-08-03 20:33:25 +08:00
Sascha Schirra
13007eb12a renamed unicorn gem to unicorn-engine (#895)
* renamed gem unicorn to unicorn-engine

* renamed modules to unicornengine

* renamed Module Unicorn to UnicornEngine and the gem unicorn-engine to unicornengine

* unicornengine -> unicorn_engine
2017-09-19 07:43:21 +07:00
Sascha Schirra
5e72ce39f0 ruby binding added 2016-03-22 12:17:23 +01:00
Nguyen Anh Quynh
ca79d11211 bindings: update constants after recent changes in unicorn.h 2016-01-23 10:31:16 +08:00
enkomio
272fb8524f Fixed spacing in dotnet comment 2016-01-04 16:55:20 +01:00
enkomio
2952d255c2 Fixed spacing in constants files generation for .NET 2016-01-04 11:31:17 +01:00
Antonio Parata
a45bc0c8cd Refactored in order to be independent from the OS path separator, also added support for .net constants generation 2015-10-14 16:32:31 +02:00
Nguyen Anh Quynh
d93210ad5a python: better support for Python3 (adapted from Capstone code) 2015-10-04 10:55:29 +08:00
Ryan Hileman
7e7c6512f5 add composite const generator (fix #161) 2015-10-03 10:41:19 -07:00
Ryan Hileman
7beb90ca95 remove UC_ prefix for go binding consts 2015-09-07 19:25:13 -07:00
Chris Eagle
27d5c7ec48 Fix perms 2015-08-28 23:33:49 -07:00
Chris Eagle
c24944cfa9 Fix capitalization for unicorn.h mapping in java and go binding 2015-08-28 23:33:38 -07:00
Chris Eagle
52b04f5939 Fix perms 2015-08-28 23:31:15 -07:00
Chris Eagle
72d69d5d38 Fix capitalization for unicorn.h mapping in java binding 2015-08-28 23:29:59 -07:00
Chris Eagle
4e1cb3afde pre-pull cleanup 2015-08-28 23:07:52 -07:00
Chris Eagle
1a081c5ed8 Initial changes to support use of const_generator.py 2015-08-28 19:41:13 -07:00
Ryan Hileman
40ba1ea1b0 improve const generator; emit unicorn.h consts 2015-08-28 07:32:25 -07:00
Ryan Hileman
c5bcb02847 add Go bindings 2015-08-27 21:22:30 -07:00
Nguyen Anh Quynh
d64ef59871 python: update consts after the latest change in the core 2015-08-24 13:16:22 +08:00
Nguyen Anh Quynh
344d016104 import 2015-08-21 15:04:50 +08:00