Determine list of source files (*.[ch]) for a complex build with scons -


Assume that you have a complex source tree for a C project, which has many files, (I386, SPARC, PowerPC) and many forms (debug, release). There is a scanstrict on the root (different sconscripts ) which works for all of these, when called with the argument that defines the target and the difference , E.g. scan target = i386 variant = release .

Is this an easy way to determine which source files (* .c and * .h) will use each of these builds (are they all slightly different)? My theory is that Scones will have to decide to set up this file anyway, what files it will ask to compile and recompile, can this information be provided?

What do I do not :

  • Log a verbose build and post it to process (probably will not *.

    Ideally I want to target the scan See the appropriate list of = I386 variant = release printfileset and *. [CC] Files This list works as an input for further source files, such as Doxygen.

    There are some questions

    • You need to scan SCons --dry-run By using the flag, the compiler can be stopped.
    • You can obtain a dependency circular from SCons - debug = tree, or --track = all the flags, depending on the version that you are running
    • Looking at a list of files, one per line, you can use only to filter things that are interesting to you.

      When you combine all together, you end up with something like this:

        scons target = i386 variant = release printfileset -n -tree = All | Egrep -i '^. * \. (C | h | cpp | cxx | hpp | inl) $ '   

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -