google / google/emboss

Support generating an import depfile (.d) like GCC & Clang -MD option

Open
#68 2 comments 1 reaction 0 assignees View on GitHub
enhancement external integration
Dominant language
Python
Stars
92
Forks
30
PR merge metrics
No merged PRs in 30d

Description

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](https://gn.googlesource.com/gn/+/master/docs/reference.md#var_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](https://clang.llvm.org/docs/ClangCommandLineReference.html#cmdoption-clang-md) is used.

I haven't tried, but I think this format might work:
```
a.emb: b.emb c.emb
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.