Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Port OCaml bindings to use Dune and Opam #2319

Open
wants to merge 2 commits into
base: next
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 1 addition & 17 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,23 +31,7 @@ bindings/python/capstone.egg-info/
bindings/java/capstone.jar

# ocaml
bindings/ocaml/*.cmi
bindings/ocaml/*.cmx
bindings/ocaml/*.cmxa
bindings/ocaml/*.mli
bindings/ocaml/test
bindings/ocaml/test_arm
bindings/ocaml/test_aarch64
bindings/ocaml/test_basic
bindings/ocaml/test_mips
bindings/ocaml/test_x86
bindings/ocaml/test_detail
bindings/ocaml/test_ppc
bindings/ocaml/test_sparc
bindings/ocaml/test_systemz
bindings/ocaml/test_xcore
bindings/ocaml/test_m680x

bindings/ocaml/_build

# test binaries
tests/test_basic
Expand Down
299 changes: 0 additions & 299 deletions bindings/ocaml/Makefile

This file was deleted.

12 changes: 6 additions & 6 deletions bindings/ocaml/README
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
To compile Ocaml binding, Ocaml toolchain is needed. On Ubuntu Linux,
To compile OCaml bindings, OCaml toolchain is needed. On Ubuntu Linux,
you can install Ocaml with:

$ sudo apt-get install ocaml-nox
$ sudo apt-get install ocaml opam

To compile Ocaml binding, simply run "make" on the command line.
To compile OCaml bindings, simply run "opam install ." on the command line.


This directory also contains some test code to show how to use Capstone API.

- test_basic.ml
- test/test_basic.ml
This code shows the most simple form of API where we only want to get basic
information out of disassembled instruction, such as address, mnemonic and
operand string.

- test_detail.ml:
- test/test_detail.ml:
This code shows how to access to architecture-neutral information in disassembled
instructions, such as implicit registers read/written, or groups of instructions
that this instruction belong to.

- test_<arch>.ml
- test/test_<arch>.ml
These code show how to access architecture-specific information for each
architecture.
Loading
Loading