builddependencies in custom build commands?

107 views
Skip to first unread message

Joe Best-Rotheray

unread,
Mar 16, 2018, 8:45:08 AM3/16/18
to Premake Development
Hi all,

Why isn't it possible to provide build dependencies to a custom build command?

I can provide the output message, commands, and outputs, but not dependencies?

Cheers
Joe

starkos

unread,
Mar 20, 2018, 1:35:09 PM3/20/18
to Premake Development

Joe Best-Rotheray

unread,
Mar 21, 2018, 8:44:18 AM3/21/18
to Premake Development
That's for Rules, not custom build commands.

The situation I'm in is I've got a project with a bunch of xml files which need to be built with a custom tool. However, the files are in three directories, each directory needing a different tool. I can set up a rule which operates on xml files, but I can't find a way to apply a rule only to files in a certain directory (or do different build commands depending on which directory they're in).

The only way to do this with rules that I can think of, is to create three rules, three projects, and divide the work up that way, but I'd really rather have them all in one project if I can.

Joe Best-Rotheray

unread,
Mar 26, 2018, 3:58:27 AM3/26/18
to Premake Development
Is that something that was supposed to work for custom build commands but accidentally got forgotten? Would make sense as it's the only thing missing in 5 that was there in 4.

starkos

unread,
Mar 26, 2018, 12:33:19 PM3/26/18
to Premake Development
You're right…it appear that no one has needed to set that up yet, so the code hasn't been added/ported.

Off the top of my head, I can't think of a good way to set it up with rules either.

Joe Best-Rotheray

unread,
Mar 27, 2018, 4:57:02 AM3/27/18
to Premake Development
Ah ha! I was planning to add this myself and submit a pull request, and I came across "buildinputs" which does exactly what I need. I'll add it to the custom build commands wiki page if I'm able to.
Reply all
Reply to author
Forward
0 new messages