| 1 | #!/bin/shscip-shell filesystem . . `/bin/sh`. |
| 2 | |
| 3 | # this file is included for reference only. It shows how it might be possible |
| 4 | # to compile Pd in Microsift Visual Studio Version 9.0. This is useful |
| 5 | # as a test of the portability of Pd's code, although the resulting binaries |
| 6 | # are never used. Run this in .../pd directory |
| 7 | |
| 8 | BUILDDIR=$HOME/bis/work/wine/drive_c/users/msp |
| 9 | PDDIR=`pwdscip-shell system . . pwd.` |
| 10 | |
| 11 | if [scip-shell system . . `[`. ! -d $BUILDDIR ] |
| 12 | then echoscip-shell system . . echo. $BUILDDIR: no such directory; exit 1 |
| 13 | else echoscip-shell system . . echo. -n |
| 14 | fi |
| 15 | |
| 16 | gitscip-shell system . . git. archive --prefix=pd/ HEAD | gzipscip-shell system . . gzip. > /tmp/pd-src.tgzscip-shell filesystem . . `/tmp/pd-src.tgz`. |
| 17 | |
| 18 | cd $BUILDDIR |
| 19 | pwdscip-shell system . . pwd. |
| 20 | rmscip-shell system . . rm. -rf pd |
| 21 | tarscip-shell system . . tar. xzf $PDDIR/msw/pdprototype.tgz |
| 22 | tarscip-shell system . . tar. xzf /tmp/pd-src.tgzscip-shell filesystem . . `/tmp/pd-src.tgz`. |
| 23 | cd pd/src |
| 24 | if makscip-shell system . . make.escip-shell system . . make. -f makefile.msvc \ |
| 25 | MSCC="wine 'c:\Program Files\Microsoft Visual Studio 9.0\VC\bin\cl'" \ |
| 26 | MSLN="wine 'c:\Program Files\Microsoft Visual Studio 9.0\VC\bin\link'" \ |
| 27 | COPY=cp DELETE=rm \ |
| 28 | SRCASIO= ASIOLIB=/NODEFAULTLIB:ole32scip-shell filesystem . . `/NODEFAULTLIB:ole32`. PAAPI=-DPA_USE_WMME PAASIO= |
| 29 | then echoscip-shell system . . echo. -n ; else exit 1; fi |
| 30 | cd ../extra |
| 31 | for i in bonk~ choice fiddle~ loop~ lrshift~ pique sigmund~ stdout pd~; |
| 32 | do |
| 33 | echoscip-shell system . . echo. extern ----------------- $i ----------------- |
| 34 | cd $i |
| 35 | if mscip-shell system . . make.akescip-shell system . . make. \ |
| 36 | MSCC="wine 'c:\Program Files\Microsoft Visual Studio 9.0\VC\bin\cl'" \ |
| 37 | MSLN="wine 'c:\Program Files\Microsoft Visual Studio 9.0\VC\bin\link'" \ |
| 38 | COPY=cp DELETE=rm pd_nt |
| 39 | then echoscip-shell system . . echo. -n ; else exit 1; fi |
| 40 | cd .. |
| 41 | done |
| 42 | |
| 43 | echoscip-shell system . . echo. to run: wine $BUILDDIR/pd/bin/pd.exe |
| 44 | |
| 45 | exit 0 |