Skip to content

Commit

Permalink
Mac: Added build option deng_32bitonly
Browse files Browse the repository at this point in the history
Disables the 64-bit build so that SDL_net can be used (it does not
have a 64-bit binary).
  • Loading branch information
skyjake committed Nov 16, 2011
1 parent d3eb70e commit 5813653
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
17 changes: 13 additions & 4 deletions doomsday/config.pri
Expand Up @@ -9,6 +9,7 @@
# line, as it is checked before config_user.pri is read.
#
# CONFIG options for Doomsday:
# - deng_32bitonly Only do a 32-bit build (no 64-bit)
# - deng_aptunstable Include the unstable apt repository
# - deng_nofixedasm Disable assembler fixed-point math
# - deng_openal Build the OpenAL sound driver
Expand Down Expand Up @@ -154,10 +155,18 @@ deng_nofixedasm {
macx {
# Select OS version.
deng_snowleopard {
echo("Using Mac OS 10.6 SDK (32/64-bit Intel).")
QMAKE_MAC_SDK = /Developer/SDKs/MacOSX10.6.sdk
QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.6
CONFIG += x86 x86_64
deng_32bitonly {
echo("Using Mac OS 10.6 SDK (32-bit Intel).")
QMAKE_MAC_SDK = /Developer/SDKs/MacOSX10.6.sdk
QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.6
CONFIG += x86
CONFIG -= x86_64
} else {
echo("Using Mac OS 10.6 SDK (32/64-bit Intel).")
QMAKE_MAC_SDK = /Developer/SDKs/MacOSX10.6.sdk
QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.6
CONFIG += x86 x86_64
}
}
else {
echo("Using Mac OS 10.4 SDK (32-bit Intel + PowerPC).")
Expand Down
2 changes: 1 addition & 1 deletion doomsday/dep_sdl.pri
Expand Up @@ -49,7 +49,7 @@ else:macx {

LIBS += -framework SDL -framework SDL_mixer

!deng_snowleopard {
deng_32bitonly|!deng_snowleopard {
# Also include SDL_net.
INCLUDEPATH += $${SDL_FRAMEWORK_DIR}/SDL_net.framework/Headers
LIBS += -framework SDL_net
Expand Down

0 comments on commit 5813653

Please sign in to comment.