project_root = "../../../../.."
include(project_root.."/tools/build")

group("src")
project("xenia-cpu-backend-x64")
  uuid("7d8d5dce-4696-4197-952a-09506f725afe")
  kind("StaticLib")
  language("C++")
  links({
    "capstone",
    "fmt",
    "xenia-base",
    "xenia-cpu",
  })
  defines({
    "CAPSTONE_X86_ATT_DISABLE",
    "CAPSTONE_DIET_NO",
    "CAPSTONE_X86_REDUCE_NO",
    "CAPSTONE_HAS_X86",
    "CAPSTONE_USE_SYS_DYN_MEM",
    "XBYAK_NO_OP_NAMES",
    "XBYAK_ENABLE_OMITTED_OPERAND",
  })
  -- Enable VTune, if it's installed.
  if os.isdir(project_root.."/third_party/vtune") then
    defines { "ENABLE_VTUNE=1" }
  end

  includedirs({
    project_root.."/third_party/capstone/include",
  })
  local_platform_files()
