Files
Rix aa5b71ace5 xmake: add a pcsx.authoring.image rule for building CD images
Two modes, mutually exclusive at config time. pcsx.authoring.config imports
a checked-in JSON as-is; pcsx.authoring.files generates one from a glob, the
way nugget.bin2c already does.

generic_conversion cannot cover this: it hardcodes a single input file and
forces the output basename to the linked binary's, while a disc image takes a
whole tree and may want several images off one executable. So the binary
dependency is mandatory in generate mode and optional in import mode, where
the config names its own executable, and the basename is the target name.

Incremental rebuild tracks every payload plus the config, so touching an asset
re-runs only the images that reference it. Five config-time negative controls,
including both-modes-set and generate-mode with no binary dependency.

This renames pcsx.authoring.iso, which has no consumers in the tree.
2026-09-20 18:03:32 -07:00

15 lines
372 B
Lua

local support_root = path.join(os.scriptdir(), "..", "..")
includes(path.join(support_root, "tools", "xmake"))
common_rules()
target("pcsx.authoring", function ()
common_tool()
add_includedirs(path.join(support_root, "third_party", "ucl", "include"))
end)
rule("pcsx.authoring.image", function()
authoring_image("pcsx.authoring", ".bin", "authoring")
end)