Repository navigation
Expand file tree
/
Copy pathpremake5.lua
More file actions
45 lines (39 loc) · 2 KB
/
Copy pathpremake5.lua
File metadata and controls
45 lines (39 loc) · 2 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
-- Shared build scripts from repo_build package
repo_build = require("omni/repo/build")
-- Repo root
root = repo_build.get_abs_path(".")
-- Kit 110 bundles USD 25.11 inside Kit SDK and does not publish C++ headers separately.
-- premake5-public.lua (shipped with Kit SDK) hardcodes USD_ROOT = root.."/_build/target-deps/usd/"
-- and calls use_usd(), which calls get_usd_version() expecting pxr.h at that path.
-- Without pxr.h, get_usd_version() returns nil and premake crashes at the nil < "24.11" comparison.
-- This repo is Python-only and never compiles against USD headers; we create a minimal stub
-- so the version check resolves to "25.11" and the premake build proceeds correctly.
local pxr_h_dir = root .. "/_build/target-deps/usd/release/include/pxr"
if not os.isfile(pxr_h_dir .. "/pxr.h") then
os.mkdir(pxr_h_dir)
local f = io.open(pxr_h_dir .. "/pxr.h", "w")
if f then
f:write("// Kit 110 USD 25.11 stub: headers not separately distributed; only premake version detection needs this.\n")
f:write("#define PXR_MINOR_VERSION 25\n")
f:write("#define PXR_PATCH_VERSION 11\n")
f:close()
end
end
-- Insert kit template premake configuration, it creates solution, finds extensions.. Look inside for more details.
dofile("_repo/deps/repo_kit_tools/kit-template/premake5.lua")
repo_build.prebuild_copy {
{ "source/shell/*${shell_ext}", bin_dir },
}
repo_build.prebuild_link {
{ "${root}/tools/migrations", bin_dir.."/tools/migrations" },
-- Preserve the canonical path used by Claude's skill shim and shared agent discovery.
{ "${root}/skills", bin_dir.."/skills" },
{ "${root}/skills", bin_dir.."/.agents/skills" },
{ "${root}/.claude/skills/rtx-remix-modding", bin_dir.."/.claude/skills/rtx-remix-modding" },
}
define_app("lightspeed.app.trex")
define_app("lightspeed.app.trex.full")
define_app("lightspeed.app.trex.ingestcraft")
define_app("lightspeed.app.trex.stagecraft")
define_app("lightspeed.app.trex.stagecraft.headless")
define_app("lightspeed.app.trex_dev")