Quellcode durchsuchen

diasdk: add package. (#7175)

* diasdk: add package.

* Update xmake.lua

* Update xmake.lua

---------

Co-authored-by: star9029 <[email protected]>
RedbeanW vor 3 Monaten
Ursprung
Commit
7e57722e1e
1 geänderte Dateien mit 20 neuen und 0 gelöschten Zeilen
  1. 20 0
      packages/d/diasdk/xmake.lua

+ 20 - 0
packages/d/diasdk/xmake.lua

@@ -0,0 +1,20 @@
+package("diasdk")
+    set_homepage("https://visualstudio.microsoft.com/")
+    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.")
+
+    on_fetch("windows|x64", "windows|arm", "windows|arm64", function (package, opt)
+        if opt.system then
+            import("detect.sdks.find_dia_sdk")
+
+            local dia_sdk = find_dia_sdk(nil, {arch = package:arch()})
+            if dia_sdk then
+                return {
+                    includedirs = dia_sdk.includedirs,
+                    linkdirs = dia_sdk.linkdirs,
+                    links = {
+                        package:config("shared") and "msdia140" or "diaguids"
+                    }
+                }
+            end
+        end
+    end)