#Advanced Build System
1 messages · Page 1 of 1 (latest)
you mean like producing something like a list of exectuables and their paths?
kind of
you have to decide what format that file will have, you have to start constructing the file content in the build script, create a WriteFile step with const write = b.addWriteFile, and put the the content in a file with write.add(path, content);
can i not pass it as a constant to the executable?
so i have 2 projects (one is a submodule in another) parent and child
in the parent project on build i want to first build the child, get the executable path and the build the parent with the executable path of the child as a constant accessible from the code
this is mainly for easy development
for release the two executables will be in the same folder
both are zig projects?
yes
why not just have the parent include the child via buid.zig.zon?
i'm not against that
that should be the most straightforward way