ChinnaSuhas / ossbuild

Automatically exported from code.google.com/p/ossbuild
Other
0 stars 1 forks source link

Proposal for checking files in Build-All- scripts. #85

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Currently these scripts build libraries basing on the absence of the resulting 
file in OSSBuild\Build directory:

if [ ! -f "$BinDir/<target file>" ]; then 

   unpack, patch and build

fi

However, these target files are built in $BinDir and then moved to 
$SharedBinDir. Therefore, if I decide to rebuild one particular library, I have 
to copy the others back to $BinDir.

I propose something like this:

if [ ! -f "$BinDir/<target file>" ] && [ ! -f "$SharedBinDir/<target file>" ] ; 
then 
 blah-blah-blah
fi

Original issue reported on code.google.com by wl2776@gmail.com on 29 Sep 2010 at 11:30

GoogleCodeExporter commented 9 years ago
The directions for building the dependencies say (or should say if they don't) 
to run the clean scripts which clear out the shared directory before doing a 
build. If you rerun some builds out-of-order, they'll pick up additional or 
incorrect dependencies. Dependencies aren't meant to be compiled by most users. 
If you need a specific lib recompiled, you can copy the lib's section to the 
top of the script, add "exit 0" at the end, and that'll do.

In the future, we'll move this to a makefile system and probably get rid of the 
shell scripts.

But for now, this is by design.

Original comment by david.g.hoyt on 29 Sep 2010 at 4:40