Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Building and bundling dehread, wadmapconverter and doom on Mac.
- Loading branch information
Showing
13 changed files
with
411 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/bin/sh | ||
# Helper script for bundling the application on OS X | ||
|
||
echo "Bundling Doomsday.app..." | ||
|
||
CP="cp -fRp" | ||
|
||
SRCDIR=$1 | ||
echo "Source directory: $SRCDIR" | ||
|
||
BUILDDIR=engine | ||
|
||
mv $BUILDDIR/doomsday.app $BUILDDIR/Doomsday.app | ||
|
||
APPDIR=$BUILDDIR/Doomsday.app/Contents | ||
echo "Bundle directory: $APPDIR" | ||
|
||
echo "Clearing existing bundles..." | ||
rm -rf $BUILDDIR/*.bundle | ||
|
||
echo "Copying bundles from plugins..." | ||
$CP plugins/dehread/dpDehRead.bundle $BUILDDIR/dpDehRead.bundle | ||
$CP plugins/wadmapconverter/dpWadMapConverter.bundle $BUILDDIR/dpWadMapConverter.bundle | ||
|
||
echo "Bundling done." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
QT -= core gui | ||
|
||
include(versions.pri) | ||
|
||
message(Doomsday version $${DENG_VERSION}.) | ||
|
||
# Debug/release build selection. | ||
CONFIG(debug, debug|release) { | ||
message("Debug build.") | ||
DEFINES += _DEBUG | ||
DENG_CONFIG += rangecheck | ||
} else { | ||
message("Release build.") | ||
DEFINES += NDEBUG | ||
} | ||
|
||
win32 { | ||
DEFINES += WIN32 | ||
} | ||
unix { | ||
DEFINES += UNIX | ||
|
||
# We are not interested in unused parameters (there are quite a few). | ||
QMAKE_CFLAGS_WARN_ON += \ | ||
-Wno-unused-parameter \ | ||
-Wno-unused-variable \ | ||
-Wno-missing-field-initializers \ | ||
-Wno-missing-braces | ||
} | ||
macx { | ||
DEFINES += MACOSX | ||
|
||
QMAKE_LFLAGS += -flat_namespace -undefined suppress | ||
|
||
DENG_CONFIG += snowleopard nofixedasm | ||
|
||
# Select OS version. | ||
contains(DENG_CONFIG, snowleopard) { | ||
message("Using Mac OS 10.6 SDK (Universal 32/64-bit, no PowerPC binary).") | ||
QMAKE_MAC_SDK = /Developer/SDKs/MacOSX10.6.sdk | ||
CONFIG += x86 x86_64 | ||
} | ||
else { | ||
message("Using Mac OS 10.4 SDK (Universal 32-bit Intel/PowerPC binary.)") | ||
QMAKE_MAC_SDK = /Developer/SDKs/MacOSX10.4u.sdk | ||
CONFIG += x86 ppc | ||
} | ||
} | ||
|
||
# Directories ---------------------------------------------------------------- | ||
|
||
DENG_API_DIR = $$PWD/engine/api | ||
DENG_INCLUDE_DIR = $$PWD/engine/portable/include | ||
DENG_UNIX_INCLUDE_DIR = $$PWD/engine/unix/include | ||
DENG_MAC_INCLUDE_DIR = $$PWD/engine/mac/include | ||
DENG_WIN_INCLUDE_DIR = $$PWD/engine/win32/include | ||
DENG_LZSS_DIR = $$PWD/external/lzss | ||
|
||
# Apply DENG_CONFIG ---------------------------------------------------------- | ||
|
||
contains(DENG_CONFIG, nofixedasm) { | ||
DEFINES += NO_FIXED_ASM | ||
} | ||
!contains(DENG_CONFIG, rangecheck) { | ||
DEFINES += NORANGECHECKING | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,111 @@ | ||
# The Doomsday Engine Project | ||
# Copyright (c) 2011 Jaakko Keränen <jaakko.keranen@iki.fi> | ||
|
||
common_inc = $$PWD/include | ||
common_src = $$PWD/src | ||
|
||
INCLUDEPATH += \ | ||
$$common_inc \ | ||
$$DENG_LZSS_DIR/portable/include | ||
|
||
HEADERS += \ | ||
$$common_inc/am_map.h \ | ||
$$common_inc/common.h \ | ||
$$common_inc/d_net.h \ | ||
$$common_inc/d_netcl.h \ | ||
$$common_inc/d_netsv.h \ | ||
$$common_inc/dmu_lib.h \ | ||
$$common_inc/f_infine.h \ | ||
$$common_inc/g_common.h \ | ||
$$common_inc/g_controls.h \ | ||
$$common_inc/g_defs.h \ | ||
$$common_inc/g_eventsequence.h \ | ||
$$common_inc/g_update.h \ | ||
$$common_inc/hu_inventory.h \ | ||
$$common_inc/hu_lib.h \ | ||
$$common_inc/hu_log.h \ | ||
$$common_inc/hu_menu.h \ | ||
$$common_inc/hu_msg.h \ | ||
$$common_inc/hu_pspr.h \ | ||
$$common_inc/hu_stuff.h \ | ||
$$common_inc/m_argv.h \ | ||
$$common_inc/m_defs.h \ | ||
$$common_inc/p_actor.h \ | ||
$$common_inc/p_automap.h \ | ||
$$common_inc/p_ceiling.h \ | ||
$$common_inc/p_door.h \ | ||
$$common_inc/p_floor.h \ | ||
$$common_inc/p_inventory.h \ | ||
$$common_inc/p_iterlist.h \ | ||
$$common_inc/p_map.h \ | ||
$$common_inc/p_mapsetup.h \ | ||
$$common_inc/p_mapspec.h \ | ||
$$common_inc/p_plat.h \ | ||
$$common_inc/p_player.h \ | ||
$$common_inc/p_saveg.h \ | ||
$$common_inc/p_start.h \ | ||
$$common_inc/p_svtexarc.h \ | ||
$$common_inc/p_switch.h \ | ||
$$common_inc/p_terraintype.h \ | ||
$$common_inc/p_tick.h \ | ||
$$common_inc/p_user.h \ | ||
$$common_inc/p_view.h \ | ||
$$common_inc/p_xg.h \ | ||
$$common_inc/p_xgline.h \ | ||
$$common_inc/p_xgsec.h \ | ||
$$common_inc/r_common.h \ | ||
$$common_inc/rend_automap.h \ | ||
$$common_inc/st_lib.h \ | ||
$$common_inc/x_hair.h \ | ||
$$common_inc/xgclass.h | ||
|
||
SOURCES += \ | ||
$$common_src/am_map.c \ | ||
$$common_src/d_net.c \ | ||
$$common_src/d_netcl.c \ | ||
$$common_src/d_netsv.c \ | ||
$$common_src/dmu_lib.c \ | ||
$$common_src/f_infine.c \ | ||
$$common_src/g_controls.c \ | ||
$$common_src/g_defs.c \ | ||
$$common_src/g_eventsequence.c \ | ||
$$common_src/g_game.c \ | ||
$$common_src/g_update.c \ | ||
$$common_src/hu_inventory.c \ | ||
$$common_src/hu_lib.c \ | ||
$$common_src/hu_log.c \ | ||
$$common_src/hu_menu.c \ | ||
$$common_src/hu_msg.c \ | ||
$$common_src/hu_pspr.c \ | ||
$$common_src/hu_stuff.c \ | ||
$$common_src/m_ctrl.c \ | ||
$$common_src/m_fixed.c \ | ||
$$common_src/m_multi.c \ | ||
$$common_src/p_actor.c \ | ||
$$common_src/p_automap.c \ | ||
$$common_src/p_ceiling.c \ | ||
$$common_src/p_door.c \ | ||
$$common_src/p_floor.c \ | ||
$$common_src/p_inventory.c \ | ||
$$common_src/p_iterlist.c \ | ||
$$common_src/p_map.c \ | ||
$$common_src/p_mapsetup.c \ | ||
$$common_src/p_mapspec.c \ | ||
$$common_src/p_plat.c \ | ||
$$common_src/p_player.c \ | ||
$$common_src/p_saveg.c \ | ||
$$common_src/p_start.c \ | ||
$$common_src/p_svtexarc.c \ | ||
$$common_src/p_switch.c \ | ||
$$common_src/p_terraintype.c \ | ||
$$common_src/p_tick.c \ | ||
$$common_src/p_user.c \ | ||
$$common_src/p_view.c \ | ||
$$common_src/p_xgfile.c \ | ||
$$common_src/p_xgline.c \ | ||
$$common_src/p_xgsave.c \ | ||
$$common_src/p_xgsec.c \ | ||
$$common_src/r_common.c \ | ||
$$common_src/rend_automap.c \ | ||
$$common_src/st_lib.c \ | ||
$$common_src/x_hair.c |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# The Doomsday Engine Project | ||
# Copyright (c) 2011 Jaakko Keränen <jaakko.keranen@iki.fi> | ||
|
||
include(../config.pri) | ||
|
||
macx { | ||
CONFIG += lib_bundle | ||
QMAKE_BUNDLE_EXTENSION = .bundle | ||
} | ||
|
||
INCLUDEPATH += $$DENG_API_DIR |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# The Doomsday Engine Project | ||
# Copyright (c) 2011 Jaakko Keränen <jaakko.keranen@iki.fi> | ||
|
||
include(../pluginconfig.pri) | ||
|
||
TEMPLATE = lib | ||
TARGET = dpdehread | ||
|
||
HEADERS += include/version.h | ||
|
||
SOURCES += src/dehmain.c |
Oops, something went wrong.