how to pkg-config info into ninja build file

353 views
Skip to first unread message

sothy shan

unread,
Mar 17, 2017, 5:45:04 PM3/17/17
to ninja-build

Hello,

I do manually compile the c++ source. Now I am learning to use ninja to compile. I dont know how to inlcude pkg-config into ninka?
the manual command is 

g++-5 `pkg-config --cflags --libs /home/sothy/netbricks/netbricks.pc`

Thanks for ur help

Best regards
Sothy

Evan Martin

unread,
Mar 17, 2017, 7:55:44 PM3/17/17
to sothy shan, ninja-build
Ninja just runs the commands you tell it to, and has no knowledge of tools like pkg-config.

If you are new to build systems you should read this section of the manual, which tells you to use a different build system.
it also links here

--
You received this message because you are subscribed to the Google Groups "ninja-build" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ninja-build+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages