Skip to content

Commit

Permalink
fix pip install
Browse files Browse the repository at this point in the history
  • Loading branch information
star-hengxing committed Sep 16, 2024
1 parent f7e6782 commit b3429f7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/g/google-dawn/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,15 @@ package("google-dawn")
add_deps("abseil", "spirv-tools")

on_load(function (package)
local python = package:is_plat("windows") and "python" or "python3"
os.vrun(python .. " -m pip install jinja2")
if package:config("shared") then
package:add("defines", "WGPU_SHARED_LIBRARY", "DAWN_NATIVE_SHARED_LIBRARY")
end
end)

on_install(function (package)
local python = package:is_plat("windows") and "python" or "python3"
os.vrun(python .. " -m pip install jinja2")

import("patch")(package)
local configs = import("configs").get(package)
import("package.tools.cmake").install(package, configs)
Expand Down

0 comments on commit b3429f7

Please sign in to comment.