python - SCons: mark target as built -


i have build script can’t control builds (shell command generates lot’s of files), of time it’s sufficient build few files, instead of running whole script.

my sconstruct file looks this:

cmd1 = env.command(<main executable file path>, [], <build shell command>)  cmd2 = env.command(<target file path 1>, <source file path 1>, <build file 1>) cmd3 = env.command(<target file path 2>, <source file path 2>, <build file 2>) 

what want mark cmd2 , cmd2 command targets built, without building if cmd1 target built, possible ?

do mean command1 builds target 1 , target2?

that's front if so.

the idea of build system builds bottom up. builds each piece need, puts pieces bigger piece, , on.

it doesn't consists of 1 huge script build , lots of little scripts part build of things big script builds anyway.

you should considering structure like:

cmd2 = env.command(<target file path 1>, <source file path 1>, <build command 1>) cmd3 = env.command(<target file path 2>, <source file path 2>, <build command 2>) cmd1 = env.command(<main executable file path>, [cmd2, cmd3], <link command>) 

Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

javascript - addthis share facebook and google+ url -

ios - Show keyboard with UITextField in the input accessory view -