xenia/third_party/capstone.lua

57 lines
1.2 KiB
Lua
Raw Normal View History

group("third_party")
project("capstone")
uuid("b3a89f7e-bb02-4945-ae75-219caed6afa2")
kind("StaticLib")
language("C")
links({
})
defines({
"CAPSTONE_X86_ATT_DISABLE",
"CAPSTONE_DIET_NO",
"CAPSTONE_X86_REDUCE_NO",
"CAPSTONE_HAS_X86",
"CAPSTONE_USE_SYS_DYN_MEM",
"_LIB",
})
includedirs({
"capstone",
"capstone/include",
})
files({
"capstone/cs.c",
"capstone/cs_priv.h",
"capstone/LEB128.h",
"capstone/MathExtras.h",
"capstone/MCDisassembler.h",
"capstone/MCFixedLenDisassembler.h",
"capstone/MCInst.c",
"capstone/MCInst.h",
"capstone/MCInstrDesc.c",
"capstone/MCInstrDesc.h",
"capstone/MCRegisterInfo.c",
"capstone/MCRegisterInfo.h",
"capstone/myinttypes.h",
"capstone/SStream.c",
"capstone/SStream.h",
"capstone/utils.c",
"capstone/utils.h",
"capstone/arch/X86/*.c",
"capstone/arch/X86/*.h",
"capstone/arch/X86/*.inc",
})
2015-11-06 02:43:15 +00:00
force_compile_as_c({
"capstone/**.c",
"capstone/arch/X86/**.c",
})
2015-08-18 21:18:00 +00:00
filter("platforms:Linux")
-- Capstone code is... not fantastic.
buildoptions({
"-Wno-error=write-strings",
"-Wno-write-string",
"-Wno-deprecated",
"-w",
})
2015-08-18 21:45:49 +00:00
filter({})