Skip to main content

Headers as Dependencies

HaD reads the #included headers from a bunch of C files and prints the corresponding compiler options. For instance, if #include <math.h> is used, option -lm is required, or if #include <pthread.h> is used, -pthread is required.

To do so, HaD relies on a database maintained by hand, as well as on pkg-config. It currently supports only GCC and Clang on Linux.

Contributions welcome!

You can help a lot by enriching files hadlib/*.cfg. This is actually the heart of the tool. All the rest is simple code to read and present this knowledge.

Licence

HaD is published as free software under the terms of the MIT licence

Release files for Headers-as-Dependencies 0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Headers-as-Dependencies 0.3
File Size Uploaded
Headers as Dependencies-0.3.tar.gz 6.0 kB Details

Release files / Headers as Dependencies-0.3.tar.gz

Download URL Headers as Dependencies-0.3.tar.gz
Size 6.0 kB
Tags Source
SHA-256 checksum
How to use checksums
4a4b9d0c1e664b263c466cc88ba5130c04835ff341972f8ec53cb0551453a4ff
BLAKE2b-256 checksum
How to use checksums
d8bfa215af55ef02a0dad82db41d259eb0056e0fa1a1094375cd81c05611a57b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.8

Release history Release notifications | RSS feed

This release

0.3 This release

1 release file

0.2

1 release file

0.1.1

2 release files

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page