Permalink
Browse files

Add autobuild script for OS X

  • Loading branch information...
1 parent b037654 commit 5e93311f3138ae35e1cd1ce9d95a14bab1dcf33d @andoma committed Jan 16, 2014
Showing with 38 additions and 27 deletions.
  1. +34 −0 Autobuild/osx.sh
  2. +3 −26 configure.osx
  3. +1 −1 support/configure.inc
View
@@ -0,0 +1,34 @@
+build()
+{
+ which ccache >/dev/null
+ if [ $? -eq 0 ]; then
+ echo "Using ccache"
+ ccache -s
+ export CCACHE_CPP2=yes
+ USE_CCACHE="--ccache"
+ else
+ USE_CCACHE=""
+ fi
+
+ ./configure.osx ${RELEASE} --cleanbuild ${USE_CCACHE}
+ make ${JARGS} dist
+ artifact build.osx/Showtime.dmg dmg application/octet-stream Showtime.dmg
+
+}
+
+clean()
+{
+ echo No clean needs to be done
+}
+
+deps()
+{
+ echo No deps needs to be done
+}
+
+buildenv()
+{
+ echo No buildenv needs to be done
+}
+
+eval $OP
View
@@ -21,6 +21,8 @@ CPU=generic
ARCH=`uname -m`
MACOSXTARGET=""
MACOSXSDK=""
+CC=cc
+CXX=c++
show_help(){
common_help
@@ -80,38 +82,13 @@ for opt do
esac
done
+
setup_env "$@"
enable libpthread
enable zlib
#
-# c compiler
-#
-checkcc() {
- cat >$TMPDIR/1.c <<EOF
-int main() {
- return 0;
-}
-EOF
- $CC 2>/dev/null $TMPDIR/1.c -o $TMPDIR/1.bin
-}
-
-if [ "x$CC" != "x" ]; then
- echo >>${CONFIG_MAK} "CC=$CC"
- CC="$CC"
-else
- CC="cc"
-fi
-
-if checkcc; then
- echo "Using C compiler: $CC"
-else
- echo "C compiler ($CC) is not working"
- die
-fi
-
-#
# Check SDK path and set target version
#
if [ "x$MACOSXSDK" != "x" ] ; then
View
@@ -438,7 +438,7 @@ freetype_setup()
(cd ${FREETYPE_BUILD_DIR} && \
- CC=${TOOLCHAIN}gcc AR=${TOOLCHAIN}ar RANLIB=${TOOLCHAIN}ranlib \
+ CC="${CC}" AR=${TOOLCHAIN}ar RANLIB=${TOOLCHAIN}ranlib \
${FREETYPE_SRC_DIR}/configure \
$1 \
--prefix=${EXT_INSTALL_DIR} \

0 comments on commit 5e93311

Please sign in to comment.