Skip to content

Commit

Permalink
add stack build for mac
Browse files Browse the repository at this point in the history
  • Loading branch information
estebanlm committed Jul 28, 2016
1 parent d32c6bf commit abffb39
Show file tree
Hide file tree
Showing 4 changed files with 113 additions and 0 deletions.
27 changes: 27 additions & 0 deletions 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
32 changes: 32 additions & 0 deletions 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
23 changes: 23 additions & 0 deletions 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 \
31 changes: 31 additions & 0 deletions 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 \

0 comments on commit abffb39

Please sign in to comment.