From 4a3d02db55f99a0510c61668fdd117fdc3d68c0a Mon Sep 17 00:00:00 2001 From: Maximilian Downey Twiss <64618338+Zopolis4@users.noreply.github.com> Date: Sat, 17 Sep 2022 11:24:57 +1000 Subject: [PATCH] Properly list files in CMakeLists instead of using GLOB (#249) --- src/Cafe/CMakeLists.txt | 476 +++++++++++++++++++++++++++++++++++++- src/Cemu/CMakeLists.txt | 38 ++- src/Common/CMakeLists.txt | 34 ++- src/audio/CMakeLists.txt | 2 - src/config/CMakeLists.txt | 19 +- src/gui/CMakeLists.txt | 135 ++++++++++- src/imgui/CMakeLists.txt | 10 +- src/input/CMakeLists.txt | 54 ++--- src/util/CMakeLists.txt | 78 ++++++- 9 files changed, 757 insertions(+), 89 deletions(-) diff --git a/src/Cafe/CMakeLists.txt b/src/Cafe/CMakeLists.txt index c012f18a..baf8fdb0 100644 --- a/src/Cafe/CMakeLists.txt +++ b/src/Cafe/CMakeLists.txt @@ -1,13 +1,473 @@ -project(CemuCafe) - -file(GLOB_RECURSE CPP_FILES *.cpp) -file(GLOB_RECURSE H_FILES *.h) +add_library(CemuCafe + Account/Account.cpp + Account/AccountError.h + Account/Account.h + CafeSystem.cpp + CafeSystem.h + Filesystem/fsc.cpp + Filesystem/fscDeviceHostFS.cpp + Filesystem/fscDeviceHostFS.h + Filesystem/fscDeviceRedirect.cpp + Filesystem/fscDeviceWua.cpp + Filesystem/fscDeviceWud.cpp + Filesystem/fsc.h + Filesystem/FST/FST.cpp + Filesystem/FST/FST.h + Filesystem/FST/fstUtil.h + Filesystem/FST/KeyCache.cpp + Filesystem/FST/KeyCache.h + Filesystem/WUD/wud.cpp + Filesystem/WUD/wud.h + GamePatch.cpp + GamePatch.h + GameProfile/GameProfile.cpp + GameProfile/GameProfile.h + GraphicPack/GraphicPack2.cpp + GraphicPack/GraphicPack2.h + GraphicPack/GraphicPack2PatchesApply.cpp + GraphicPack/GraphicPack2Patches.cpp + GraphicPack/GraphicPack2Patches.h + GraphicPack/GraphicPack2PatchesParser.cpp + GraphicPack/GraphicPackError.h + HW/ACR/ACR.cpp + HW/AI/AI.cpp + HW/AI/AI.h + HW/Common/HwReg.h + HW/Espresso/Const.h + HW/Espresso/Debugger/Debugger.cpp + HW/Espresso/Debugger/Debugger.h + HW/Espresso/Debugger/DebugSymbolStorage.cpp + HW/Espresso/Debugger/DebugSymbolStorage.h + HW/Espresso/EspressoISA.h + HW/Espresso/Interpreter/PPCInterpreterALU.hpp + HW/Espresso/Interpreter/PPCInterpreterFPU.cpp + HW/Espresso/Interpreter/PPCInterpreterHelper.h + HW/Espresso/Interpreter/PPCInterpreterHLE.cpp + HW/Espresso/Interpreter/PPCInterpreterImpl.cpp + HW/Espresso/Interpreter/PPCInterpreterInternal.h + HW/Espresso/Interpreter/PPCInterpreterLoadStore.hpp + HW/Espresso/Interpreter/PPCInterpreterMain.cpp + HW/Espresso/Interpreter/PPCInterpreterOPC.cpp + HW/Espresso/Interpreter/PPCInterpreterOPC.hpp + HW/Espresso/Interpreter/PPCInterpreterPS.cpp + HW/Espresso/Interpreter/PPCInterpreterSPR.hpp + HW/Espresso/PPCCallback.h + HW/Espresso/PPCScheduler.cpp + HW/Espresso/PPCSchedulerLLE.cpp + HW/Espresso/PPCState.h + HW/Espresso/PPCTimer.cpp + HW/Espresso/Recompiler/PPCFunctionBoundaryTracker.h + HW/Espresso/Recompiler/PPCRecompiler.cpp + HW/Espresso/Recompiler/PPCRecompiler.h + HW/Espresso/Recompiler/PPCRecompilerImlAnalyzer.cpp + HW/Espresso/Recompiler/PPCRecompilerImlGen.cpp + HW/Espresso/Recompiler/PPCRecompilerImlGenFPU.cpp + HW/Espresso/Recompiler/PPCRecompilerIml.h + HW/Espresso/Recompiler/PPCRecompilerImlOptimizer.cpp + HW/Espresso/Recompiler/PPCRecompilerImlRanges.cpp + HW/Espresso/Recompiler/PPCRecompilerImlRanges.h + HW/Espresso/Recompiler/PPCRecompilerImlRegisterAllocator2.cpp + HW/Espresso/Recompiler/PPCRecompilerImlRegisterAllocator.cpp + HW/Espresso/Recompiler/PPCRecompilerIntermediate.cpp + HW/Espresso/Recompiler/PPCRecompilerX64AVX.cpp + HW/Espresso/Recompiler/PPCRecompilerX64BMI.cpp + HW/Espresso/Recompiler/PPCRecompilerX64.cpp + HW/Espresso/Recompiler/PPCRecompilerX64FPU.cpp + HW/Espresso/Recompiler/PPCRecompilerX64Gen.cpp + HW/Espresso/Recompiler/PPCRecompilerX64GenFPU.cpp + HW/Espresso/Recompiler/PPCRecompilerX64.h + HW/Espresso/Recompiler/x64Emit.hpp + HW/Latte/Common/RegisterSerializer.cpp + HW/Latte/Common/RegisterSerializer.h + HW/Latte/Common/ShaderSerializer.cpp + HW/Latte/Common/ShaderSerializer.h + HW/Latte/Core/FetchShader.cpp + HW/Latte/Core/FetchShader.h + HW/Latte/Core/LatteAsyncCommands.cpp + HW/Latte/Core/LatteAsyncCommands.h + HW/Latte/Core/LatteBufferCache.cpp + HW/Latte/Core/LatteBufferCache.h + HW/Latte/Core/LatteBufferData.cpp + HW/Latte/Core/LatteCachedFBO.h + HW/Latte/Core/LatteCommandProcessor.cpp + HW/Latte/Core/LatteConst.h + HW/Latte/Core/LatteDefaultShaders.cpp + HW/Latte/Core/LatteDefaultShaders.h + HW/Latte/Core/LatteDraw.h + HW/Latte/Core/LatteGSCopyShaderParser.cpp + HW/Latte/Core/Latte.h + HW/Latte/Core/LatteIndices.cpp + HW/Latte/Core/LatteIndices.h + HW/Latte/Core/LatteOverlay.cpp + HW/Latte/Core/LatteOverlay.h + HW/Latte/Core/LattePerformanceMonitor.cpp + HW/Latte/Core/LattePerformanceMonitor.h + HW/Latte/Core/LattePM4.h + HW/Latte/Core/LatteQuery.cpp + HW/Latte/Core/LatteQueryObject.h + HW/Latte/Core/LatteRenderTarget.cpp + HW/Latte/Core/LatteRingBuffer.cpp + HW/Latte/Core/LatteRingBuffer.h + HW/Latte/Core/LatteShaderAssembly.h + HW/Latte/Core/LatteShaderCache.cpp + HW/Latte/Core/LatteShaderCache.h + HW/Latte/Core/LatteShader.cpp + HW/Latte/Core/LatteShaderGL.cpp + HW/Latte/Core/LatteShader.h + HW/Latte/Core/LatteSoftware.cpp + HW/Latte/Core/LatteSoftware.h + HW/Latte/Core/LatteStreamoutGPU.cpp + HW/Latte/Core/LatteSurfaceCopy.cpp + HW/Latte/Core/LatteTextureCache.cpp + HW/Latte/Core/LatteTexture.cpp + HW/Latte/Core/LatteTexture.h + HW/Latte/Core/LatteTextureLegacy.cpp + HW/Latte/Core/LatteTextureLoader.cpp + HW/Latte/Core/LatteTextureLoader.h + HW/Latte/Core/LatteTextureReadback.cpp + HW/Latte/Core/LatteTextureReadbackInfo.h + HW/Latte/Core/LatteTextureView.cpp + HW/Latte/Core/LatteTextureView.h + HW/Latte/Core/LatteThread.cpp + HW/Latte/Core/LatteTiming.cpp + HW/Latte/Core/LatteTiming.h + HW/Latte/ISA/LatteInstructions.h + HW/Latte/ISA/LatteReg.h + HW/Latte/ISA/RegDefines.h + HW/Latte/LatteAddrLib/AddrLibFastDecode.h + HW/Latte/LatteAddrLib/LatteAddrLib_Coord.cpp + HW/Latte/LatteAddrLib/LatteAddrLib.cpp + HW/Latte/LatteAddrLib/LatteAddrLib.h + HW/Latte/LegacyShaderDecompiler/LatteDecompilerAnalyzer.cpp + HW/Latte/LegacyShaderDecompiler/LatteDecompiler.cpp + HW/Latte/LegacyShaderDecompiler/LatteDecompilerEmitGLSLAttrDecoder.cpp + HW/Latte/LegacyShaderDecompiler/LatteDecompilerEmitGLSL.cpp + HW/Latte/LegacyShaderDecompiler/LatteDecompilerEmitGLSLHeader.hpp + HW/Latte/LegacyShaderDecompiler/LatteDecompiler.h + HW/Latte/LegacyShaderDecompiler/LatteDecompilerInstructions.h + HW/Latte/LegacyShaderDecompiler/LatteDecompilerInternal.h + HW/Latte/LegacyShaderDecompiler/LatteDecompilerRegisterDataTypeTracker.cpp + HW/Latte/Renderer/OpenGL/CachedFBOGL.h + HW/Latte/Renderer/OpenGL/LatteTextureGL.cpp + HW/Latte/Renderer/OpenGL/LatteTextureGL.h + HW/Latte/Renderer/OpenGL/LatteTextureViewGL.cpp + HW/Latte/Renderer/OpenGL/LatteTextureViewGL.h + HW/Latte/Renderer/OpenGL/OpenGLQuery.cpp + HW/Latte/Renderer/OpenGL/OpenGLRendererCore.cpp + HW/Latte/Renderer/OpenGL/OpenGLRenderer.cpp + HW/Latte/Renderer/OpenGL/OpenGLRenderer.h + HW/Latte/Renderer/OpenGL/OpenGLRendererStreamout.cpp + HW/Latte/Renderer/OpenGL/OpenGLRendererUniformData.cpp + HW/Latte/Renderer/OpenGL/OpenGLSurfaceCopy.cpp + HW/Latte/Renderer/OpenGL/OpenGLTextureReadback.h + HW/Latte/Renderer/OpenGL/RendererShaderGL.cpp + HW/Latte/Renderer/OpenGL/RendererShaderGL.h + HW/Latte/Renderer/OpenGL/TextureReadbackGL.cpp + HW/Latte/Renderer/Renderer.cpp + HW/Latte/Renderer/Renderer.h + HW/Latte/Renderer/RendererOuputShader.cpp + HW/Latte/Renderer/RendererOuputShader.h + HW/Latte/Renderer/RendererShader.cpp + HW/Latte/Renderer/RendererShader.h + HW/Latte/Renderer/Vulkan/CachedFBOVk.cpp + HW/Latte/Renderer/Vulkan/CachedFBOVk.h + HW/Latte/Renderer/Vulkan/CocoaSurface.h + HW/Latte/Renderer/Vulkan/LatteTextureViewVk.cpp + HW/Latte/Renderer/Vulkan/LatteTextureViewVk.h + HW/Latte/Renderer/Vulkan/LatteTextureVk.cpp + HW/Latte/Renderer/Vulkan/LatteTextureVk.h + HW/Latte/Renderer/Vulkan/RendererShaderVk.cpp + HW/Latte/Renderer/Vulkan/RendererShaderVk.h + HW/Latte/Renderer/Vulkan/TextureReadbackVk.cpp + HW/Latte/Renderer/Vulkan/VKRBase.h + HW/Latte/Renderer/Vulkan/VKRMemoryManager.cpp + HW/Latte/Renderer/Vulkan/VKRMemoryManager.h + HW/Latte/Renderer/Vulkan/VKRPipelineInfo.cpp + HW/Latte/Renderer/Vulkan/VsyncDriver.cpp + HW/Latte/Renderer/Vulkan/VsyncDriver.h + HW/Latte/Renderer/Vulkan/VulkanAPI.cpp + HW/Latte/Renderer/Vulkan/VulkanAPI.h + HW/Latte/Renderer/Vulkan/VulkanPipelineCompiler.cpp + HW/Latte/Renderer/Vulkan/VulkanPipelineCompiler.h + HW/Latte/Renderer/Vulkan/VulkanPipelineStableCache.cpp + HW/Latte/Renderer/Vulkan/VulkanPipelineStableCache.h + HW/Latte/Renderer/Vulkan/VulkanQuery.cpp + HW/Latte/Renderer/Vulkan/VulkanRendererCore.cpp + HW/Latte/Renderer/Vulkan/VulkanRenderer.cpp + HW/Latte/Renderer/Vulkan/VulkanRenderer.h + HW/Latte/Renderer/Vulkan/VulkanSurfaceCopy.cpp + HW/Latte/Renderer/Vulkan/VulkanTextureReadback.h + HW/Latte/ShaderInfo/ShaderDescription.cpp + HW/Latte/ShaderInfo/ShaderInfo.h + HW/Latte/ShaderInfo/ShaderInstanceInfo.cpp + HW/Latte/Transcompiler/LatteTC.cpp + HW/Latte/Transcompiler/LatteTCGenIR.cpp + HW/Latte/Transcompiler/LatteTC.h + HW/MMU/MMU.cpp + HW/MMU/MMU.h + HW/SI/SI.cpp + HW/SI/si.h + HW/VI/VI.cpp + IOSU/fsa/fsa_types.h + IOSU/fsa/iosu_fsa.cpp + IOSU/fsa/iosu_fsa.h + IOSU/iosu_ipc_common.h + IOSU/iosu_types_common.h + IOSU/kernel/iosu_kernel.cpp + IOSU/kernel/iosu_kernel.h + IOSU/legacy/iosu_acp.cpp + IOSU/legacy/iosu_acp.h + IOSU/legacy/iosu_act.cpp + IOSU/legacy/iosu_act.h + IOSU/legacy/iosu_boss.cpp + IOSU/legacy/iosu_boss.h + IOSU/legacy/iosu_crypto.cpp + IOSU/legacy/iosu_crypto.h + IOSU/legacy/iosu_fpd.cpp + IOSU/legacy/iosu_fpd.h + IOSU/legacy/iosu_ioctl.cpp + IOSU/legacy/iosu_ioctl.h + IOSU/legacy/iosu_mcp.cpp + IOSU/legacy/iosu_mcp.h + IOSU/legacy/iosu_nim.cpp + IOSU/legacy/iosu_nim.h + IOSU/nn/iosu_nn_service.cpp + IOSU/nn/iosu_nn_service.h + IOSU/PDM/iosu_pdm.cpp + IOSU/PDM/iosu_pdm.h + OS/common/OSCommon.cpp + OS/common/OSCommon.h + OS/common/OSUtil.h + OS/common/PPCConcurrentQueue.h + OS/libs/avm/avm.cpp + OS/libs/avm/avm.h + OS/libs/camera/camera.cpp + OS/libs/camera/camera.h + OS/libs/coreinit/coreinit_Alarm.cpp + OS/libs/coreinit/coreinit_Alarm.h + OS/libs/coreinit/coreinit_Atomic.cpp + OS/libs/coreinit/coreinit_Atomic.h + OS/libs/coreinit/coreinit_BSP.cpp + OS/libs/coreinit/coreinit_BSP.h + OS/libs/coreinit/coreinit_Callbacks.cpp + OS/libs/coreinit/coreinit_CodeGen.cpp + OS/libs/coreinit/coreinit_CodeGen.h + OS/libs/coreinit/coreinit_Coroutine.cpp + OS/libs/coreinit/coreinit_Coroutine.h + OS/libs/coreinit/coreinit.cpp + OS/libs/coreinit/coreinit_DynLoad.cpp + OS/libs/coreinit/coreinit_DynLoad.h + OS/libs/coreinit/coreinit_FG.cpp + OS/libs/coreinit/coreinit_FG.h + OS/libs/coreinit/coreinit_FS.cpp + OS/libs/coreinit/coreinit_FS.h + OS/libs/coreinit/coreinit_GHS.cpp + OS/libs/coreinit/coreinit_GHS.h + OS/libs/coreinit/coreinit.h + OS/libs/coreinit/coreinit_HWInterface.cpp + OS/libs/coreinit/coreinit_HWInterface.h + OS/libs/coreinit/coreinit_IM.cpp + OS/libs/coreinit/coreinit_IM.h + OS/libs/coreinit/coreinit_Init.cpp + OS/libs/coreinit/coreinit_IOS.cpp + OS/libs/coreinit/coreinit_IOS.h + OS/libs/coreinit/coreinit_IPCBuf.cpp + OS/libs/coreinit/coreinit_IPCBuf.h + OS/libs/coreinit/coreinit_IPC.cpp + OS/libs/coreinit/coreinit_IPC.h + OS/libs/coreinit/coreinit_LockedCache.cpp + OS/libs/coreinit/coreinit_LockedCache.h + OS/libs/coreinit/coreinit_MCP.cpp + OS/libs/coreinit/coreinit_MCP.h + OS/libs/coreinit/coreinit_MEM_BlockHeap.cpp + OS/libs/coreinit/coreinit_MEM_BlockHeap.h + OS/libs/coreinit/coreinit_MEM.cpp + OS/libs/coreinit/coreinit_MEM_ExpHeap.cpp + OS/libs/coreinit/coreinit_MEM_ExpHeap.h + OS/libs/coreinit/coreinit_MEM_FrmHeap.cpp + OS/libs/coreinit/coreinit_MEM_FrmHeap.h + OS/libs/coreinit/coreinit_MEM.h + OS/libs/coreinit/coreinit_Memory.cpp + OS/libs/coreinit/coreinit_Memory.h + OS/libs/coreinit/coreinit_MemoryMapping.cpp + OS/libs/coreinit/coreinit_MemoryMapping.h + OS/libs/coreinit/coreinit_MEM_UnitHeap.cpp + OS/libs/coreinit/coreinit_MEM_UnitHeap.h + OS/libs/coreinit/coreinit_MessageQueue.cpp + OS/libs/coreinit/coreinit_MessageQueue.h + OS/libs/coreinit/coreinit_Misc.cpp + OS/libs/coreinit/coreinit_Misc.h + OS/libs/coreinit/coreinit_MPQueue.cpp + OS/libs/coreinit/coreinit_MPQueue.h + OS/libs/coreinit/coreinit_OSScreen.cpp + OS/libs/coreinit/coreinit_OSScreen_font.h + OS/libs/coreinit/coreinit_OSScreen.h + OS/libs/coreinit/coreinit_OverlayArena.cpp + OS/libs/coreinit/coreinit_OverlayArena.h + OS/libs/coreinit/coreinit_Scheduler.cpp + OS/libs/coreinit/coreinit_Scheduler.h + OS/libs/coreinit/coreinit_Spinlock.cpp + OS/libs/coreinit/coreinit_Spinlock.h + OS/libs/coreinit/coreinit_Synchronization.cpp + OS/libs/coreinit/coreinit_SysHeap.cpp + OS/libs/coreinit/coreinit_SysHeap.h + OS/libs/coreinit/coreinit_SystemInfo.cpp + OS/libs/coreinit/coreinit_SystemInfo.h + OS/libs/coreinit/coreinit_Thread.cpp + OS/libs/coreinit/coreinit_Thread.h + OS/libs/coreinit/coreinit_ThreadQueue.cpp + OS/libs/coreinit/coreinit_Time.cpp + OS/libs/coreinit/coreinit_Time.h + OS/libs/dmae/dmae.cpp + OS/libs/dmae/dmae.h + OS/libs/drmapp/drmapp.cpp + OS/libs/drmapp/drmapp.h + OS/libs/erreula/erreula.cpp + OS/libs/erreula/erreula.h + OS/libs/gx2/GX2_AddrTest.cpp + OS/libs/gx2/GX2_Blit.cpp + OS/libs/gx2/GX2_Blit.h + OS/libs/gx2/GX2_Command.cpp + OS/libs/gx2/GX2_Command.h + OS/libs/gx2/GX2_ContextState.cpp + OS/libs/gx2/GX2.cpp + OS/libs/gx2/GX2_Draw.cpp + OS/libs/gx2/GX2_Draw.h + OS/libs/gx2/GX2_Event.cpp + OS/libs/gx2/GX2_Event.h + OS/libs/gx2/GX2.h + OS/libs/gx2/GX2_Memory.cpp + OS/libs/gx2/GX2_Memory.h + OS/libs/gx2/GX2_Misc.cpp + OS/libs/gx2/GX2_Misc.h + OS/libs/gx2/GX2_Query.cpp + OS/libs/gx2/GX2_Query.h + OS/libs/gx2/GX2_RenderTarget.cpp + OS/libs/gx2/GX2_Resource.cpp + OS/libs/gx2/GX2_Resource.h + OS/libs/gx2/GX2_Shader.cpp + OS/libs/gx2/GX2_Shader.h + OS/libs/gx2/GX2_shader_legacy.cpp + OS/libs/gx2/GX2_State.cpp + OS/libs/gx2/GX2_State.h + OS/libs/gx2/GX2_Streamout.cpp + OS/libs/gx2/GX2_Streamout.h + OS/libs/gx2/GX2_Surface_Copy.cpp + OS/libs/gx2/GX2_Surface_Copy.h + OS/libs/gx2/GX2_Surface.cpp + OS/libs/gx2/GX2_Surface.h + OS/libs/gx2/GX2_Texture.cpp + OS/libs/gx2/GX2_Texture.h + OS/libs/gx2/GX2_TilingAperture.cpp + OS/libs/h264_avc/H264Dec.cpp + OS/libs/h264_avc/h264dec.h + OS/libs/h264_avc/parser + OS/libs/h264_avc/parser/H264Parser.cpp + OS/libs/h264_avc/parser/H264Parser.h + OS/libs/mic/mic.cpp + OS/libs/mic/mic.h + OS/libs/nlibcurl/nlibcurl.cpp + OS/libs/nlibcurl/nlibcurlDebug.hpp + OS/libs/nlibcurl/nlibcurl.h + OS/libs/nlibnss/nlibnss.cpp + OS/libs/nlibnss/nlibnss.h + OS/libs/nn_ac/nn_ac.cpp + OS/libs/nn_ac/nn_ac.h + OS/libs/nn_acp/nn_acp.cpp + OS/libs/nn_acp/nn_acp.h + OS/libs/nn_act/nn_act.cpp + OS/libs/nn_act/nn_act.h + OS/libs/nn_aoc/nn_aoc.cpp + OS/libs/nn_aoc/nn_aoc.h + OS/libs/nn_boss/nn_boss.cpp + OS/libs/nn_boss/nn_boss.h + OS/libs/nn_ccr/nn_ccr.cpp + OS/libs/nn_ccr/nn_ccr.h + OS/libs/nn_cmpt/nn_cmpt.cpp + OS/libs/nn_cmpt/nn_cmpt.h + OS/libs/nn_common.h + OS/libs/nn_ec/nn_ec.cpp + OS/libs/nn_ec/nn_ec.h + OS/libs/nn_fp/nn_fp.cpp + OS/libs/nn_fp/nn_fp.h + OS/libs/nn_idbe/nn_idbe.cpp + OS/libs/nn_idbe/nn_idbe.h + OS/libs/nn_ndm/nn_ndm.cpp + OS/libs/nn_ndm/nn_ndm.h + OS/libs/nn_nfp/AmiiboCrypto.h + OS/libs/nn_nfp/nn_nfp.cpp + OS/libs/nn_nfp/nn_nfp.h + OS/libs/nn_nim/nn_nim.cpp + OS/libs/nn_nim/nn_nim.h + OS/libs/nn_olv/nn_olv.cpp + OS/libs/nn_olv/nn_olv.h + OS/libs/nn_pdm/nn_pdm.cpp + OS/libs/nn_pdm/nn_pdm.h + OS/libs/nn_save/nn_save.cpp + OS/libs/nn_save/nn_save.h + OS/libs/nn_temp/nn_temp.cpp + OS/libs/nn_temp/nn_temp.h + OS/libs/nn_uds/nn_uds.cpp + OS/libs/nn_uds/nn_uds.h + OS/libs/nsyshid/nsyshid.cpp + OS/libs/nsyshid/nsyshid.h + OS/libs/nsyskbd/nsyskbd.cpp + OS/libs/nsyskbd/nsyskbd.h + OS/libs/nsysnet/nsysnet.cpp + OS/libs/nsysnet/nsysnet.h + OS/libs/padscore/padscore.cpp + OS/libs/padscore/padscore.h + OS/libs/proc_ui/proc_ui.cpp + OS/libs/proc_ui/proc_ui.h + OS/libs/snd_core/ax_aux.cpp + OS/libs/snd_core/ax_exports.cpp + OS/libs/snd_core/ax.h + OS/libs/snd_core/ax_internal.h + OS/libs/snd_core/ax_ist.cpp + OS/libs/snd_core/ax_mix.cpp + OS/libs/snd_core/ax_multivoice.cpp + OS/libs/snd_core/ax_out.cpp + OS/libs/snd_core/ax_voice.cpp + OS/libs/snd_user/snd_user.cpp + OS/libs/snd_user/snd_user.h + OS/libs/swkbd/swkbd.cpp + OS/libs/swkbd/swkbd.h + OS/libs/sysapp/sysapp.cpp + OS/libs/sysapp/sysapp.h + OS/libs/TCL/TCL.cpp + OS/libs/TCL/TCL.h + OS/libs/vpad/vpad.cpp + OS/libs/vpad/vpad.h + OS/libs/zlib125 + OS/libs/zlib125/zlib125.cpp + OS/libs/zlib125/zlib125.h + OS/RPL/elf.cpp + OS/RPL/rpl.cpp + OS/RPL/rpl_debug_symbols.cpp + OS/RPL/rpl_debug_symbols.h + OS/RPL/rpl.h + OS/RPL/rpl_structs.h + OS/RPL/rpl_symbol_storage.cpp + OS/RPL/rpl_symbol_storage.h + TitleList/BaseInfo.cpp + TitleList/BaseInfo.h + TitleList/GameInfo.h + TitleList/MetaInfo.cpp + TitleList/MetaInfo.h + TitleList/ParsedMetaXml.h + TitleList/SaveInfo.cpp + TitleList/SaveInfo.h + TitleList/SaveList.cpp + TitleList/SaveList.h + TitleList/TitleId.h + TitleList/TitleInfo.cpp + TitleList/TitleInfo.h + TitleList/TitleList.cpp + TitleList/TitleList.h +) if(APPLE) - file(GLOB_RECURSE MM_FILES *.mm) - add_library(CemuCafe ${CPP_FILES} ${MM_FILES} ${H_FILES}) -else() - add_library(CemuCafe ${CPP_FILES} ${H_FILES}) + target_sources(CemuCafe"HW/Latte/Renderer/Vulkan/CocoaSurface.mm") endif() set_property(TARGET CemuCafe PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreaded$<$:Debug>") diff --git a/src/Cemu/CMakeLists.txt b/src/Cemu/CMakeLists.txt index df0ff1d1..1fce8ec1 100644 --- a/src/Cemu/CMakeLists.txt +++ b/src/Cemu/CMakeLists.txt @@ -1,8 +1,36 @@ -project(CemuComponents) - -file(GLOB_RECURSE CPP_FILES *.cpp) -file(GLOB_RECURSE H_FILES *.h) -add_library(CemuComponents ${CPP_FILES} ${H_FILES}) +add_library(CemuComponents + DiscordPresence/DiscordPresence.cpp + DiscordPresence/DiscordPresence.h + ExpressionParser/ExpressionParser.cpp + ExpressionParser/ExpressionParser.h + FileCache/FileCache.cpp + FileCache/FileCache.h + Logging/CemuDebugLogging.h + Logging/CemuLogging.cpp + Logging/CemuLogging.h + napi/napi_act.cpp + napi/napi_ec.cpp + napi/napi.h + napi/napi_helper.cpp + napi/napi_helper.h + napi/napi_idbe.cpp + napi/napi_version.cpp + ncrypto/ncrypto.cpp + ncrypto/ncrypto.h + nex/nex.cpp + nex/nexFriends.cpp + nex/nexFriends.h + nex/nex.h + nex/nexThread.cpp + nex/nexThread.h + nex/nexTypes.h + nex/prudp.cpp + nex/prudp.h + PPCAssembler/ppcAssembler.cpp + PPCAssembler/ppcAssembler.h + Tools/DownloadManager/DownloadManager.cpp + Tools/DownloadManager/DownloadManager.h +) set_property(TARGET CemuComponents PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreaded$<$:Debug>") diff --git a/src/Common/CMakeLists.txt b/src/Common/CMakeLists.txt index f1654f31..ca7ea238 100644 --- a/src/Common/CMakeLists.txt +++ b/src/Common/CMakeLists.txt @@ -1,8 +1,25 @@ -project(CemuCommon) - -file(GLOB CPP_FILES *.cpp) -file(GLOB H_FILES *.h) -add_library(CemuCommon ${CPP_FILES} ${H_FILES}) +add_library(CemuCommon + betype.h + enumFlags.h + ExceptionHandler/ExceptionHandler.h + FileStream.h + GLInclude/glext.h + GLInclude/glFunctions.h + GLInclude/GLInclude.h + GLInclude/glxext.h + GLInclude/khrplatform.h + GLInclude/wglext.h + MemPtr.h + platform.h + precompiled.cpp + precompiled.h + socket.h + StackAllocator.h + SysAllocator.cpp + SysAllocator.h + version.h + zstring_view.h +) set_property(TARGET CemuCommon PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreaded$<$:Debug>") @@ -16,17 +33,16 @@ if(WIN32) else() target_sources(CemuCommon PRIVATE + unix/date.h + unix/fast_float.h unix/platform.cpp unix/platform.h unix/FileStream_unix.cpp + unix/FileStream_unix.h ExceptionHandler/ExceptionHandler_posix.cpp ) endif() -target_sources(CemuCommon PRIVATE - ExceptionHandler/ExceptionHandler.h -) - # All the targets wanting to use the precompiled.h header # have to link to CemuCommon target_precompile_headers(CemuCommon PUBLIC precompiled.h) diff --git a/src/audio/CMakeLists.txt b/src/audio/CMakeLists.txt index d27273e6..d0040185 100644 --- a/src/audio/CMakeLists.txt +++ b/src/audio/CMakeLists.txt @@ -1,5 +1,3 @@ -project(CemuAudio) - add_library(CemuAudio IAudioAPI.cpp IAudioAPI.h diff --git a/src/config/CMakeLists.txt b/src/config/CMakeLists.txt index 58008e46..c329d58b 100644 --- a/src/config/CMakeLists.txt +++ b/src/config/CMakeLists.txt @@ -1,8 +1,17 @@ -project(CemuConfig) - -file(GLOB CPP_FILES *.cpp) -file(GLOB H_FILES *.h) -add_library(CemuConfig ${CPP_FILES} ${H_FILES}) +add_library(CemuConfig + ActiveSettings.cpp + ActiveSettings.h + CemuConfig.cpp + CemuConfig.h + ConfigValue.h + LaunchSettings.cpp + LaunchSettings.h + PermanentConfig.cpp + PermanentConfig.h + PermanentStorage.cpp + PermanentStorage.h + XMLConfig.h +) set_property(TARGET CemuConfig PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreaded$<$:Debug>") diff --git a/src/gui/CMakeLists.txt b/src/gui/CMakeLists.txt index b63135f9..0a2ecc7b 100644 --- a/src/gui/CMakeLists.txt +++ b/src/gui/CMakeLists.txt @@ -1,17 +1,130 @@ -project(CemuGui) - -file(GLOB_RECURSE CPP_FILES *.cpp) -file(GLOB_RECURSE H_FILES *.h) -add_library(CemuGui ${CPP_FILES} ${H_FILES}) +add_library(CemuGui + canvas/IRenderCanvas.h + canvas/OpenGLCanvas.cpp + canvas/OpenGLCanvas.h + canvas/VulkanCanvas.cpp + canvas/VulkanCanvas.h + CemuApp.cpp + CemuApp.h + CemuUpdateWindow.cpp + CemuUpdateWindow.h + ChecksumTool.cpp + ChecksumTool.h + components/TextList.cpp + components/TextList.h + components/wxDownloadManagerList.cpp + components/wxDownloadManagerList.h + components/wxGameList.cpp + components/wxGameList.h + components/wxInputDraw.cpp + components/wxInputDraw.h + components/wxLogCtrl.cpp + components/wxLogCtrl.h + components/wxTitleManagerList.cpp + components/wxTitleManagerList.h + debugger/BreakpointWindow.cpp + debugger/BreakpointWindow.h + debugger/DebuggerWindow2.cpp + debugger/DebuggerWindow2.h + debugger/DisasmCtrl.cpp + debugger/DisasmCtrl.h + debugger/DumpCtrl.cpp + debugger/DumpCtrl.h + debugger/DumpWindow.cpp + debugger/DumpWindow.h + debugger/ModuleWindow.cpp + debugger/ModuleWindow.h + debugger/RegisterCtrl.cpp + debugger/RegisterCtrl.h + debugger/RegisterWindow.cpp + debugger/RegisterWindow.h + debugger/SymbolCtrl.cpp + debugger/SymbolCtrl.h + debugger/SymbolWindow.cpp + debugger/SymbolWindow.h + dialogs/CreateAccount/wxCreateAccountDialog.cpp + dialogs/CreateAccount/wxCreateAccountDialog.h + dialogs/SaveImport/SaveImportWindow.cpp + dialogs/SaveImport/SaveImportWindow.h + dialogs/SaveImport/SaveTransfer.cpp + dialogs/SaveImport/SaveTransfer.h + DownloadGraphicPacksWindow.cpp + DownloadGraphicPacksWindow.h + GameProfileWindow.cpp + GameProfileWindow.h + GameUpdateWindow.cpp + GameUpdateWindow.h + GeneralSettings2.cpp + GeneralSettings2.h + GettingStartedDialog.cpp + GettingStartedDialog.h + GraphicPacksWindow2.cpp + GraphicPacksWindow2.h + guiWrapper.cpp + guiWrapper.h + helpers/wxControlObject.h + helpers/wxCustomData.h + helpers/wxCustomEvents.cpp + helpers/wxCustomEvents.h + helpers/wxHelpers.cpp + helpers/wxHelpers.h + helpers/wxLogEvent.h + input/InputAPIAddWindow.cpp + input/InputAPIAddWindow.h + input/InputSettings2.cpp + input/InputSettings2.h + input/panels/ClassicControllerInputPanel.cpp + input/panels/ClassicControllerInputPanel.h + input/panels/InputPanel.cpp + input/panels/InputPanel.h + input/panels/ProControllerInputPanel.cpp + input/panels/ProControllerInputPanel.h + input/panels/VPADInputPanel.cpp + input/panels/VPADInputPanel.h + input/panels/WiimoteInputPanel.cpp + input/panels/WiimoteInputPanel.h + input/settings/DefaultControllerSettings.cpp + input/settings/DefaultControllerSettings.h + input/settings/WiimoteControllerSettings.cpp + input/settings/WiimoteControllerSettings.h + LoggingWindow.cpp + LoggingWindow.h + MainWindow.cpp + MainWindow.h + MemorySearcherTool.cpp + MemorySearcherTool.h + PadViewFrame.cpp + PadViewFrame.h + TitleManager.cpp + TitleManager.h + windows/PPCThreadsViewer + windows/PPCThreadsViewer/DebugPPCThreadsWindow.cpp + windows/PPCThreadsViewer/DebugPPCThreadsWindow.h + windows/TextureRelationViewer + windows/TextureRelationViewer/TextureRelationWindow.cpp + windows/TextureRelationViewer/TextureRelationWindow.h + wxcomponents/checked2.xpm + wxcomponents/checked_dis.xpm + wxcomponents/checked_d.xpm + wxcomponents/checked_ld.xpm + wxcomponents/checkedlistctrl.cpp + wxcomponents/checkedlistctrl.h + wxcomponents/checked_mo.xpm + wxcomponents/checked.xpm + wxcomponents/checktree.cpp + wxcomponents/checktree.h + wxcomponents/unchecked2.xpm + wxcomponents/unchecked_dis.xpm + wxcomponents/unchecked_d.xpm + wxcomponents/unchecked_ld.xpm + wxcomponents/unchecked_mo.xpm + wxcomponents/unchecked.xpm + wxgui.h + wxHelper.h +) set_property(TARGET CemuGui PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreaded$<$:Debug>") -target_sources(CemuGui PRIVATE - wxcomponents/checkedlistctrl.cpp - wxcomponents/checkedlistctrl.h - wxcomponents/checktree.cpp - wxcomponents/checktree.h -) target_include_directories(CemuGui PUBLIC "../") # PUBLIC because rapidjson/document.h is included in ChecksumTool.h diff --git a/src/imgui/CMakeLists.txt b/src/imgui/CMakeLists.txt index 412330ec..97b56455 100644 --- a/src/imgui/CMakeLists.txt +++ b/src/imgui/CMakeLists.txt @@ -1,10 +1,4 @@ -project(imguiImpl) - -add_library(imguiImpl) - -set_property(TARGET imguiImpl PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreaded$<$:Debug>") - -target_sources(imguiImpl PRIVATE +add_library(imguiImpl imgui_impl_opengl3.cpp imgui_impl_opengl3.h imgui_impl_vulkan.cpp @@ -13,6 +7,8 @@ target_sources(imguiImpl PRIVATE imgui_extension.h ) +set_property(TARGET imguiImpl PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreaded$<$:Debug>") + target_include_directories(imguiImpl PUBLIC "../") target_link_libraries(imguiImpl PRIVATE diff --git a/src/input/CMakeLists.txt b/src/input/CMakeLists.txt index 47609385..ecb88cd2 100644 --- a/src/input/CMakeLists.txt +++ b/src/input/CMakeLists.txt @@ -1,5 +1,3 @@ -project(CemuInput) - add_library(CemuInput InputManager.cpp InputManager.h @@ -11,6 +9,24 @@ add_library(CemuInput api/ControllerState.cpp api/InputAPI.h api/ControllerProvider.h + api/DSU/DSUController.h + api/DSU/DSUControllerProvider.cpp + api/DSU/DSUController.cpp + api/DSU/DSUControllerProvider.h + api/DSU/DSUMessages.h + api/DSU/DSUMessages.cpp + api/SDL/SDLController.cpp + api/SDL/SDLControllerProvider.cpp + api/SDL/SDLController.h + api/SDL/SDLControllerProvider.h + api/Keyboard/KeyboardControllerProvider.h + api/Keyboard/KeyboardControllerProvider.cpp + api/Keyboard/KeyboardController.cpp + api/Keyboard/KeyboardController.h + api/GameCube/GameCubeController.cpp + api/GameCube/GameCubeControllerProvider.h + api/GameCube/GameCubeControllerProvider.cpp + api/GameCube/GameCubeController.h emulated/ProController.cpp emulated/EmulatedController.h emulated/EmulatedController.cpp @@ -27,40 +43,6 @@ add_library(CemuInput set_property(TARGET CemuInput PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreaded$<$:Debug>") -# SDL -target_sources(CemuInput PRIVATE - api/SDL/SDLController.cpp - api/SDL/SDLControllerProvider.cpp - api/SDL/SDLController.h - api/SDL/SDLControllerProvider.h -) - -# DSU -target_sources(CemuInput PRIVATE - api/DSU/DSUController.h - api/DSU/DSUControllerProvider.cpp - api/DSU/DSUController.cpp - api/DSU/DSUControllerProvider.h - api/DSU/DSUMessages.h - api/DSU/DSUMessages.cpp -) - -# Keyboard controller -target_sources(CemuInput PRIVATE - api/Keyboard/KeyboardControllerProvider.h - api/Keyboard/KeyboardControllerProvider.cpp - api/Keyboard/KeyboardController.cpp - api/Keyboard/KeyboardController.h -) - -# Native gamecube -target_sources(CemuInput PRIVATE - api/GameCube/GameCubeController.cpp - api/GameCube/GameCubeControllerProvider.h - api/GameCube/GameCubeControllerProvider.cpp - api/GameCube/GameCubeController.h -) - if(WIN32) # Native wiimote (Win32 only for now) target_sources(CemuInput PRIVATE diff --git a/src/util/CMakeLists.txt b/src/util/CMakeLists.txt index 090b2bd1..06c8f857 100644 --- a/src/util/CMakeLists.txt +++ b/src/util/CMakeLists.txt @@ -1,9 +1,75 @@ -project(CemuUtil) - -file(GLOB_RECURSE CPP_FILES *.cpp) -file(GLOB_RECURSE H_FILES *.h) - -add_library(CemuUtil ${CPP_FILES} ${H_FILES}) +add_library(CemuUtil + boost/bluetooth.h + ChunkedHeap/ChunkedHeap.h + containers/flat_hash_map.hpp + containers/IntervalBucketContainer.h + containers/LookupTableL3.h + containers/RangeStore.h + containers/robin_hood.h + containers/SmallBitset.h + crypto/aes128.cpp + crypto/aes128.h + crypto/crc32.cpp + crypto/crc32.h + crypto/md5.cpp + crypto/md5.h + DXGIWrapper/DXGIWrapper.h + EventService.h + Fiber/Fiber.h + Fiber/FiberUnix.cpp + Fiber/FiberWin.cpp + helpers/ClassWrapper.h + helpers/ConcurrentQueue.h + helpers/enum_array.hpp + helpers/fixedSizeList.h + helpers/fspinlock.h + helpers/helpers.cpp + helpers/helpers.h + helpers/MapAdaptor.h + helpers/MemoryPool.h + helpers/ringbuffer.h + helpers/Semaphore.h + helpers/Serializer.cpp + helpers/Serializer.h + helpers/Singleton.h + helpers/StringBuf.h + helpers/StringHelpers.h + helpers/StringParser.h + helpers/SystemException.h + helpers/TempState.h + highresolutiontimer/HighResolutionTimer.cpp + highresolutiontimer/HighResolutionTimer.h + ImageWriter/bmp.h + ImageWriter/tga.h + IniParser/IniParser.cpp + IniParser/IniParser.h + libusbWrapper/libusbWrapper.cpp + libusbWrapper/libusbWrapper.h + math/glm.h + math/quaternion.h + math/vector2.h + math/vector3.h + MemMapper/MemMapper.h + MemMapper/MemMapperUnix.cpp + MemMapper/MemMapperWin.cpp + ThreadPool/ThreadPool.cpp + ThreadPool/ThreadPool.h + tinyxml2/tinyxml2.cpp + tinyxml2/tinyxml2.h + VirtualHeap/VirtualHeap.cpp + VirtualHeap/VirtualHeap.h + Zir/Core/IR.cpp + Zir/Core/IR.h + Zir/Core/ZirUtility.h + Zir/Core/ZpIRBuilder.h + Zir/Core/ZpIRDebug.h + Zir/Core/ZpIRPasses.h + Zir/Core/ZpIRScheduler.h + Zir/EmitterGLSL/ZpIREmitGLSL.cpp + Zir/EmitterGLSL/ZpIREmitGLSL.h + Zir/Passes/RegisterAllocatorForGLSL.cpp + Zir/Passes/ZpIRRegisterAllocator.cpp +) set_property(TARGET CemuUtil PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreaded$<$:Debug>")