INCLUDEPATH += $$PWD/stubs/wtf
INCLUDEPATH += $$PWD
-DEFINES += WTF_USE_UDIS86=1
+if(isEqual(QT_ARCH, "i386")|isEqual(QT_ARCH, "x86_64")):!win*: DEFINES += WTF_USE_UDIS86=1
+else: DEFINES += WTF_USE_UDIS86=0
+
INCLUDEPATH += $$PWD/disassembler
INCLUDEPATH += $$PWD/disassembler/udis86
INCLUDEPATH += $$_OUT_PWD
SOURCES += $$PWD/disassembler/Disassembler.cpp
SOURCES += $$PWD/disassembler/UDis86Disassembler.cpp
-SOURCES += $$PWD/disassembler/udis86/udis86.c
-SOURCES += $$PWD/disassembler/udis86/udis86_decode.c
-SOURCES += $$PWD/disassembler/udis86/udis86_input.c
-SOURCES += $$PWD/disassembler/udis86/udis86_itab_holder.c
-SOURCES += $$PWD/disassembler/udis86/udis86_syn-att.c
-SOURCES += $$PWD/disassembler/udis86/udis86_syn.c
-SOURCES += $$PWD/disassembler/udis86/udis86_syn-intel.c
+contains(DEFINES, WTF_USE_UDIS86=1) {
+ SOURCES += $$PWD/disassembler/udis86/udis86.c
+ SOURCES += $$PWD/disassembler/udis86/udis86_decode.c
+ SOURCES += $$PWD/disassembler/udis86/udis86_input.c
+ SOURCES += $$PWD/disassembler/udis86/udis86_itab_holder.c
+ SOURCES += $$PWD/disassembler/udis86/udis86_syn-att.c
+ SOURCES += $$PWD/disassembler/udis86/udis86_syn.c
+ SOURCES += $$PWD/disassembler/udis86/udis86_syn-intel.c
+}
SOURCES += \
$$PWD/yarr/YarrCanonicalizeUCS2.cpp \