mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-01-22 09:01:57 -05:00
Add documentation for building 64 bit cocoa backend
Also show 'alpha' instead of 'beta' for coca backend in titlebar
This commit is contained in:
parent
5140d604cf
commit
07c4a4795c
4 changed files with 22 additions and 4 deletions
|
@ -24,7 +24,8 @@
|
|||
# change these as needed
|
||||
SOURCE_DIR=~/client
|
||||
EMSCRIPTEN_PATH=/usr/bin/emscripten/emcc
|
||||
CLANGOSX_PATH=/usr/bin/clang/osx
|
||||
CLANG32_PATH=/usr/bin/clang/osx32
|
||||
CLANG64_PATH=/usr/bin/clang/osx64
|
||||
# to simplify stuff
|
||||
ALL_FLAGS="-O1 -s -fno-stack-protector -fno-math-errno -w"
|
||||
WIN32_FLAGS="-mwindows -nostartfiles -Wl,-e_main_real -DCC_NOMAIN"
|
||||
|
@ -64,7 +65,13 @@ build_nix64() {
|
|||
build_osx32() {
|
||||
echo "Building mac32.."
|
||||
rm cc-osx32
|
||||
$CLANGOSX_PATH *.c $ALL_FLAGS -fvisibility=hidden -rdynamic -DCC_COMMIT_SHA=\"$LATEST\" -o cc-osx32 -framework Carbon -framework AGL -framework OpenAL -framework OpenGL -lcurl
|
||||
$CLANG32_PATH *.c $ALL_FLAGS -fvisibility=hidden -rdynamic -DCC_COMMIT_SHA=\"$LATEST\" -o cc-osx32 -framework Carbon -framework AGL -framework OpenAL -framework OpenGL -lcurl
|
||||
}
|
||||
|
||||
build_osx64() {
|
||||
echo "Building mac64.."
|
||||
rm cc-osx32
|
||||
$CLANG64_PATH *.c $ALL_FLAGS -fvisibility=hidden -rdynamic -DCC_COMMIT_SHA=\"$LATEST\" -o cc-osx64 -framework Cocoa -framework OpenAL -framework OpenGL -lcurl -lobjc
|
||||
}
|
||||
|
||||
build_web() {
|
||||
|
|
|
@ -73,10 +73,14 @@ Install appropriate libs as required. For ubuntu these are: libx11-dev, libgl1-m
|
|||
|
||||
```i586-mingw32msvc-gcc *.c -o ClassiCube.exe -mwindows -lws2_32 -lwininet -lwinmm -limagehlp -lcrypt32 -ld3d9```
|
||||
|
||||
#### Mac OSX
|
||||
#### Mac OSX (32 bit)
|
||||
|
||||
```gcc *.c -o ClassiCube -framework Carbon -framework AGL -framework OpenAL -framework OpenGL -lcurl```
|
||||
|
||||
#### Mac OSX (64 bit)
|
||||
|
||||
```gcc *.c -o ClassiCube -framework Cocoa -framework OpenAL -framework OpenGL -lcurl -lobjc```
|
||||
|
||||
#### FreeBSD
|
||||
|
||||
```clang *.c -o ClassiCube -I /usr/local/include -L /usr/local/lib -lm -lpthread -lX11 -lGL -lcurl -lopenal -lexecinfo```
|
||||
|
|
|
@ -8,9 +8,12 @@
|
|||
#define GAME_APP_VER "1.0.7"
|
||||
#define GAME_API_VER 1
|
||||
|
||||
#ifdef CC_BUILD_WEB
|
||||
#if defined CC_BUILD_WEB
|
||||
#define GAME_APP_NAME "ClassiCube web client"
|
||||
#define GAME_APP_TITLE "ClassiCube"
|
||||
#elif defined CC_BUILD_COCOA
|
||||
#define GAME_APP_NAME "ClassiCube 1.0.7 alpha"
|
||||
#define GAME_APP_TITLE "ClassiCube 1.0.7 alpha"
|
||||
#else
|
||||
#define GAME_APP_NAME "ClassiCube 1.0.7 beta"
|
||||
#define GAME_APP_TITLE "ClassiCube 1.0.7 beta"
|
||||
|
|
|
@ -148,7 +148,11 @@ typedef struct TextureRec_ { float U1, V1, U2, V2; } TextureRec;
|
|||
#define CC_BUILD_OSX
|
||||
#define CC_BUILD_POSIX
|
||||
#define CC_BUILD_GL
|
||||
#ifdef __x86_64__
|
||||
#define CC_BUILD_COCOA
|
||||
#else
|
||||
#define CC_BUILD_CARBON
|
||||
#endif
|
||||
#define CC_BUILD_CURL
|
||||
#define CC_BUILD_OPENAL
|
||||
#elif defined __sun__
|
||||
|
|
Loading…
Reference in a new issue