File tree 2 files changed +20
-1
lines changed
2 files changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -117,6 +117,10 @@ if(NOT DAEMON_EXTERNAL_APP)
117
117
option (USE_MUMBLE "Build Daemon with mumblelink sumpport" ON )
118
118
endif ()
119
119
120
+ if (BUILD_CLIENT)
121
+ option (USE_VULKAN "Use Vulkan rendering API instead of OpenGL." OFF )
122
+ endif ()
123
+
120
124
option (USE_SMP "Compile with support for running the renderer in a separate thread" ON )
121
125
option (USE_BREAKPAD "Generate Daemon crash dumps (which require Breakpad tools to read)" OFF )
122
126
endif ()
@@ -562,6 +566,13 @@ if (BUILD_CLIENT OR BUILD_TTY_CLIENT OR BUILD_SERVER OR BUILD_DUMMY_APP)
562
566
endif ()
563
567
endif ()
564
568
569
+ if (USE_VULKAN)
570
+ add_definitions ("-DDAEMON_RENDERER_VULKAN=1" )
571
+ else ()
572
+ add_definitions ("-DDAEMON_RENDERER_OPENGL=1" )
573
+ endif ()
574
+
575
+ # TODO: Split OpenGL and Vulkan library configuration.
565
576
# Look for OpenGL here before we potentially switch to looking for static libs.
566
577
if (BUILD_CLIENT)
567
578
if (LINUX OR FREEBSD)
@@ -937,9 +948,16 @@ if (BUILD_CLIENT)
937
948
if (USE_SMP)
938
949
list (APPEND Definitions USE_SMP)
939
950
endif ()
951
+
952
+ if (USE_VULKAN)
953
+ set (CLIENT_EXECUTABLE_NAME daemon-vulkan)
954
+ else ()
955
+ set (CLIENT_EXECUTABLE_NAME daemon)
956
+ endif ()
957
+
940
958
AddApplication(
941
959
Target client
942
- ExecutableName daemon
960
+ ExecutableName ${CLIENT_EXECUTABLE_NAME}
943
961
ApplicationMain ${ENGINE_DIR} /client/ClientApplication.cpp
944
962
Definitions ${Definitions}
945
963
Flags ${WARNINGS}
Original file line number Diff line number Diff line change @@ -77,6 +77,7 @@ set(COMMONTESTLIST
77
77
${ENGINE_DIR} /qcommon/q_math_test.cpp
78
78
)
79
79
80
+ # TODO: Split OpenGL and Vulkan list.
80
81
set (RENDERERLIST
81
82
${ENGINE_DIR} /renderer/DetectGLVendors.cpp
82
83
${ENGINE_DIR} /renderer/DetectGLVendors.h
You can’t perform that action at this time.
0 commit comments