diff cmake/MalikaniaOptions.cmake @ 165:3e3040d085b5

Misc: reset to a new target Malikania is no longer a MMORPG engine but only a game. Creating an engine is too feature specific and hard to provide customizations without complex code. We also don't ship any Javascript bindings anymore and will use Qt 5 and QML for client side to avoid reinventing a UI toolkit. The server side is less impacted and will only take modifications in the database code which now has explicit PostgreSQL runtime dependency instead of writing a complex generic database backend.
author David Demelier <markand@malikania.fr>
date Tue, 19 Jun 2018 21:01:01 +0200
parents 4b292c20124c
children 3107ce017c3a
line wrap: on
line diff
--- a/cmake/MalikaniaOptions.cmake	Sat Mar 17 14:36:14 2018 +0100
+++ b/cmake/MalikaniaOptions.cmake	Tue Jun 19 21:01:01 2018 +0200
@@ -17,51 +17,12 @@
 #
 
 #
-# Backend selection.
-# -------------------------------------------------------------------
-#
-# The following options are available:
-#    WITH_BACKEND        - Type of backend to use. (Default: SDL)
-#
-
-set(WITH_BACKEND "SDL"
-    CACHE STRING "Which backend to use")
-
-#
-# Documentation and technical references
-# -------------------------------------------------------------------
-#
-# The following options are available:
-#    WITH_DOCS            - Disable or enable all docs, if set to Off, disable all documentation.
-#    WITH_DOXYGEN         - Enable doxygen
-#
-
-option(WITH_DOCS "Build all documentation" On)
-option(WITH_DOXYGEN "Enable doxygen generation" On)
-
-if (NOT WITH_DOCS)
-    set(WITH_DOXYGEN Off)
-endif ()
-
-set(WITH_DRIVERDIR "lib/malikania/${MALIKANIA_VERSION}"
-    CACHE STRING "Database driver directory")
-set(WITH_BINDIR "libexec/malikania/${MALIKANIA_VERSION}"
-    CACHE STRING "Front end directory")
-
-if (IS_ABSOLUTE ${WITH_DRIVERDIR})
-    message(FATAL_ERROR "WITH_DRIVERDIR must not be absolute")
-elseif (IS_ABSOLUTE ${WITH_BINDIR})
-    message(FATAL_ERROR "WITH_BINDIR must not be absolute")
-endif ()
-
-#
 # Options for development.
 # -------------------------------------------------------------------
 #
 
 option(WITH_VERA "Enable vera++ analyzer" On)
 option(WITH_TESTS "Enable unit tests" On)
-option(WITH_EXAMPLES "Enable examples" On)
 
 find_program(VERA_EXECUTABLE vera++)
 
@@ -93,12 +54,6 @@
     malikania_setg(WITH_TESTS_MSG "Yes")
 endif ()
 
-if (NOT WITH_EXAMPLES)
-    malikania_setg(WITH_EXAMPLES_MSG "No (disabled by user)")
-else ()
-    malikania_setg(WITH_EXAMPLES_MSG "Yes")
-endif ()
-
 #
 # Options for unit tests
 # -------------------------------------------------------------------
@@ -125,13 +80,7 @@
 option(WITH_LIBCLIENT "Build libclient" On)
 option(WITH_LIBSERVER "Build libserver" On)
 
-if (WITH_BACKEND MATCHES "SDL")
-    set(WITH_BACKEND_DIR "backend/sdl")
-else ()
-    message(FATAL_ERROR "Unknown backend selected: ${WITH_BACKEND}")
-endif ()
-
 configure_file(
-    ${malikania_SOURCE_DIR}/cmake/internal/sysconfig-tests.h
-    ${malikania_BINARY_DIR}/sysconfig-tests.h
+    ${malikania_SOURCE_DIR}/cmake/internal/sysconfig-tests.hpp.in
+    ${malikania_BINARY_DIR}/sysconfig-tests.hpp
 )