Skip to content

Commit

Permalink
try to build sista on windows, too
Browse files Browse the repository at this point in the history
  • Loading branch information
timfel committed Nov 15, 2016
1 parent b07b562 commit ca08c9b
Show file tree
Hide file tree
Showing 15 changed files with 219 additions and 0 deletions.
1 change: 1 addition & 0 deletions .appveyor.yml
Expand Up @@ -6,6 +6,7 @@ environment:
BINTRAYAPIKEY:
secure: uknPzww818XWJiLecwur9p1MfrkACOyx9d3iNrw/TuD89EoPSc8zLqKdPZjWdcQd
matrix:
- FLAVOR: squeak.sista.spur
- FLAVOR: squeak.cog.spur
- FLAVOR: squeak.cog.v3
- FLAVOR: squeak.stack.spur
Expand Down
3 changes: 3 additions & 0 deletions build.win32x86/squeak.sista.spur/Croquet.def.in
@@ -0,0 +1,3 @@
; Set the total stack size to 4 megabytes (0x400000), reserving 4Mb and
; committing 64k (0x10000)
STACKSIZE 0x400000,0x10000
30 changes: 30 additions & 0 deletions build.win32x86/squeak.sista.spur/Croquet.exe.manifest
@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly
xmlns="urn:schemas-microsoft-com:asm.v1"
manifestVersion="1.0"
xmlns:asmv3="urn:schemas-microsoft-com:asm.v3">
<assemblyIdentity
version="1.0.0.0"
processorArchitecture="*"
name="www.mirandabanda.org.Cog.Croquet"
type="win32"
/>
<description>Croquet Smalltalk Virtual Machine</description>
<asmv3:application>
<asmv3:windowsSettings xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">
<dpiAware>false</dpiAware>
</asmv3:windowsSettings>
</asmv3:application>
<dependency>
<dependentAssembly>
<assemblyIdentity
type="win32"
name="Microsoft.Windows.Common-Controls"
version="6.0.0.0"
processorArchitecture="*"
publicKeyToken="6595b64144ccf1df"
language="*"
/>
</dependentAssembly>
</dependency>
</assembly>
Binary file added build.win32x86/squeak.sista.spur/Croquet.ico
Binary file not shown.
32 changes: 32 additions & 0 deletions build.win32x86/squeak.sista.spur/Croquet.rc
@@ -0,0 +1,32 @@
#ifdef _WIN32
1 ICON DISCARDABLE "Croquet.ico"
2 ICON DISCARDABLE "Croquet.ico"
3 ICON DISCARDABLE "Croquet.ico"

1 VERSIONINFO
FILEVERSION FILEVERSIONVALUES
PRODUCTVERSION 5,0,0,0
FILEFLAGSMASK 0x3fL
FILEFLAGS 0xaL
FILEOS 0x10001L
FILETYPE 0x1L
FILESUBTYPE 0x0L
BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "040904E4" // Lang=US English, CharSet=Windows Multilin
BEGIN
VALUE "CompanyName", "Squeak.org\0"
VALUE "FileDescription", "Croquet Cog Spur Virtual Machine\0"
VALUE "FileVersion", FILEVERSIONSTRING
VALUE "LegalCopyright", "Copyright \251 Squeak.org 1996-2014\0"
VALUE "ProductName", "Croquet Cog Spur\0"
VALUE "ProductVersion", "5.0\0"
END
END
BLOCK "VarFileInfo"
BEGIN
VALUE "Translation", 0x409, 1252
END
END
#endif
Binary file not shown.
9 changes: 9 additions & 0 deletions build.win32x86/squeak.sista.spur/Makefile
@@ -0,0 +1,9 @@
#############################################################################
# Makefile for Win32 Cog Spur Squeak VM using gcc-3.4.x and cygwin
# Do make init to allow make -n to function.
#############################################################################

VM:=Squeak
VMSRCDIR:=../../spursistasrc/vm

include ../common/Makefile
Empty file.
3 changes: 3 additions & 0 deletions build.win32x86/squeak.sista.spur/Squeak.def.in
@@ -0,0 +1,3 @@
; Set the total stack size to 4 megabytes (0x400000), reserving 4Mb and
; committing 64k (0x10000)
STACKSIZE 0x400000,0x10000
30 changes: 30 additions & 0 deletions build.win32x86/squeak.sista.spur/Squeak.exe.manifest
@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly
xmlns="urn:schemas-microsoft-com:asm.v1"
manifestVersion="1.0"
xmlns:asmv3="urn:schemas-microsoft-com:asm.v3">
<assemblyIdentity
version="1.0.0.0"
processorArchitecture="*"
name="www.mirandabanda.org.Cog.Squeak"
type="win32"
/>
<description>Squeak Smalltalk Virtual Machine</description>
<asmv3:application>
<asmv3:windowsSettings xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">
<dpiAware>false</dpiAware>
</asmv3:windowsSettings>
</asmv3:application>
<dependency>
<dependentAssembly>
<assemblyIdentity
type="win32"
name="Microsoft.Windows.Common-Controls"
version="6.0.0.0"
processorArchitecture="*"
publicKeyToken="6595b64144ccf1df"
language="*"
/>
</dependentAssembly>
</dependency>
</assembly>
32 changes: 32 additions & 0 deletions build.win32x86/squeak.sista.spur/Squeak.rc
@@ -0,0 +1,32 @@
#ifdef _WIN32
1 ICON DISCARDABLE "GreenCogSqueak.ico"
2 ICON DISCARDABLE "squeak2.ico"
3 ICON DISCARDABLE "squeak3.ico"

1 VERSIONINFO
FILEVERSION FILEVERSIONVALUES
PRODUCTVERSION 5,0,0,0
FILEFLAGSMASK 0x3fL
FILEFLAGS 0xaL
FILEOS 0x10001L
FILETYPE 0x1L
FILESUBTYPE 0x0L
BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "040904E4" // Lang=US English, CharSet=Windows Multilin
BEGIN
VALUE "CompanyName", "Squeak.org\0"
VALUE "FileDescription", "Squeak Cog Spur Virtual Machine\0"
VALUE "FileVersion", FILEVERSIONSTRING
VALUE "LegalCopyright", "Copyright \251 Squeak.org 1996-2014\0"
VALUE "ProductName", "Squeak Cog Spur\0"
VALUE "ProductVersion", "5.0\0"
END
END
BLOCK "VarFileInfo"
BEGIN
VALUE "Translation", 0x409, 1252
END
END
#endif
33 changes: 33 additions & 0 deletions build.win32x86/squeak.sista.spur/mvm
@@ -0,0 +1,33 @@
#!/bin/bash -e
A=;D=;F=
if [ $# = 0 ]; then
A=1;D=1;F=1
else
while getopts 'Aadf?' opt "$@"; do
case $opt in
A) A=1;D=1;F=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
rm -rf builddbg/vm/*.exe
make $@ debug 2>&1 | tee LOGD
fi
if [ -n "$A" ]; then
rm -rf buildast/vm/*.exe
make $@ assert 2>&1 | tee LOGA
fi
if [ -n "$F" ]; then
rm -rf build/vm/*.exe
make $@ 2>&1 | tee LOGF
fi
9 changes: 9 additions & 0 deletions build.win32x86/squeak.sista.spur/plugins.ext
@@ -0,0 +1,9 @@
# Copied, perhaps edited, from ../../src/examplePlugins.ext
# N.B. SqueakSSL is not ready for prime time. Compiles but does not link fully.
# See platforms/win32/plugins/SqueakSSL/Makefile
EXTERNAL_PLUGINS = \
BochsIA32Plugin \
BochsX64Plugin \
SqueakFFIPrims \
UUIDPlugin \
Win32OSProcessPlugin
37 changes: 37 additions & 0 deletions build.win32x86/squeak.sista.spur/plugins.int
@@ -0,0 +1,37 @@
# Copied, perhaps edited, from ../../src/examplePlugins.int
INTERNAL_PLUGINS = \
ADPCMCodecPlugin \
AsynchFilePlugin \
B3DAcceleratorPlugin \
B2DPlugin \
BitBltPlugin \
BMPReadWriterPlugin \
CroquetPlugin \
ZipPlugin \
DropPlugin \
DSAPrims \
FFTPlugin \
FilePlugin \
FloatArrayPlugin \
FloatMathPlugin \
HostWindowPlugin \
IA32ABI \
JoystickTabletPlugin \
JPEGReaderPlugin \
JPEGReadWriter2Plugin \
Klatt \
LargeIntegers \
LocalePlugin \
Matrix2x3Plugin \
MIDIPlugin \
MiscPrimitivePlugin \
Mpeg3Plugin \
RePlugin \
SecurityPlugin \
SerialPlugin \
SocketPlugin \
SoundCodecPrims \
SoundGenerationPlugin \
SoundPlugin \
StarSqueakPlugin \
SurfacePlugin
Binary file added build.win32x86/squeak.sista.spur/squeak.ico
Binary file not shown.

0 comments on commit ca08c9b

Please sign in to comment.