https://github.com/rtbo/pkg-config-d
Wraps calls to pkg-config in D and configures dub link stage.
https://github.com/rtbo/pkg-config-d
Last synced: 3 months ago
JSON representation
Wraps calls to pkg-config in D and configures dub link stage.
- Host: GitHub
- URL: https://github.com/rtbo/pkg-config-d
- Owner: rtbo
- License: mit
- Created: 2018-05-08T12:14:37.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-10-28T15:15:41.000Z (over 7 years ago)
- Last Synced: 2025-01-30T19:26:37.068Z (over 1 year ago)
- Language: D
- Size: 3.91 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: ReadMe.md
- License: LICENSE
Awesome Lists containing this project
README
# pkg-config-d
Invoke pkg-config from D code.
```d
import pkg_config;
try {
auto lib = pkgConfig("freetype2").libs().invoke();
// use lib.lflags, lib.libs, lib.libPaths
}
catch (Exception ex)
{
// pkg-config not installed or freetype not present
}
```