mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-22 02:39:05 +02:00
CMake: Correct headless build on Windows.
This commit is contained in:
1 parent
5109fd7cdc
commit
92ce375e7a
1 file changed
+20
-1
+20
-1
@@ -2079,7 +2079,7 @@ set(NativeAssets
|
||||
|
||||
|
||||
if(HEADLESS)
|
||||
add_executable(PPSSPPHeadless
|
||||
set(HeadlessSource
|
||||
headless/Headless.cpp
|
||||
headless/StubHost.cpp
|
||||
headless/StubHost.h
|
||||
@@ -2088,6 +2088,25 @@ if(HEADLESS)
|
||||
headless/SDLHeadlessHost.cpp
|
||||
headless/SDLHeadlessHost.h
|
||||
)
|
||||
if(WIN32)
|
||||
list(APPEND HeadlessSource
|
||||
headless/WindowsHeadlessHost.cpp
|
||||
headless/WindowsHeadlessHost.h
|
||||
Windows/GPU/D3D9Context.cpp
|
||||
Windows/GPU/D3D9Context.h
|
||||
Windows/GPU/D3D11Context.cpp
|
||||
Windows/GPU/D3D11Context.h
|
||||
Windows/GPU/WindowsGLContext.cpp
|
||||
Windows/GPU/WindowsVulkanContext.cpp
|
||||
Windows/W32Util/ShellUtil.cpp
|
||||
Windows/W32Util/ShellUtil.h
|
||||
Windows/CaptureDevice.cpp
|
||||
Windows/CaptureDevice.h
|
||||
Windows/W32Util/Misc.cpp
|
||||
Windows/W32Util/Misc.h
|
||||
)
|
||||
endif()
|
||||
add_executable(PPSSPPHeadless ${HeadlessSource})
|
||||
target_link_libraries(PPSSPPHeadless ${COCOA_LIBRARY} ${QUARTZ_CORE_LIBRARY} ${LinkCommon})
|
||||
setup_target_project(PPSSPPHeadless headless)
|
||||
endif()
|
||||
|
||||
Reference in new issue
Block a user