google / binexport

Export disassemblies into Protocol Buffers
Apache License 2.0
1.05k stars 206 forks source link

Allow building against latest Binary Ninja API version #134

Open clubby789 opened 3 months ago

clubby789 commented 3 months ago

This adds -DBINEXPORT_BINARYNINJA_LATEST=ON to build against the latest available API. Additionally, this PR updates the stable/dev pinned versions and stubs.

This fixes #120 and #108

clubby789 commented 2 months ago

Now uses add_custom_command so we only need to run the stub generator once. Added a PS1 script that does the equivalent of the current bash one. I don't have a Windows install available, but running using pwsh this generates exactly the same output.

WhatTheFuzz commented 1 month ago

Thanks for the PR. I spent way too long trying to modify the project to work with the latest Binja API. Can confirm this PR works with the dev channel (at the time of writing 4.2.6146-dev (d7e28a65)) on macOS arm64.