Bug 481969 - Detect includes and macros when `pkg-config --cflags`is present in build output
Summary: Detect includes and macros when `pkg-config --cflags`is present in build output
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-build (show other bugs)
Version: 9.0.0   Edit
Hardware: PC Linux
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: cdt-build-inbox@eclipse.org CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-11 18:18 EST by Marc-André Laperle CLA
Modified: 2020-09-04 15:24 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marc-André Laperle CLA 2015-11-11 18:18:07 EST
I've seen several Makefiles and build scripts that invoke `pkg-config --cflags gtk+-3.0` for example. I think it would be fairly easy to create an output parser that detects the pkg-config pattern, executes `pkg-config --cflags gtk+-3.0` then parses the output to detect includes (reusing output parser).
Comment 1 Marc-André Laperle CLA 2015-11-11 18:46:10 EST
I uploaded a small prototype here in case anyone needs this before I get to finish it:
https://github.com/MarkZ3/Eclipse-CDT-WIP/tree/PkgConfigOutputParser