forked from SakuraEngine/SakuraEngine
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.lua
More file actions
60 lines (55 loc) · 2.47 KB
/
setup.lua
File metadata and controls
60 lines (55 loc) · 2.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
module_root = path.absolute("xmake/modules")
import("find_sdk", {rootdir = module_root})
-- python
find_sdk.file_from_github("SourceSansPro-Regular.ttf")
if (os.host() == "windows") then
find_sdk.tool_from_github("python-embed", "python-embed-windows-x64.zip")
else
pip = find_sdk.find_program("pip3") or find_sdk.find_program("pip") or {program = "pip"}
os.runv(pip.program, {"install", "mako"})
end
if (os.host() == "windows") then
find_sdk.sdk_lib_from_github("ISPCTextureCompressor", "ISPCTextureCompressor-windows-x64.zip")
-- gfx sdk
find_sdk.lib_from_github("WinPixEventRuntime", "WinPixEventRuntime-windows-x64.zip")
find_sdk.lib_from_github("amdags", "amdags-windows-x64.zip")
find_sdk.lib_from_github("nvapi", "nvapi-windows-x64.zip")
find_sdk.lib_from_github("nsight", "nsight-windows-x64.zip")
find_sdk.lib_from_github("dstorage-1.2.1", "dstorage-1.2.1-windows-x64.zip")
find_sdk.lib_from_github("SDL2", "SDL2-windows-x64.zip")
-- tools & compilers
find_sdk.tool_from_github("dxc", "dxc-windows-x64.zip")
find_sdk.tool_from_github("wasm-clang", "wasm-clang-windows-x64.zip")
find_sdk.tool_from_github("ispc", "ispc-windows-x64.zip")
find_sdk.tool_from_github("meta-v1.0.0-llvm_17.0.6", "meta-v1.0.0-llvm_17.0.6-windows-x64.zip")
find_sdk.tool_from_github("tracy-gui-0.10.1a", "tracy-gui-0.10.1a-windows-x64.zip")
-- network
find_sdk.lib_from_github("gns", "gns-windows-x64.zip")
find_sdk.lib_from_github("gns_d", "gns_d-windows-x64.zip")
end
if (os.host() == "macosx") then
if (os.arch() == "x86_64") then
--
find_sdk.tool_from_github("dxc", "dxc-macosx-x86_64.zip")
find_sdk.tool_from_github("meta-v1.0.0-llvm_17.0.6", "meta-v1.0.0-llvm_17.0.6-macosx-x86_64.zip")
find_sdk.tool_from_github("tracy-gui-0.10.1a", "tracy-gui-0.10.1a-macosx-x86_64.zip")
--
find_sdk.tool_from_github("ispc-1.22.0", "ispc-1.22.0-macosx-x86_64.zip")
-- network
find_sdk.lib_from_github("gns", "gns-macosx-x86_64.zip")
find_sdk.lib_from_github("gns_d", "gns_d-macosx-x86_64.zip")
else
find_sdk.tool_from_github("dxc", "dxc-macosx-arm64.zip")
end
end
local setups = os.files("**/setup.lua")
for _, setup in ipairs(setups) do
local dir = path.directory(setup)
local basename = path.basename(setup)
import(path.join(dir, basename))
end
--[[
if (os.host() == "windows") then
os.exec("xmake project -k vsxmake -m \"debug,release\" -a x64 -y")
end
]]--