From abffb393b3d15ed9a6f6df35eac0451f42cf8f2d Mon Sep 17 00:00:00 2001 From: Esteban Lorenzano Date: Thu, 28 Jul 2016 18:04:49 +0200 Subject: [PATCH] add stack build for mac --- build.macos32x86/pharo.stack.spur/Makefile | 27 ++++++++++++++++ build.macos32x86/pharo.stack.spur/mvm | 32 +++++++++++++++++++ build.macos32x86/pharo.stack.spur/plugins.ext | 23 +++++++++++++ build.macos32x86/pharo.stack.spur/plugins.int | 31 ++++++++++++++++++ 4 files changed, 113 insertions(+) create mode 100644 build.macos32x86/pharo.stack.spur/Makefile create mode 100755 build.macos32x86/pharo.stack.spur/mvm create mode 100644 build.macos32x86/pharo.stack.spur/plugins.ext create mode 100644 build.macos32x86/pharo.stack.spur/plugins.int diff --git a/build.macos32x86/pharo.stack.spur/Makefile b/build.macos32x86/pharo.stack.spur/Makefile new file mode 100644 index 0000000000..7e1e219835 --- /dev/null +++ b/build.macos32x86/pharo.stack.spur/Makefile @@ -0,0 +1,27 @@ +############################################################################## +# Makefile for Mac OS X Cog Spur Pharo Cocoa VM using clang and gnu make 3.81 +# Do make init to allow make -n to function. +# + +VMSRCDIR:=../../spurstacksrc/vm +PLUGINSRCDIR:=../../spurstacksrc/plugins +VM:=Pharo +COGDEFS:=-DPharoVM=1 +APPNAME:=Pharo +APPNAMEDEF:=$(APPNAME) +USEPLUGINASDYLIB:=TRUE +THIRDPARTYLIBS:=pkgconfig freetype2 libssh2 libgit2 pixman libpng cairo + +# Now include the Makefile proper, which is common to all Mac OS builds. +# +include ../common/Makefile.app + +# third-party libraries +# +include ../third-party/pkgconfig/Makefile.lib +include ../third-party/freetype2/Makefile.lib +include ../third-party/libssh2/Makefile.lib +include ../third-party/libgit2/Makefile.lib +include ../third-party/pixman/Makefile.lib +include ../third-party/libpng/Makefile.lib +include ../third-party/cairo/Makefile.lib diff --git a/build.macos32x86/pharo.stack.spur/mvm b/build.macos32x86/pharo.stack.spur/mvm new file mode 100755 index 0000000000..d45a507ea3 --- /dev/null +++ b/build.macos32x86/pharo.stack.spur/mvm @@ -0,0 +1,32 @@ +#!/bin/bash +A=;D=;F= +if [ $# = 0 ]; then + A=1;D=1;F=1 +else + while getopts 'ASTadf?' opt "$@"; do + case $opt in + A) A=1;D=1;F=1;; + S) echo -S not yet implemented\; use -A for now 1>&1; exit 1;; + T) echo -T not yet implemented\; use -A for now 1>&1; exit 1;; + a) A=1;; + d) D=1;; + f) F=1;; + *) echo usage $0 [-A] [-a\ [-d] [-f]; exit 0;; + esac + done + if [ "$1" = -- ]; then + if [ "$A$D$F" = "" ]; then + A=1;D=1;F=1 + fi + fi + shift `expr $OPTIND - 1` +fi +if [ -n "$D" ]; then + make $@ debug 2>&1 | tee LOGD +fi +if [ -n "$A" ]; then + make $@ assert 2>&1 | tee LOGA +fi +if [ -n "$F" ]; then + make $@ 2>&1 | tee LOGF +fi diff --git a/build.macos32x86/pharo.stack.spur/plugins.ext b/build.macos32x86/pharo.stack.spur/plugins.ext new file mode 100644 index 0000000000..f2e75f316f --- /dev/null +++ b/build.macos32x86/pharo.stack.spur/plugins.ext @@ -0,0 +1,23 @@ +# Copied, perhaps edited, from ../src/examplePlugins.ext +EXTERNAL_PLUGINS = \ +CroquetPlugin \ +FT2Plugin \ +FloatMathPlugin \ +JPEGReadWriter2Plugin \ +JPEGReaderPlugin \ +LocalePlugin \ +MIDIPlugin \ +Mpeg3Plugin \ +RePlugin \ +SqueakSSL \ +SurfacePlugin \ +UUIDPlugin \ +SerialPlugin \ +SDL2DisplayPlugin \ +ObjectiveCPlugin \ +# could work, but I don't know if relevant: +# TestOSAPlugin \ +# not working (because of Cocoa vs Carbon): +# QuicktimePlugin \ +# JoystickTabletPlugin \ +# B3DAcceleratorPlugin \ \ No newline at end of file diff --git a/build.macos32x86/pharo.stack.spur/plugins.int b/build.macos32x86/pharo.stack.spur/plugins.int new file mode 100644 index 0000000000..6f69d6662b --- /dev/null +++ b/build.macos32x86/pharo.stack.spur/plugins.int @@ -0,0 +1,31 @@ +# Copied, perhaps edited, from ../src/examplePlugins.int +INTERNAL_PLUGINS = \ +ADPCMCodecPlugin \ +AioPlugin \ +AsynchFilePlugin \ +B2DPlugin \ +BMPReadWriterPlugin \ +BitBltPlugin \ +ClipboardExtendedPlugin \ +DSAPrims \ +DropPlugin \ +FFTPlugin \ +FilePlugin \ +FloatArrayPlugin \ +GeniePlugin \ +HostWindowPlugin \ +IA32ABI \ +LargeIntegers \ +Matrix2x3Plugin \ +MiscPrimitivePlugin \ +SecurityPlugin \ +SocketPlugin \ +SoundCodecPrims \ +SoundGenerationPlugin \ +SoundPlugin \ +SqueakFFIPrims \ +StarSqueakPlugin \ +UnixOSProcessPlugin \ +ZipPlugin \ +# IA32FFIPlugin \ +# Klatt \ \ No newline at end of file