Browse Source

Add hellfire cmake target

pull/882/head
Mathieu Maret 6 years ago committed by Anders Jenbo
parent
commit
cf55e42cfb
  1. 5
      CMakeLists.txt
  2. 1
      README.md

5
CMakeLists.txt

@ -15,6 +15,7 @@ option(NIGHTLY_BUILD "Enable options for nightly build" OFF)
option(USE_SDL1 "Use SDL1.2 instead of SDL2" OFF)
option(NONET "Disable network" OFF)
option(RUN_TESTS "Build and run tests" OFF)
option(HELLFIRE "Build hellfire version" OFF)
RELEASE_OPTION(CPACK "Configure CPack")
@ -337,6 +338,10 @@ if(RUN_TESTS)
SourceT/scrollrt_test.cpp)
endif()
if(HELLFIRE)
add_definitions(-DHELLFIRE)
endif()
add_executable(${BIN_TARGET} WIN32 MACOSX_BUNDLE ${devilutionx_SRCS})
# Copy the font to the build directory to it works from the build directory

1
README.md

@ -273,6 +273,7 @@ select Icons -> Information in the top menu.
- `-DSPAWN=ON` build the shareware version, using spawn.mpq from the original shareware; which can still be [downloaded](http://ftp.blizzard.com/pub/demos/diablosw.exe) for free.
- `-DCMAKE_TOOLCHAIN_FILE=../CMake/32bit.cmake` generate 32bit builds on 64bit platforms (remember to use the `linux32` command if on Linux).
- `-DCROSS_PREFIX=/path/to/prefix` set the path to the `i686-w64-mingw32` directory.
- `-DHELLFIRE=ON` build Hellfire version
### Debug builds
- `-DDEBUG=OFF` disable debug mode of the Diablo engine.

Loading…
Cancel
Save