Added MSVC++ support for unicorn

This lets you import the pre-built unicorn.dll files with Microsoft
Visual C++ projects.

There is support for static and dynamic linking of dlls. This has been
tested as working for both 32bit and 64bit versions.

The dynamic linking code should also work in Linux, though I have not
tested it.
This commit is contained in:
xorstream
2015-12-04 22:09:24 +11:00
parent 032eb66908
commit 77f946f2fc
6 changed files with 415 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
call "C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\bin\vcvars32.bat"
lib /DEF:unicorn.def /OUT:unicorn_staload.lib /MACHINE:X86
lib /DEF:unicorn.def /OUT:unicorn_staload64.lib /MACHINE:X64