From 51b170b470ed587f99a7c2a773e4464687f0d07a Mon Sep 17 00:00:00 2001 From: crueter Date: Mon, 4 Aug 2025 04:50:14 +0200 Subject: [cmake] refactor: Use CPM over submodules (#143) Transfers the majority of submodules and large externals to CPM, using source archives rather than full Git clones. Not only does this save massive amounts of clone and configure time, but dependencies are grabbed on-demand rather than being required by default. Additionally, CPM will (generally) automatically search for system dependencies, though certain dependencies have options to control this. Testing shows gains ranging from 5x to 10x in terms of overall clone/configure time. Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/143 Reviewed-by: CamilleLaVey --- .../CMakeModules/impl/TargetArchitectureSpecificSourcesWrapFile.cmake | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 src/dynarmic/CMakeModules/impl/TargetArchitectureSpecificSourcesWrapFile.cmake (limited to 'src/dynarmic/CMakeModules/impl/TargetArchitectureSpecificSourcesWrapFile.cmake') diff --git a/src/dynarmic/CMakeModules/impl/TargetArchitectureSpecificSourcesWrapFile.cmake b/src/dynarmic/CMakeModules/impl/TargetArchitectureSpecificSourcesWrapFile.cmake new file mode 100644 index 0000000000..82b3078a11 --- /dev/null +++ b/src/dynarmic/CMakeModules/impl/TargetArchitectureSpecificSourcesWrapFile.cmake @@ -0,0 +1,3 @@ +string(TOUPPER "${arch}" arch) +file(READ "${input_file}" f_contents) +file(WRITE "${output_file}" "#include \n#if defined(MCL_ARCHITECTURE_${arch})\n${f_contents}\n#endif\n") -- cgit v1.2.3