~ubuntu-branches/ubuntu/oneiric/soqt/oneiric

« back to all changes in this revision

Viewing changes to build/msvc6/generate.sh

  • Committer: Bazaar Package Importer
  • Author(s): Steve M. Robbins
  • Date: 2009-03-01 11:41:00 UTC
  • mfrom: (1.1.4 upstream) (5.1.1 sid)
  • Revision ID: james.westby@ubuntu.com-20090301114100-f4zz3n1oasa52fgk
Tags: 1.4.2~svn20090224-2
* Upload upstream SVN head version containing fixes to build with Coin 3
  (Closes: #515729, #515736, #515742).  Upstream indicated to me that
  SVN is stable enough to release.

* control: Update Standards-Version to 3.8.0; no changes required.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#! /bin/sh
2
 
#
3
 
# This script generates the Visual Studio 6 build files for Windows.
4
 
#
5
 
# 20041214 larsa
6
 
 
7
 
rm -f soqt1.dsp soqt1.dsw soqt1.vcproj soqt1.sln install-headers.bat
8
 
 
9
 
build_pwd=`pwd`
10
 
build="`cygpath -w $build_pwd | sed -e 's/\\\\/\\\\\\\\/g'`"
11
 
build_pwd="`pwd | sed -e 's/\\//\\\\\\\\/g'`\\\\"
12
 
 
13
 
source_pwd=`cd ../..; pwd`
14
 
source="`cygpath -w $source_pwd | sed -e 's/\\\\/\\\\\\\\/g'`"
15
 
source_pwd="`(cd ../..; pwd) | sed -e 's/\\//\\\\\\\\/g'`"
16
 
 
17
 
../../configure --with-msvcrt=mtd --with-suffix=d \
18
 
  --enable-debug --enable-symbols || exit 1
19
 
cp src/config.h src/config-debug.h
20
 
 
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
24
 
 
25
 
cp config-wrapper.h src/config.h
26
 
 
27
 
make || exit 1
28
 
 
29
 
sed \
30
 
  -e "s/$build/./g" \
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; }' \
36
 
  -e 's/$/\r/g' \
37
 
  <soqt1.dsp >new.dsp
38
 
 
39
 
mv new.dsp soqt1.dsp
40
 
 
41
 
sed \
42
 
  -e "s/$build/./g" \
43
 
  -e "s/$build_pwd//g" \
44
 
  -e "s/$source/..\\\\../g" \
45
 
  -e "s/$source_pwd/..\\\\../g" \
46
 
  -e 's/$/\r/g' \
47
 
  <install-headers.bat >new.bat
48
 
 
49
 
mv new.bat install-headers.bat
50
 
 
51
 
find . -name "moc_*" | xargs rm
52
 
 
53
 
echo "Done."
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"
56
 
 
57
 
# How can I avoid the modal upgrade prompt-dialog for MSVC7.1 here???
58
 
# devenv /command "File.OpenProject $build\\soqt1.dsp"
59