From cf55e42cfb51960e904099368ba45d007dc1f781 Mon Sep 17 00:00:00 2001 From: Mathieu Maret Date: Mon, 12 Oct 2020 12:49:17 +0200 Subject: [PATCH] Add hellfire cmake target --- CMakeLists.txt | 5 +++++ README.md | 1 + 2 files changed, 6 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 482a897d6..726d4b9de 100644 --- a/CMakeLists.txt +++ b/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 diff --git a/README.md b/README.md index 0078b3671..efd665748 100644 --- a/README.md +++ b/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.