[Scons-dev] How to generate .pc files from .pc.in files using scons

Dirk Bächle tshortik at gmx.de
Fri Jun 12 05:36:17 EDT 2015


Hi Ravi,

On 12.06.2015 07:33, RAVI NANJUNDAPPA wrote:
> Hi ,
>
> There is a configure_file() in Cmake , which Copies a file <input> to file <output> and substitutes variable values referenced in the file content.
> This is basically used to generate the <project>.pc file from <project>.pc.in file.
> Can anyone help me how to achieve the similar functionality using scons ?
>

the functionality you search for is encapsulated by the "textfile" Tool, especially the Substfile() Builder. Please have a look at 
the UserGuide's appendix B (or use 'man scons') where all the different available builder methods are described, and also some 
examples are given.

If you encounter further problems, feel free to continue asking questions...but please post them to the user mailing list 
"scons-users at scons.org". This developer ML is intended to discuss core issues, and the number of ears you can reach here is very 
small. ;)

Best regards,

Dirk



More information about the Scons-dev mailing list