@@ -83,58 +83,6 @@ endif()
8383if (NOT DAEMON_EXTERNAL_APP)
8484 option (BUILD_CLIENT "Engine client executable, required to play" ON )
8585 option (BUILD_SERVER "Engine server executable, required to host servers" ON )
86-
87- ## About the different ways to host/play games:
88- ## Native DLL: no sandboxing, no cleaning up but debugger support. Use for dev.
89- ## NaCl exe: sandboxing, no leaks, slightly slower, hard to debug. Use for regular players.
90- ## Native exe: no sandboxing, no leaks, hard to debug. Might be used by server owners for perf.
91- ## see VirtualMachine.h for code
92-
93- # can be loaded by daemon with vm.[sc]game.type 3
94- option (BUILD_GAME_NATIVE_DLL "Build the shared library files, mostly useful for debugging changes locally." ON )
95-
96- # can be loaded by daemon with vm.[sc]game.type 2
97- option (BUILD_GAME_NATIVE_EXE "Build native executable, which might be used for better performances by server owners" OFF )
98-
99- # The NaCl SDK only runs on amd64 or i686.
100- if (CMAKE_SYSTEM_NAME STREQUAL CMAKE_HOST_SYSTEM_NAME
101- AND (ARCH STREQUAL "amd64" OR ARCH STREQUAL "i686" ))
102- # can be loaded by daemon with vm.[sc]game.type 0 or 1
103- option (BUILD_GAME_NACL "Build the NaCl \" pexe\" and \" nexe\" gamelogic modules for enabled architecture targets, required to host mods." OFF )
104-
105- set (NACL_ALL_TARGETS "amd64;i686;armhf" )
106- set (BUILD_GAME_NACL_TARGETS "all" CACHE STRING "Enabled NaCl \" nexe\" architecture targets, values: ${NACL_ALL_TARGETS} , all, native, none." )
107- mark_as_advanced (BUILD_GAME_NACL_TARGETS)
108-
109- if (BUILD_GAME_NACL_TARGETS STREQUAL "all" )
110- set (NACL_TARGETS "${NACL_ALL_TARGETS} " )
111- elseif (BUILD_GAME_NACL_TARGETS STREQUAL "native" )
112- set (NACL_TARGETS "${ARCH} " )
113- elseif (BUILD_GAME_NACL_TARGETS STREQUAL "none" )
114- set (NACL_TARGETS "" )
115- else ()
116- set (NACL_TARGETS "${BUILD_GAME_NACL_TARGETS} " )
117- endif ()
118-
119- foreach (NACL_TARGET ${NACL_TARGETS} )
120- set (IS_NACL_VALID_TARGET OFF )
121- foreach (NACL_VALID_TARGET ${NACL_ALL_TARGETS} )
122- if (NACL_TARGET STREQUAL NACL_VALID_TARGET)
123- set (IS_NACL_VALID_TARGET ON )
124- endif ()
125- endforeach ()
126-
127- if (NOT IS_NACL_VALID_TARGET)
128- message (FATAL_ERROR "Invalid NaCl target ${NACL_TARGET} , must be one of ${NACL_ALL_TARGETS} " )
129- endif ()
130- endforeach ()
131- else ()
132- set (BUILD_GAME_NACL OFF )
133- set (NACL_TARGETS "" )
134- endif ()
135-
136- set (NACL_TARGETS "${NACL_TARGETS} " PARENT_SCOPE)
137-
13886 option (BUILD_TTY_CLIENT "Engine client with no graphical display" ON )
13987 option (BUILD_DUMMY_APP "Stripped-down engine executable, mostly used to ease incremental porting and debugging" OFF )
14088 mark_as_advanced (BUILD_DUMMY_APP)
0 commit comments