updated README, added broken OSX packager tool

This commit is contained in:
asiekierka 2013-08-03 09:34:54 +02:00
parent 9fef4ec5db
commit 4a165d91f6
16 changed files with 61 additions and 1 deletions

View File

@ -1,7 +1,7 @@
# I personally don't care if you steal this makefile. --GM
CC = clang
CFLAGS = -pg -O2 -fno-strict-aliasing -g `sdl-config --cflags` -Wall -Wextra \
CFLAGS = -pg -O3 -fno-strict-aliasing -g `sdl-config --cflags` -Wall -Wextra \
-Wno-unused-variable -Wno-unused-parameter \
$(CFLAGS_EXTRA) \
-DUSE_OPENGL -DAPPLE -DCLANG \

View File

@ -40,6 +40,7 @@ BUILDING REQUIREMENTS:
- a C compiler that isn't crap (read: not MSVC++)
- specifically, GCC
- MinGW is a port of GCC for Windows: http://mingw.org/
- OS X users: clang is highly recommended
- if you use something else we might consider compatibility with it
- learn_more has managed to get this to build with MSVC++ so uh, that could work too.
- SDL 1.2 (not 1.3) - http://libsdl.org/
@ -54,6 +55,13 @@ BUILDING REQUIREMENTS:
On Windows, read Makefile.mingw for some instructions.
On other OSes, some files for sackit and ENet need to be in xlibinc.
OS X readme:
- install Homebrew and XCode Command-Line Tools
- brew install lua, enet, SDL, glew
- compile sackit from git and copy .a and .so files to /usr/local/lib and sackit.h to /usr/local/include
- make -f Makefile.glosx-clang (recommended, Makefile.glosx uses GCC, Makefile.osx uses the broken software renderer)
- to package into a .app, use ./package-osx.sh (brew install dylibbundler first)
MSVC readme (wip):
- create a folder 'winlibs' in the iceball dir
dump all dll's + lib's in this folder (opengl,lua,zlib, sdl, glew)

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 951 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.7 KiB

View File

@ -0,0 +1,32 @@
<?xml version="1.0" encoding="UTF-8"?>
!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleGetInfoString</key>
<string>Iceball</string>
<key>CFBundleExecutable</key>
<string>iceball-gl</string>
<key>CFBundleIdentifier</key>
<string>me.iceballga.Iceball</string>
<key>CFBundleName</key>
<string>Iceball</string>
<key>CFBundleDisplayName</key>
<string>Iceball</string>
<key>CFBundleSignature</key>
<string>icbl</string>
<key>CFBundleIconFile</key>
<string>Iceball.icns</string>
<key>CFBundleShortVersionString</key>
<string>0.1.2</string>
<key>CFBundleVersion</key>
<string>0.1.2</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>IFMajorVersion</key>
<integer>0</integer>
<key>IFMinorVersion</key>
<integer>1</integer>
</dict>
</plist>

View File

@ -0,0 +1,3 @@
#!/bin/bash
cd "${0%/*}"
./iceball-gl -s 0 pkg/base pkg/maps/mesa.vxl

17
package-osx.sh Executable file
View File

@ -0,0 +1,17 @@
#!/bin/sh
cd osx-package-files
rm -f Iceball.icns
iconutil -c icns -o Iceball.icns Iceball.iconset
cd ..
rm -rf Iceball.app
mkdir -p Iceball.app/Contents/MacOS
mkdir -p Iceball.app/Contents/libs
mkdir -p Iceball.app/Contents/Resources
cp iceball-gl Iceball.app/Contents/MacOS
cp osx-package-files/iceball-launcher Iceball.app/Contents/MacOS
cp osx-package-files/Info.plist Iceball.app/Contents
cp osx-package-files/Iceball.icns Iceball.app/Contents/Resources
cp -Rv clsave dlcache docs pkg svsave tools Iceball.app/Contents/MacOS/
dylibbundler -x Iceball.app/Contents/MacOS/iceball-gl -b -d Iceball.app/Contents/libs
chmod -R 755 Iceball.app/Contents/MacOS/*
chmod -R 755 Iceball.app/Contents/libs/*