]> git.tdb.fi Git - builder.git/blobdiff - bootstrap.sh
Add a feature for overlay source directories
[builder.git] / bootstrap.sh
index 70d032399886d10d9bd983342a426e47866be271..5cb40121f4fae3a03d9dac81201259850390a538 100755 (executable)
@@ -61,7 +61,7 @@ for i in $REQUIRED; do
                else
                        ln -sf $path/source "$INCLUDEDIR/msp/$i"
                fi
-               sources="$sources `find $path/source -name '*.cpp'`"
+               sources="$sources `find $path/source \( -name windows -prune \) -o \( -name '*.cpp' -print \)`"
        fi
 done
 
@@ -72,6 +72,10 @@ if [ ! -z "$missing" ]; then
        exit 1
 fi
 
+for i in "$INCLUDEDIR/msp/"*/unix; do
+       CFLAGS="$CFLAGS -iquote $i -iquote ${i%/unix}"
+done
+
 echo "Compiling builder-stage1.  This may take several minutes."
 g++ $sources -o builder-stage1 $CFLAGS $LIBS
 echo "Using builder-stage1 to compile builder."