Browse Source

fix directxtk (#1438)

ruki 2 years ago
parent
commit
b405a398e8
1 changed files with 3 additions and 0 deletions
  1. 3 0
      packages/d/directxtk/xmake.lua

+ 3 - 0
packages/d/directxtk/xmake.lua

@@ -28,6 +28,9 @@ package("directxtk")
         end
         end
         table.insert(configs, "-DBUILD_SHARED_LIBS=" .. (package:config("shared") and "ON" or "OFF"))
         table.insert(configs, "-DBUILD_SHARED_LIBS=" .. (package:config("shared") and "ON" or "OFF"))
         table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:debug() and "Debug" or "Release"))
         table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:debug() and "Debug" or "Release"))
+        -- fix path issue with spaces
+        io.replace("Src/Shaders/CompileShaders.cmd", " %1.hlsl ", " \"%1.hlsl\" ", {plain = true})
+        io.replace("Src/Shaders/CompileShaders.cmd", " %1.fx ", " \"%1.fx\" ", {plain = true})
         import("package.tools.cmake").install(package, configs)
         import("package.tools.cmake").install(package, configs)
         os.cp("Inc/*", package:installdir("include"))
         os.cp("Inc/*", package:installdir("include"))
     end)
     end)