bash - Eclipse CDT: pkg-config indexing -
i`m developing application using gtkmm eclipse. while have setup gtkmm include paths , linking options manually, decided let pkg-config work because of huge number of referenced projects. quite easy adding appropriate pkg-config command compiler invocation worked fine because 1 can use
`...`
shell substitution since eclipse generate makefile executed.
setting indexer right isnt easy though. instead of executing shell script in interpreter, eclipse executes compiler directly , pass command line arguments directly without substituting them before.
how can 1 execute shell script when executing indexer?
the solution execute bash interpreter -c flag directly instead of executing g++. scenario described in question configurations followed:
compiler invocation command bash compiler invocation arguements -c "g++ `pkg-config gtkmm-2.4 --cflags` -e -p -v -dd ${plugin_state_location}/specs.cpp"
Comments
Post a Comment