mirror of
https://github.com/dhewm/dhewm3-sdk.git
synced 2024-12-18 00:21:15 +00:00
53db277bae
I created this repo from the original dhewm3 repo, but I used git filter-branch to kill all the files that are not needed to just build base.dll and d3xp.dll (or .so or .dylib or whatever). So this is basically just the files the original Doom3 SDK had, but taken from dhewm3 instead (and thus GPL licensed and patched for 64bit-support etc) + some dhewm3 specific stuff + CMakeLists.txt to build them. The git filter-branch details: filter-branch -f --prune-empty --tree-filter /tmp/killkill.sh @ ## /tmp/killkill.sh: #!/bin/sh find . -exec /tmp/removeothers.sh {} \; exit 0 ## /tmp/removeothers.sh: #!/bin/bash FNAME="$1" if [[ $FNAME == \./\.git* ]] || [[ $FNAME == \./d3xp/* ]] || [[ $FNAME == \./game/* ]] then #echo "ignoring $FNAME" exit 0 fi if ! grep -Fxq "$FNAME" /tmp/d3sdklist.txt then #echo "REMOVING $FNAME" rm -rf "$FNAME" fi exit 0 ## /tmp/d3sdklist.txt was is just a textfile with one path per line with all the files (and directories!) I wanted to keep, like: . .. ./sys/platform.h ./framework/Game.h ./config.h.in ./CMakeLists.txt ## ... and all the relevant files from the SDK
14 lines
298 B
C
14 lines
298 B
C
#ifndef __DOOM3_CONFIG_H__
|
|
#define __DOOM3_CONFIG_H__
|
|
|
|
#define BUILD_OS "@os@"
|
|
#define BUILD_CPU "@cpu@"
|
|
|
|
#define BUILD_IS_BIG_ENDIAN @is_big_endian@
|
|
|
|
#define BUILD_LIBRARY_SUFFIX "@CMAKE_SHARED_LIBRARY_SUFFIX@"
|
|
|
|
#define BUILD_LIBDIR "@libdir@"
|
|
#define BUILD_DATADIR "@datadir@"
|
|
|
|
#endif
|