Skip to content

Commit

Permalink
Mac OS X build changes.
Browse files Browse the repository at this point in the history
Move the MIDI plugin to external, adding a Makefile.  It does not work under
Cocoa yetm and so is more convenient to work on externally.  Move FloatArray &
FloatMath plugins to internal; they're small, useful and stable.  Fix dependency
when plugins change from being internal to external and vice verse; they must be
recompiled.  Exclude sqMacV2Window.m SqViewBitmapConversion.m & SqViewClut.m;
JMM says these shouldn't be included.  rename the immutability build to
squeak.cog.spur+immutability (for "naming consistency").  Add some ignore props.


git-svn-id: http://squeakvm.org/svn/squeak/branches/Cog@3694 fa1542d4-bde8-0310-ad64-8ed1123d492a

Former-commit-id: 4b1b584dd988265fe8cd3d1bb1f500b20431a012
  • Loading branch information
eliotmiranda committed May 4, 2016
1 parent 3e4f45f commit 7074989
Show file tree
Hide file tree
Showing 36 changed files with 113 additions and 147 deletions.
3 changes: 3 additions & 0 deletions build.macos32x86/common/Makefile.plugin
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@ LIBOBJ:=$(addprefix $(OBJDIR)/,$(LIBOBJ))

VPATH:= $(SRCDIRS)

# If plugins change from internal to external they must be recompiled.
$(BUILD)/$(LIBNAME)/$(LIBNAME).o: plugins.int plugins.ext

#############################################################################
# Rules for automated builds

Expand Down
7 changes: 5 additions & 2 deletions build.macos32x86/common/Makefile.vm
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,13 @@ UNIXVMDIR:=$(PLATDIR)/unix/vm

MAKERSRC:=$(wildcard $(VMSRCDIR)/gcc3x-*interp.c $(VMSRCDIR)/cogit.c)
CROSSSRC:= $(wildcard $(CROSSDIR)/*.c)
XEX:=%/sqSqueakMainApplication+screen.m
OSXSRC:=$(wildcard $(OSXDIR)/*.c) $(filter-out $(XEX),$(wildcard $(OSXDIR)/*.m)) \
#XEX:= ... %/sqMacV2Browser.m ...
XEX:=%/sqSqueakMainApplication+screen.m %/sqMacV2Window.m \
%/SqViewBitmapConversion.m %/SqViewClut.m
OSXSRC=$(wildcard $(OSXDIR)/*.c) $(wildcard $(OSXDIR)/*.m) \
$(wildcard $(OSXCOMMONDIR)/*.c) $(wildcard $(OSXCOMMONDIR)/*.m) \
$(wildcard $(OSXCLASSESDIR)/*.c) $(wildcard $(OSXCLASSESDIR)/*.m)
OSXSRC:=$(filter-out $(XEX),$(OSXSRC))
UNIXSRC:=$(addprefix $(UNIXVMDIR)/,aio.c sqUnixHeartbeat.c sqUnixSpurMemory.c \
sqUnixThreads.c sqUnixVMProfile.c)
VMSRC:= $(MAKERSRC) $(CROSSSRC) $(OSXSRC) $(UNIXSRC)
Expand Down
2 changes: 1 addition & 1 deletion build.macos32x86/makeproduct
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
trap 'exit 2' HUP INT PIPE TERM
PRODUCTDIRS="newspeak.cog.spur pharo.cog.spur squeak.cog.spur squeak.cog.v3 squeak.cog.spur.immutability"
PRODUCTDIRS="newspeak.cog.spur pharo.cog.spur squeak.cog.spur squeak.cog.v3 squeak.cog.spur+immutability"
for d in $PRODUCTDIRS; do
if test -d "$d"; then
(cd ./$d;./mvm -A)
Expand Down
2 changes: 1 addition & 1 deletion build.macos32x86/makeproductclean
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
trap 'exit 2' HUP INT PIPE TERM
PRODUCTDIRS="newspeak.cog.spur pharo.cog.spur squeak.cog.spur squeak.cog.v3 squeak.cog.spur.immutability"
PRODUCTDIRS="newspeak.cog.spur pharo.cog.spur squeak.cog.spur squeak.cog.v3 squeak.cog.spur+immutability"
for d in $PRODUCTDIRS; do
if test -d "$d"; then
(cd ./$d;echo $d;make cleanall)
Expand Down
13 changes: 0 additions & 13 deletions build.macos32x86/squeak+immutability.cog.spur/Makefile

This file was deleted.

12 changes: 0 additions & 12 deletions build.macos32x86/squeak+immutability.cog.spur/plugins.ext

This file was deleted.

34 changes: 0 additions & 34 deletions build.macos32x86/squeak+immutability.cog.spur/plugins.int

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
# Copied, perhaps edited, from ../src/examplePlugins.ext
# MIDIPlugin does not work on Cocoa so keep it external until it can be fixed.
EXTERNAL_PLUGINS = \
BochsIA32Plugin \
BochsX64Plugin \
GdbARMPlugin \
CroquetPlugin \
FloatArrayPlugin \
FloatMathPlugin \
MIDIPlugin \
Mpeg3Plugin \
SqueakFFIPrims \
SqueakSSL \
UUIDPlugin \
UnixOSProcessPlugin
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@ DropPlugin \
DSAPrims \
FFTPlugin \
FilePlugin \
FloatArrayPlugin \
FloatMathPlugin \
HostWindowPlugin \
IA32ABI \
JPEGReaderPlugin \
JPEGReadWriter2Plugin \
Klatt \
LargeIntegers \
LocalePlugin \
MacMenubarPlugin \
Matrix2x3Plugin \
MIDIPlugin \
MiscPrimitivePlugin \
RePlugin \
SecurityPlugin \
Expand All @@ -31,7 +31,9 @@ SoundGenerationPlugin \
SoundPlugin \
StarSqueakPlugin \
SurfacePlugin \
UUIDPlugin \
VMProfileMacSupportPlugin \
# B3DAcceleratorPlugin \
# InternetConfigPlugin \
# JoystickTabletPlugin
# JoystickTabletPlugin \
# MacMenubarPlugin # Does not work under Cocoa
30 changes: 0 additions & 30 deletions build.macos32x86/squeak.cog.spur.immutability/mvm

This file was deleted.

5 changes: 2 additions & 3 deletions build.macos32x86/squeak.cog.spur/plugins.ext
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
# Copied, perhaps edited, from ../src/examplePlugins.ext
# MIDIPlugin does not work on Cocoa so keep it external until it can be fixed.
EXTERNAL_PLUGINS = \
BochsIA32Plugin \
BochsX64Plugin \
GdbARMPlugin \
CroquetPlugin \
FloatArrayPlugin \
FloatMathPlugin \
MIDIPlugin \
Mpeg3Plugin \
SqueakFFIPrims \
SqueakSSL \
UUIDPlugin \
UnixOSProcessPlugin
8 changes: 5 additions & 3 deletions build.macos32x86/squeak.cog.spur/plugins.int
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@ DropPlugin \
DSAPrims \
FFTPlugin \
FilePlugin \
FloatArrayPlugin \
FloatMathPlugin \
HostWindowPlugin \
IA32ABI \
JPEGReaderPlugin \
JPEGReadWriter2Plugin \
Klatt \
LargeIntegers \
LocalePlugin \
MacMenubarPlugin \
Matrix2x3Plugin \
MIDIPlugin \
MiscPrimitivePlugin \
RePlugin \
SecurityPlugin \
Expand All @@ -31,7 +31,9 @@ SoundGenerationPlugin \
SoundPlugin \
StarSqueakPlugin \
SurfacePlugin \
UUIDPlugin \
VMProfileMacSupportPlugin \
# B3DAcceleratorPlugin \
# InternetConfigPlugin \
# JoystickTabletPlugin
# JoystickTabletPlugin \
# MacMenubarPlugin # Does not work under Cocoa
7 changes: 5 additions & 2 deletions build.macos32x86/squeak.cog.v3/plugins.ext
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
# Copied, perhaps edited, from ../src/examplePlugins.ext
# MIDIPlugin does not work on Cocoa so keep it external until it can be fixed.
EXTERNAL_PLUGINS = \
BochsIA32Plugin \
BochsX64Plugin \
GdbARMPlugin \
CroquetPlugin \
FloatArrayPlugin \
FloatMathPlugin \
MIDIPlugin \
Mpeg3Plugin \
SqueakFFIPrims \
SqueakSSL \
Expand Down
7 changes: 6 additions & 1 deletion build.macos32x86/squeak.cog.v3/plugins.int
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ DropPlugin \
DSAPrims \
FFTPlugin \
FilePlugin \
FloatArrayPlugin \
FloatMathPlugin \
HostWindowPlugin \
IA32ABI \
JPEGReaderPlugin \
Expand All @@ -31,4 +33,7 @@ StarSqueakPlugin \
SurfacePlugin \
UUIDPlugin \
VMProfileMacSupportPlugin \
# JoystickTabletPlugin
# B3DAcceleratorPlugin \
# InternetConfigPlugin \
# JoystickTabletPlugin \
# MacMenubarPlugin # Does not work under Cocoa
1 change: 1 addition & 0 deletions build.macos32x86/squeak.sista.spur/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#

VMSRCDIR:= ../../spursistasrc/vm
COGDEFS=-DIMMUTABILITY=1
SOURCEFILE:=SqueakV50.sources

APPPOST:=overwriteSqueakIcon
Expand Down
5 changes: 2 additions & 3 deletions build.macos32x86/squeak.sista.spur/plugins.ext
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
# Copied, perhaps edited, from ../src/examplePlugins.ext
# MIDIPlugin does not work on Coca so keeping it external until it can be fixed.
EXTERNAL_PLUGINS = \
BochsIA32Plugin \
BochsX64Plugin \
GdbARMPlugin \
CroquetPlugin \
FloatArrayPlugin \
FloatMathPlugin \
MIDIPlugin \
Mpeg3Plugin \
SqueakFFIPrims \
SqueakSSL \
UUIDPlugin \
UnixOSProcessPlugin
8 changes: 7 additions & 1 deletion build.macos32x86/squeak.sista.spur/plugins.int
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ DropPlugin \
DSAPrims \
FFTPlugin \
FilePlugin \
FloatArrayPlugin \
FloatMathPlugin \
HostWindowPlugin \
IA32ABI \
JPEGReaderPlugin \
Expand All @@ -29,5 +31,9 @@ SoundGenerationPlugin \
SoundPlugin \
StarSqueakPlugin \
SurfacePlugin \
UUIDPlugin \
VMProfileMacSupportPlugin \
# JoystickTabletPlugin
# B3DAcceleratorPlugin \
# InternetConfigPlugin \
# JoystickTabletPlugin \
# MacMenubarPlugin # Does not work under Cocoa
5 changes: 2 additions & 3 deletions build.macos32x86/squeak.stack.spur/plugins.ext
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
# Copied, perhaps edited, from ../src/examplePlugins.ext
# MIDIPlugin does not work on Cocoa so keep it external until it can be fixed.
EXTERNAL_PLUGINS = \
CroquetPlugin \
FloatArrayPlugin \
FloatMathPlugin \
MIDIPlugin \
Mpeg3Plugin \
SqueakFFIPrims \
SqueakSSL \
UUIDPlugin \
UnixOSProcessPlugin
8 changes: 7 additions & 1 deletion build.macos32x86/squeak.stack.spur/plugins.int
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ DropPlugin \
DSAPrims \
FFTPlugin \
FilePlugin \
FloatArrayPlugin \
FloatMathPlugin \
HostWindowPlugin \
IA32ABI \
JPEGReaderPlugin \
Expand All @@ -29,5 +31,9 @@ SoundGenerationPlugin \
SoundPlugin \
StarSqueakPlugin \
SurfacePlugin \
UUIDPlugin \
VMProfileMacSupportPlugin \
# JoystickTabletPlugin
# B3DAcceleratorPlugin \
# InternetConfigPlugin \
# JoystickTabletPlugin \
# MacMenubarPlugin # Does not work under Cocoa
4 changes: 2 additions & 2 deletions build.macos32x86/squeak.stack.v3/plugins.ext
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Copied, perhaps edited, from ../src/examplePlugins.ext
# MIDIPlugin does not work on Cocoa so keep it external until it can be fixed.
EXTERNAL_PLUGINS = \
CroquetPlugin \
FloatArrayPlugin \
FloatMathPlugin \
MIDIPlugin \
Mpeg3Plugin \
SqueakFFIPrims \
SqueakSSL \
Expand Down
7 changes: 6 additions & 1 deletion build.macos32x86/squeak.stack.v3/plugins.int
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ DropPlugin \
DSAPrims \
FFTPlugin \
FilePlugin \
FloatArrayPlugin \
FloatMathPlugin \
HostWindowPlugin \
IA32ABI \
JPEGReaderPlugin \
Expand All @@ -31,4 +33,7 @@ StarSqueakPlugin \
SurfacePlugin \
UUIDPlugin \
VMProfileMacSupportPlugin \
# JoystickTabletPlugin
# B3DAcceleratorPlugin \
# InternetConfigPlugin \
# JoystickTabletPlugin \
# MacMenubarPlugin # Does not work under Cocoa
3 changes: 3 additions & 0 deletions build.macos64x64/common/Makefile.plugin
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@ LIBOBJ:=$(addprefix $(OBJDIR)/,$(LIBOBJ))

VPATH:= $(SRCDIRS)

# If plugins change from internal to external they must be recompiled.
$(BUILD)/$(LIBNAME)/$(LIBNAME).o: plugins.int plugins.ext

#############################################################################
# Rules for automated builds

Expand Down
7 changes: 5 additions & 2 deletions build.macos64x64/common/Makefile.vm
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,13 @@ UNIXVMDIR:=$(PLATDIR)/unix/vm

MAKERSRC:=$(wildcard $(VMSRCDIR)/gcc3x-*interp.c $(VMSRCDIR)/cogit.c)
CROSSSRC:= $(wildcard $(CROSSDIR)/*.c)
XEX:=%/sqSqueakMainApplication+screen.m
OSXSRC:=$(wildcard $(OSXDIR)/*.c) $(filter-out $(XEX),$(wildcard $(OSXDIR)/*.m)) \
#XEX:= ... %/sqMacV2Browser.m ...
XEX:=%/sqSqueakMainApplication+screen.m %/sqMacV2Window.m \
%/SqViewBitmapConversion.m %/SqViewClut.m
OSXSRC=$(wildcard $(OSXDIR)/*.c) $(wildcard $(OSXDIR)/*.m) \
$(wildcard $(OSXCOMMONDIR)/*.c) $(wildcard $(OSXCOMMONDIR)/*.m) \
$(wildcard $(OSXCLASSESDIR)/*.c) $(wildcard $(OSXCLASSESDIR)/*.m)
OSXSRC:=$(filter-out $(XEX),$(OSXSRC))
UNIXSRC:=$(addprefix $(UNIXVMDIR)/,aio.c sqUnixHeartbeat.c sqUnixSpurMemory.c \
sqUnixThreads.c sqUnixVMProfile.c)
VMSRC:= $(MAKERSRC) $(CROSSSRC) $(OSXSRC) $(UNIXSRC)
Expand Down
2 changes: 1 addition & 1 deletion build.macos64x64/pharo.cog.spur/plugins.int
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ SurfacePlugin \
UUIDPlugin \
VMProfileMacSupportPlugin \
# JoystickTabletPlugin \
# SerialPlugin
# SerialPlugin # Does not compile under 64-bits
Loading

0 comments on commit 7074989

Please sign in to comment.