xmake.lua 837 B

1234567891011121314151617181920
  1. package("diasdk")
  2. set_homepage("https://visualstudio.microsoft.com/")
  3. set_description("The Microsoft Debug Interface Access (DIA) SDK provides access to debug information stored in program database (.pdb) files generated by Microsoft postcompiler tools.")
  4. on_fetch("windows|x64", "windows|arm", "windows|arm64", function (package, opt)
  5. if opt.system then
  6. import("detect.sdks.find_dia_sdk")
  7. local dia_sdk = find_dia_sdk(nil, {arch = package:arch()})
  8. if dia_sdk then
  9. return {
  10. includedirs = dia_sdk.includedirs,
  11. linkdirs = dia_sdk.linkdirs,
  12. links = {
  13. package:config("shared") and "msdia140" or "diaguids"
  14. }
  15. }
  16. end
  17. end
  18. end)