mirror of
https://github.com/yuzu-emu/unicorn
synced 2024-11-24 06:38:15 +00:00
Added support for building tests from MinGW.
This commit is contained in:
parent
00f06e0425
commit
f111d7d1ca
3 changed files with 9 additions and 2 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -6,6 +6,7 @@
|
||||||
*.dSYM
|
*.dSYM
|
||||||
*.so
|
*.so
|
||||||
*.so.*
|
*.so.*
|
||||||
|
*.exe
|
||||||
|
|
||||||
qemu/config-all-devices.mak
|
qemu/config-all-devices.mak
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,11 @@
|
||||||
CFLAGS += -I../include
|
|
||||||
|
CFLAGS += -I../../include
|
||||||
|
|
||||||
|
ifeq (MING,$(findstring MING,$(shell uname -s)))
|
||||||
|
LDFLAGS += ../../unicorn.lib $(shell pkg-config --libs glib-2.0) -lpthread -lm
|
||||||
|
else
|
||||||
LDFLAGS += ../../libunicorn.a $(shell pkg-config --libs glib-2.0) -lpthread -lm
|
LDFLAGS += ../../libunicorn.a $(shell pkg-config --libs glib-2.0) -lpthread -lm
|
||||||
|
endif
|
||||||
|
|
||||||
TESTS = map_crash map_write
|
TESTS = map_crash map_write
|
||||||
TESTS += sigill sigill2
|
TESTS += sigill sigill2
|
||||||
|
|
|
@ -15,7 +15,7 @@ but that the code hook is just not occurring.
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#define PRIx64 "llX"
|
#define PRIx64 "llX"
|
||||||
#ifdef DYNLOAD
|
#ifdef DYNLOAD
|
||||||
#include <unicorn/unicorn_dynload.h>
|
#include <unicorn_dynload.h>
|
||||||
#else // DYNLOAD
|
#else // DYNLOAD
|
||||||
#include <unicorn/unicorn.h>
|
#include <unicorn/unicorn.h>
|
||||||
#ifdef _WIN64
|
#ifdef _WIN64
|
||||||
|
|
Loading…
Reference in a new issue