]> git.draconx.ca Git - dxcommon.git/commit
Add a script to embed config.h into installed headers.
authorNick Bowler <nbowler@draconx.ca>
Sun, 3 Dec 2023 03:33:49 +0000 (22:33 -0500)
committerNick Bowler <nbowler@draconx.ca>
Sun, 3 Dec 2023 06:07:47 +0000 (01:07 -0500)
commitd4f7fab64222a7d3ce15e86c5c7b32f7cdd3ce93
tree1ea4458a3eb8996bafaf52c5ca74ecb256b28943
parent262d3eaea39294df3f6172b28213e927e2f3b424
Add a script to embed config.h into installed headers.

When installing a library, sometimes it is difficult to avoid that
certain aspects of the interface depend on the build configuration.

While it is possible use configuration header templates to create
reasonably installable header files, this script enables a different
approach: just write code (mostly) normally and then patch up any
configuration macro references at install time.
Makefile.am
scripts/bake-config.awk [new file with mode: 0755]
tests/scripts.at