3
# This script generates the Visual Studio 6 build files for Windows.
7
rm -f soqt1.dsp soqt1.dsw soqt1.vcproj soqt1.sln install-headers.bat
10
build="`cygpath -w $build_pwd | sed -e 's/\\\\/\\\\\\\\/g'`"
11
build_pwd="`pwd | sed -e 's/\\//\\\\\\\\/g'`\\\\"
13
source_pwd=`cd ../..; pwd`
14
source="`cygpath -w $source_pwd | sed -e 's/\\\\/\\\\\\\\/g'`"
15
source_pwd="`(cd ../..; pwd) | sed -e 's/\\//\\\\\\\\/g'`"
17
../../configure --with-msvcrt=mtd --with-suffix=d \
18
--enable-debug --enable-symbols || exit 1
19
cp src/config.h src/config-debug.h
21
../../configure --enable-msvcdsp --with-msvcrt=mt \
22
--disable-debug --disable-symbols --enable-optimization || exit 1
23
cp src/config.h src/config-release.h
25
cp config-wrapper.h src/config.h
31
-e "s/$build_pwd//g" \
32
-e "s/$source/..\\\\../g" \
33
-e "s/$source_pwd/..\\\\../g" \
34
-e 's/COIN_DLL/COIN_NOT_DLL/g' \
35
-e '/_MAKE_DLL/ { s/COIN_NOT_DLL/COIN_DLL/g; }' \
43
-e "s/$build_pwd//g" \
44
-e "s/$source/..\\\\../g" \
45
-e "s/$source_pwd/..\\\\../g" \
47
<install-headers.bat >new.bat
49
mv new.bat install-headers.bat
51
find . -name "moc_*" | xargs rm
54
echo "Make sure there are no absolute paths in the project files!"
55
echo "Modify so the static configurations are built with COIN_NOT_DLL"
57
# How can I avoid the modal upgrade prompt-dialog for MSVC7.1 here???
58
# devenv /command "File.OpenProject $build\\soqt1.dsp"