Open BenjaminLawson opened 1 year ago
What I'm not sure of is what gn expects the rule name to be. It might need to be "my_script.py" or "target_name" instead of "a.emb".
It looks like the rule name needs to be the name of the output file (e.g. a.emb.h: b.emb
).
When using the GN build system, we need to specify all imported emboss files (including recursively imported files) as inputs to the action target that runs embossc. It would be simpler and more maintainable to use a depfile that was generated by emboss. The format of the depfile is a Makefile like the ones generated by GCC and Clang when the -MD option is used.
I haven't tried, but I think this format might work: