author | Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com> |
Sat, 15 May 2010 22:04:10 -0500 | |
changeset 267 | dc53d2faef95 |
parent 160 | 40d5813fab4a |
permissions | -rwxr-xr-x |
78
da4f3011092a
Universal binary support in build system. Sorta duct-taped, but whatever.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
1 |
#!/bin/sh |
da4f3011092a
Universal binary support in build system. Sorta duct-taped, but whatever.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
2 |
|
da4f3011092a
Universal binary support in build system. Sorta duct-taped, but whatever.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
3 |
set -e |
da4f3011092a
Universal binary support in build system. Sorta duct-taped, but whatever.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
4 |
set -x |
da4f3011092a
Universal binary support in build system. Sorta duct-taped, but whatever.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
5 |
|
da4f3011092a
Universal binary support in build system. Sorta duct-taped, but whatever.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
6 |
NCPU=`sysctl -n hw.ncpu` |
da4f3011092a
Universal binary support in build system. Sorta duct-taped, but whatever.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
7 |
|
da4f3011092a
Universal binary support in build system. Sorta duct-taped, but whatever.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
8 |
for arch in ppc i386 x86_64 ; do |
109
d0ed8b1f4f7a
Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
92
diff
changeset
|
9 |
make -f makefile.old macosx=true macosx_arch=$arch clean |
d0ed8b1f4f7a
Resolved merges of FindOggVorbis.cmake and CMakeLists.txt
Neal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
parents:
92
diff
changeset
|
10 |
make -f makefile.old macosx=true macosx_arch=$arch -j$NCPU |
92
069e5d31134b
Reworked build system to make Mac Universal Binaries correctly on one machine.
Ryan C. Gordon <icculus@icculus.org>
parents:
78
diff
changeset
|
11 |
# We always strip here. For debugging, you should do "make" directly. |
160 | 12 |
strip ./lugaru-$arch |
13 |
BINS="$BINS ./lugaru-$arch" |
|
78
da4f3011092a
Universal binary support in build system. Sorta duct-taped, but whatever.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
14 |
done |
da4f3011092a
Universal binary support in build system. Sorta duct-taped, but whatever.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
15 |
|
160 | 16 |
rm -f ./lugaru-bin |
17 |
lipo -create -o ./lugaru-bin $BINS |
|
78
da4f3011092a
Universal binary support in build system. Sorta duct-taped, but whatever.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset
|
18 |