diff options
author | DRC <dcommander@users.sourceforge.net> | 2010-01-12 05:25:44 +0000 |
---|---|---|
committer | DRC <dcommander@users.sourceforge.net> | 2010-01-12 05:25:44 +0000 |
commit | d455393c8554bec83f13eb4a4fe96ff9067f58d8 (patch) | |
tree | 369f64724de8a3581d0c9728fe27f4e855e4cf6c /release | |
parent | 8d02c963d6f512eafc84e37f1e98761b167ce373 (diff) | |
download | tigervnc-d455393c8554bec83f13eb4a4fe96ff9067f58d8.tar.gz tigervnc-d455393c8554bec83f13eb4a4fe96ff9067f58d8.zip |
Added scripts for building cross-compatible binaries and 64-bit binaries on OS/X
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3945 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'release')
-rwxr-xr-x | release/build-compat-osx | 21 | ||||
-rwxr-xr-x | release/build-osx-64 | 15 | ||||
-rwxr-xr-x | release/build-osx-m32 | 16 |
3 files changed, 52 insertions, 0 deletions
diff --git a/release/build-compat-osx b/release/build-compat-osx new file mode 100755 index 00000000..fd85bda4 --- /dev/null +++ b/release/build-compat-osx @@ -0,0 +1,21 @@ +#!/bin/sh +# This script builds a version of TigerVNC on OS/X 10.5 or later which is +# compatible with OS/X 10.4 or later. The OS/X 10.4 compatibility SDK (part +# of XCode) must be installed. + +set -e + +SCRIPTDIR=`dirname $0` +pushd $SCRIPTDIR/.. +CC=gcc-4.0 +CXX=g++-4.0 +CPP=cpp-4.0 +CFLAGS='-isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -O3 -m32' +CXXFLAGS=$CFLAGS +LDFLAGS=$CFLAGS +CPPFLAGS=$CFLAGS +export CFLAGS CXXFLAGS LDFLAGS CPPFLAGS CC CXX CPP +autoreconf -fiv +configure --x-libraries=/usr/X11R6/lib/ +make +popd diff --git a/release/build-osx-64 b/release/build-osx-64 new file mode 100755 index 00000000..417450f7 --- /dev/null +++ b/release/build-osx-64 @@ -0,0 +1,15 @@ +#!/bin/sh +# This script builds a 64-bit version of TigerVNC on OS/X 10.6 or later. +# NASM 2.07 or later from MacPorts must be installed in /opt/local. + +set -e + +SCRIPTDIR=`dirname $0` +pushd $SCRIPTDIR/.. +CFLAGS='-O3' +CXXFLAGS=$CFLAGS +export CFLAGS CXXFLAGS +autoreconf -fiv +configure --host=x86_64-apple-darwin10.0.0 NASM=/opt/local/bin/nasm +make +popd diff --git a/release/build-osx-m32 b/release/build-osx-m32 new file mode 100755 index 00000000..f2feeaa3 --- /dev/null +++ b/release/build-osx-m32 @@ -0,0 +1,16 @@ +#!/bin/sh +# This script builds a 32-bit version of TigerVNC on OS/X 10.4 or later. The +# resulting version of TigerVNC is not backward compatible. + +set -e + +SCRIPTDIR=`dirname $0` +pushd $SCRIPTDIR/.. +CFLAGS='-O3 -m32' +CXXFLAGS=$CFLAGS +LDFLAGS=$CFLAGS +export CFLAGS CXXFLAGS LDFLAGS +autoreconf -fiv +configure +make +popd |