summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt3
-rw-r--r--src/audio_core/CMakeLists.txt5
-rw-r--r--src/audio_core/precompiled_headers.h6
-rw-r--r--src/common/CMakeLists.txt6
-rw-r--r--src/common/common_precompiled_headers.h14
-rw-r--r--src/common/precompiled_headers.h6
-rw-r--r--src/common/string_util.cpp4
-rw-r--r--src/core/CMakeLists.txt5
-rw-r--r--src/core/precompiled_headers.h11
-rw-r--r--src/dedicated_room/CMakeLists.txt5
-rw-r--r--src/dedicated_room/precompiled_headers.h6
-rw-r--r--src/input_common/CMakeLists.txt5
-rw-r--r--src/input_common/precompiled_headers.h6
-rw-r--r--src/network/CMakeLists.txt5
-rw-r--r--src/network/precompiled_headers.h6
-rw-r--r--src/shader_recompiler/CMakeLists.txt5
-rw-r--r--src/shader_recompiler/frontend/ir/value.h1
-rw-r--r--src/shader_recompiler/precompiled_headers.h7
-rw-r--r--src/tests/CMakeLists.txt5
-rw-r--r--src/tests/precompiled_headers.h6
-rw-r--r--src/video_core/CMakeLists.txt5
-rw-r--r--src/video_core/precompiled_headers.h6
-rw-r--r--src/web_service/CMakeLists.txt5
-rw-r--r--src/web_service/precompiled_headers.h6
-rw-r--r--src/yuzu/CMakeLists.txt5
-rw-r--r--src/yuzu/precompiled_headers.h6
-rw-r--r--src/yuzu_cmd/CMakeLists.txt5
-rw-r--r--src/yuzu_cmd/precompiled_headers.h6
28 files changed, 157 insertions, 4 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 4bd5aa50b..140415474 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -82,8 +82,9 @@ if (MSVC)
82 /wd4324 # 'struct_name': structure was padded due to __declspec(align()) 82 /wd4324 # 'struct_name': structure was padded due to __declspec(align())
83 ) 83 )
84 84
85 if (USE_CCACHE) 85 if (USE_CCACHE OR YUZU_USE_PRECOMPILED_HEADERS)
86 # when caching, we need to use /Z7 to downgrade debug info to use an older but more cachable format 86 # when caching, we need to use /Z7 to downgrade debug info to use an older but more cachable format
87 # Precompiled headers are deleted if not using /Z7. See https://github.com/nanoant/CMakePCHCompiler/issues/21
87 add_compile_options(/Z7) 88 add_compile_options(/Z7)
88 else() 89 else()
89 add_compile_options(/Zi) 90 add_compile_options(/Zi)
diff --git a/src/audio_core/CMakeLists.txt b/src/audio_core/CMakeLists.txt
index 75416c53a..0a9d9ec29 100644
--- a/src/audio_core/CMakeLists.txt
+++ b/src/audio_core/CMakeLists.txt
@@ -31,6 +31,7 @@ add_library(audio_core STATIC
31 out/audio_out.h 31 out/audio_out.h
32 out/audio_out_system.cpp 32 out/audio_out_system.cpp
33 out/audio_out_system.h 33 out/audio_out_system.h
34 precompiled_headers.h
34 renderer/adsp/adsp.cpp 35 renderer/adsp/adsp.cpp
35 renderer/adsp/adsp.h 36 renderer/adsp/adsp.h
36 renderer/adsp/audio_renderer.cpp 37 renderer/adsp/audio_renderer.cpp
@@ -233,3 +234,7 @@ if(ENABLE_SDL2)
233 endif() 234 endif()
234 target_compile_definitions(audio_core PRIVATE HAVE_SDL2) 235 target_compile_definitions(audio_core PRIVATE HAVE_SDL2)
235endif() 236endif()
237
238if (YUZU_USE_PRECOMPILED_HEADERS)
239 target_precompile_headers(audio_core PRIVATE precompiled_headers.h)
240endif()
diff --git a/src/audio_core/precompiled_headers.h b/src/audio_core/precompiled_headers.h
new file mode 100644
index 000000000..aabae730b
--- /dev/null
+++ b/src/audio_core/precompiled_headers.h
@@ -0,0 +1,6 @@
1// SPDX-FileCopyrightText: 2022 yuzu Emulator Project
2// SPDX-License-Identifier: GPL-2.0-or-later
3
4#pragma once
5
6#include "common/common_precompiled_headers.h"
diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt
index b7c15c191..a12edc584 100644
--- a/src/common/CMakeLists.txt
+++ b/src/common/CMakeLists.txt
@@ -37,6 +37,7 @@ add_library(common STATIC
37 cache_management.cpp 37 cache_management.cpp
38 cache_management.h 38 cache_management.h
39 common_funcs.h 39 common_funcs.h
40 common_precompiled_headers.h
40 common_types.h 41 common_types.h
41 concepts.h 42 concepts.h
42 div_ceil.h 43 div_ceil.h
@@ -95,6 +96,7 @@ add_library(common STATIC
95 param_package.h 96 param_package.h
96 parent_of_member.h 97 parent_of_member.h
97 point.h 98 point.h
99 precompiled_headers.h
98 quaternion.h 100 quaternion.h
99 reader_writer_queue.h 101 reader_writer_queue.h
100 ring_buffer.h 102 ring_buffer.h
@@ -183,3 +185,7 @@ else()
183 target_link_libraries(common PRIVATE 185 target_link_libraries(common PRIVATE
184 $<IF:$<TARGET_EXISTS:zstd::libzstd_shared>,zstd::libzstd_shared,zstd::libzstd_static>) 186 $<IF:$<TARGET_EXISTS:zstd::libzstd_shared>,zstd::libzstd_shared,zstd::libzstd_static>)
185endif() 187endif()
188
189if (YUZU_USE_PRECOMPILED_HEADERS)
190 target_precompile_headers(common PRIVATE precompiled_headers.h)
191endif()
diff --git a/src/common/common_precompiled_headers.h b/src/common/common_precompiled_headers.h
new file mode 100644
index 000000000..be7e5b5f9
--- /dev/null
+++ b/src/common/common_precompiled_headers.h
@@ -0,0 +1,14 @@
1// SPDX-FileCopyrightText: 2022 yuzu Emulator Project
2// SPDX-License-Identifier: GPL-2.0-or-later
3
4#pragma once
5
6#include <algorithm>
7#include <array>
8#include <chrono>
9#include <memory>
10
11#include <fmt/format.h>
12
13#include "common/assert.h"
14#include "common/common_types.h"
diff --git a/src/common/precompiled_headers.h b/src/common/precompiled_headers.h
new file mode 100644
index 000000000..aabae730b
--- /dev/null
+++ b/src/common/precompiled_headers.h
@@ -0,0 +1,6 @@
1// SPDX-FileCopyrightText: 2022 yuzu Emulator Project
2// SPDX-License-Identifier: GPL-2.0-or-later
3
4#pragma once
5
6#include "common/common_precompiled_headers.h"
diff --git a/src/common/string_util.cpp b/src/common/string_util.cpp
index 7a495bc79..b26db4796 100644
--- a/src/common/string_util.cpp
+++ b/src/common/string_util.cpp
@@ -141,7 +141,7 @@ static std::wstring CPToUTF16(u32 code_page, const std::string& input) {
141 MultiByteToWideChar(code_page, 0, input.data(), static_cast<int>(input.size()), nullptr, 0); 141 MultiByteToWideChar(code_page, 0, input.data(), static_cast<int>(input.size()), nullptr, 0);
142 142
143 if (size == 0) { 143 if (size == 0) {
144 return L""; 144 return {};
145 } 145 }
146 146
147 std::wstring output(size, L'\0'); 147 std::wstring output(size, L'\0');
@@ -158,7 +158,7 @@ std::string UTF16ToUTF8(const std::wstring& input) {
158 const auto size = WideCharToMultiByte(CP_UTF8, 0, input.data(), static_cast<int>(input.size()), 158 const auto size = WideCharToMultiByte(CP_UTF8, 0, input.data(), static_cast<int>(input.size()),
159 nullptr, 0, nullptr, nullptr); 159 nullptr, 0, nullptr, nullptr);
160 if (size == 0) { 160 if (size == 0) {
161 return ""; 161 return {};
162 } 162 }
163 163
164 std::string output(size, '\0'); 164 std::string output(size, '\0');
diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt
index 5629980d9..6530d3c60 100644
--- a/src/core/CMakeLists.txt
+++ b/src/core/CMakeLists.txt
@@ -771,6 +771,7 @@ add_library(core STATIC
771 memory.h 771 memory.h
772 perf_stats.cpp 772 perf_stats.cpp
773 perf_stats.h 773 perf_stats.h
774 precompiled_headers.h
774 reporter.cpp 775 reporter.cpp
775 reporter.h 776 reporter.h
776 telemetry_session.cpp 777 telemetry_session.cpp
@@ -825,3 +826,7 @@ if (ARCHITECTURE_x86_64 OR ARCHITECTURE_arm64)
825 ) 826 )
826 target_link_libraries(core PRIVATE dynarmic) 827 target_link_libraries(core PRIVATE dynarmic)
827endif() 828endif()
829
830if (YUZU_USE_PRECOMPILED_HEADERS)
831 target_precompile_headers(core PRIVATE precompiled_headers.h)
832endif()
diff --git a/src/core/precompiled_headers.h b/src/core/precompiled_headers.h
new file mode 100644
index 000000000..30a31001d
--- /dev/null
+++ b/src/core/precompiled_headers.h
@@ -0,0 +1,11 @@
1// SPDX-FileCopyrightText: 2022 yuzu Emulator Project
2// SPDX-License-Identifier: GPL-2.0-or-later
3
4#pragma once
5
6#include <boost/container/flat_map.hpp> // used by service.h which is heavily included
7#include <boost/intrusive/rbtree.hpp> // used by k_auto_object.h which is heavily included
8
9#include "common/common_precompiled_headers.h"
10
11#include "core/hle/kernel/k_process.h"
diff --git a/src/dedicated_room/CMakeLists.txt b/src/dedicated_room/CMakeLists.txt
index 2d9731f19..5bbe1d4b5 100644
--- a/src/dedicated_room/CMakeLists.txt
+++ b/src/dedicated_room/CMakeLists.txt
@@ -4,6 +4,7 @@
4set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${PROJECT_SOURCE_DIR}/CMakeModules) 4set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${PROJECT_SOURCE_DIR}/CMakeModules)
5 5
6add_executable(yuzu-room 6add_executable(yuzu-room
7 precompiled_headers.h
7 yuzu_room.cpp 8 yuzu_room.cpp
8 yuzu_room.rc 9 yuzu_room.rc
9) 10)
@@ -25,3 +26,7 @@ target_link_libraries(yuzu-room PRIVATE ${PLATFORM_LIBRARIES} Threads::Threads)
25if(UNIX AND NOT APPLE) 26if(UNIX AND NOT APPLE)
26 install(TARGETS yuzu-room) 27 install(TARGETS yuzu-room)
27endif() 28endif()
29
30if (YUZU_USE_PRECOMPILED_HEADERS)
31 target_precompile_headers(yuzu-room PRIVATE precompiled_headers.h)
32endif()
diff --git a/src/dedicated_room/precompiled_headers.h b/src/dedicated_room/precompiled_headers.h
new file mode 100644
index 000000000..aabae730b
--- /dev/null
+++ b/src/dedicated_room/precompiled_headers.h
@@ -0,0 +1,6 @@
1// SPDX-FileCopyrightText: 2022 yuzu Emulator Project
2// SPDX-License-Identifier: GPL-2.0-or-later
3
4#pragma once
5
6#include "common/common_precompiled_headers.h"
diff --git a/src/input_common/CMakeLists.txt b/src/input_common/CMakeLists.txt
index 193127d0a..e41da2726 100644
--- a/src/input_common/CMakeLists.txt
+++ b/src/input_common/CMakeLists.txt
@@ -34,6 +34,7 @@ add_library(input_common STATIC
34 input_poller.h 34 input_poller.h
35 main.cpp 35 main.cpp
36 main.h 36 main.h
37 precompiled_headers.h
37) 38)
38 39
39if (MSVC) 40if (MSVC)
@@ -67,3 +68,7 @@ target_link_libraries(input_common PRIVATE usb)
67 68
68create_target_directory_groups(input_common) 69create_target_directory_groups(input_common)
69target_link_libraries(input_common PUBLIC core PRIVATE common Boost::boost) 70target_link_libraries(input_common PUBLIC core PRIVATE common Boost::boost)
71
72if (YUZU_USE_PRECOMPILED_HEADERS)
73 target_precompile_headers(input_common PRIVATE precompiled_headers.h)
74endif()
diff --git a/src/input_common/precompiled_headers.h b/src/input_common/precompiled_headers.h
new file mode 100644
index 000000000..aabae730b
--- /dev/null
+++ b/src/input_common/precompiled_headers.h
@@ -0,0 +1,6 @@
1// SPDX-FileCopyrightText: 2022 yuzu Emulator Project
2// SPDX-License-Identifier: GPL-2.0-or-later
3
4#pragma once
5
6#include "common/common_precompiled_headers.h"
diff --git a/src/network/CMakeLists.txt b/src/network/CMakeLists.txt
index 6f8ca4b90..c85c308de 100644
--- a/src/network/CMakeLists.txt
+++ b/src/network/CMakeLists.txt
@@ -8,6 +8,7 @@ add_library(network STATIC
8 network.h 8 network.h
9 packet.cpp 9 packet.cpp
10 packet.h 10 packet.h
11 precompiled_headers.h
11 room.cpp 12 room.cpp
12 room.h 13 room.h
13 room_member.cpp 14 room_member.cpp
@@ -23,3 +24,7 @@ if (ENABLE_WEB_SERVICE)
23 target_compile_definitions(network PRIVATE -DENABLE_WEB_SERVICE) 24 target_compile_definitions(network PRIVATE -DENABLE_WEB_SERVICE)
24 target_link_libraries(network PRIVATE web_service) 25 target_link_libraries(network PRIVATE web_service)
25endif() 26endif()
27
28if (YUZU_USE_PRECOMPILED_HEADERS)
29 target_precompile_headers(network PRIVATE precompiled_headers.h)
30endif()
diff --git a/src/network/precompiled_headers.h b/src/network/precompiled_headers.h
new file mode 100644
index 000000000..aabae730b
--- /dev/null
+++ b/src/network/precompiled_headers.h
@@ -0,0 +1,6 @@
1// SPDX-FileCopyrightText: 2022 yuzu Emulator Project
2// SPDX-License-Identifier: GPL-2.0-or-later
3
4#pragma once
5
6#include "common/common_precompiled_headers.h"
diff --git a/src/shader_recompiler/CMakeLists.txt b/src/shader_recompiler/CMakeLists.txt
index ef09fe2b9..525b2363c 100644
--- a/src/shader_recompiler/CMakeLists.txt
+++ b/src/shader_recompiler/CMakeLists.txt
@@ -231,6 +231,7 @@ add_library(shader_recompiler STATIC
231 ir_opt/texture_pass.cpp 231 ir_opt/texture_pass.cpp
232 ir_opt/verification_pass.cpp 232 ir_opt/verification_pass.cpp
233 object_pool.h 233 object_pool.h
234 precompiled_headers.h
234 profile.h 235 profile.h
235 program_header.h 236 program_header.h
236 runtime_info.h 237 runtime_info.h
@@ -260,3 +261,7 @@ else()
260endif() 261endif()
261 262
262create_target_directory_groups(shader_recompiler) 263create_target_directory_groups(shader_recompiler)
264
265if (YUZU_USE_PRECOMPILED_HEADERS)
266 target_precompile_headers(shader_recompiler PRIVATE precompiled_headers.h)
267endif()
diff --git a/src/shader_recompiler/frontend/ir/value.h b/src/shader_recompiler/frontend/ir/value.h
index e8bbb93a5..8b34356fd 100644
--- a/src/shader_recompiler/frontend/ir/value.h
+++ b/src/shader_recompiler/frontend/ir/value.h
@@ -23,7 +23,6 @@
23#include "shader_recompiler/frontend/ir/pred.h" 23#include "shader_recompiler/frontend/ir/pred.h"
24#include "shader_recompiler/frontend/ir/reg.h" 24#include "shader_recompiler/frontend/ir/reg.h"
25#include "shader_recompiler/frontend/ir/type.h" 25#include "shader_recompiler/frontend/ir/type.h"
26#include "shader_recompiler/frontend/ir/value.h"
27 26
28namespace Shader::IR { 27namespace Shader::IR {
29 28
diff --git a/src/shader_recompiler/precompiled_headers.h b/src/shader_recompiler/precompiled_headers.h
new file mode 100644
index 000000000..5dd6b7eca
--- /dev/null
+++ b/src/shader_recompiler/precompiled_headers.h
@@ -0,0 +1,7 @@
1// SPDX-FileCopyrightText: 2022 yuzu Emulator Project
2// SPDX-License-Identifier: GPL-2.0-or-later
3
4#pragma once
5
6#include "common/common_precompiled_headers.h"
7#include "frontend/maxwell/translate/impl/impl.h"
diff --git a/src/tests/CMakeLists.txt b/src/tests/CMakeLists.txt
index 43ad2c7ff..348d1edf4 100644
--- a/src/tests/CMakeLists.txt
+++ b/src/tests/CMakeLists.txt
@@ -11,6 +11,7 @@ add_executable(tests
11 common/unique_function.cpp 11 common/unique_function.cpp
12 core/core_timing.cpp 12 core/core_timing.cpp
13 core/internal_network/network.cpp 13 core/internal_network/network.cpp
14 precompiled_headers.h
14 tests.cpp 15 tests.cpp
15 video_core/buffer_base.cpp 16 video_core/buffer_base.cpp
16 input_common/calibration_configuration_job.cpp 17 input_common/calibration_configuration_job.cpp
@@ -22,3 +23,7 @@ target_link_libraries(tests PRIVATE common core input_common)
22target_link_libraries(tests PRIVATE ${PLATFORM_LIBRARIES} Catch2::Catch2 Threads::Threads) 23target_link_libraries(tests PRIVATE ${PLATFORM_LIBRARIES} Catch2::Catch2 Threads::Threads)
23 24
24add_test(NAME tests COMMAND tests) 25add_test(NAME tests COMMAND tests)
26
27if (YUZU_USE_PRECOMPILED_HEADERS)
28 target_precompile_headers(tests PRIVATE precompiled_headers.h)
29endif()
diff --git a/src/tests/precompiled_headers.h b/src/tests/precompiled_headers.h
new file mode 100644
index 000000000..aabae730b
--- /dev/null
+++ b/src/tests/precompiled_headers.h
@@ -0,0 +1,6 @@
1// SPDX-FileCopyrightText: 2022 yuzu Emulator Project
2// SPDX-License-Identifier: GPL-2.0-or-later
3
4#pragma once
5
6#include "common/common_precompiled_headers.h"
diff --git a/src/video_core/CMakeLists.txt b/src/video_core/CMakeLists.txt
index b03a30992..97609ded4 100644
--- a/src/video_core/CMakeLists.txt
+++ b/src/video_core/CMakeLists.txt
@@ -84,6 +84,7 @@ add_library(video_core STATIC
84 gpu_thread.h 84 gpu_thread.h
85 memory_manager.cpp 85 memory_manager.cpp
86 memory_manager.h 86 memory_manager.h
87 precompiled_headers.h
87 pte_kind.h 88 pte_kind.h
88 query_cache.h 89 query_cache.h
89 rasterizer_accelerated.cpp 90 rasterizer_accelerated.cpp
@@ -300,3 +301,7 @@ endif()
300if (ARCHITECTURE_x86_64 OR ARCHITECTURE_arm64) 301if (ARCHITECTURE_x86_64 OR ARCHITECTURE_arm64)
301 target_link_libraries(video_core PRIVATE dynarmic) 302 target_link_libraries(video_core PRIVATE dynarmic)
302endif() 303endif()
304
305if (YUZU_USE_PRECOMPILED_HEADERS)
306 target_precompile_headers(video_core PRIVATE precompiled_headers.h)
307endif()
diff --git a/src/video_core/precompiled_headers.h b/src/video_core/precompiled_headers.h
new file mode 100644
index 000000000..aabae730b
--- /dev/null
+++ b/src/video_core/precompiled_headers.h
@@ -0,0 +1,6 @@
1// SPDX-FileCopyrightText: 2022 yuzu Emulator Project
2// SPDX-License-Identifier: GPL-2.0-or-later
3
4#pragma once
5
6#include "common/common_precompiled_headers.h"
diff --git a/src/web_service/CMakeLists.txt b/src/web_service/CMakeLists.txt
index 3f75d97d1..19534b9e4 100644
--- a/src/web_service/CMakeLists.txt
+++ b/src/web_service/CMakeLists.txt
@@ -4,6 +4,7 @@
4add_library(web_service STATIC 4add_library(web_service STATIC
5 announce_room_json.cpp 5 announce_room_json.cpp
6 announce_room_json.h 6 announce_room_json.h
7 precompiled_headers.h
7 telemetry_json.cpp 8 telemetry_json.cpp
8 telemetry_json.h 9 telemetry_json.h
9 verify_login.cpp 10 verify_login.cpp
@@ -17,3 +18,7 @@ add_library(web_service STATIC
17 18
18create_target_directory_groups(web_service) 19create_target_directory_groups(web_service)
19target_link_libraries(web_service PRIVATE common network nlohmann_json::nlohmann_json httplib cpp-jwt) 20target_link_libraries(web_service PRIVATE common network nlohmann_json::nlohmann_json httplib cpp-jwt)
21
22if (YUZU_USE_PRECOMPILED_HEADERS)
23 target_precompile_headers(web_service PRIVATE precompiled_headers.h)
24endif()
diff --git a/src/web_service/precompiled_headers.h b/src/web_service/precompiled_headers.h
new file mode 100644
index 000000000..aabae730b
--- /dev/null
+++ b/src/web_service/precompiled_headers.h
@@ -0,0 +1,6 @@
1// SPDX-FileCopyrightText: 2022 yuzu Emulator Project
2// SPDX-License-Identifier: GPL-2.0-or-later
3
4#pragma once
5
6#include "common/common_precompiled_headers.h"
diff --git a/src/yuzu/CMakeLists.txt b/src/yuzu/CMakeLists.txt
index 060de0259..656dd79a9 100644
--- a/src/yuzu/CMakeLists.txt
+++ b/src/yuzu/CMakeLists.txt
@@ -186,6 +186,7 @@ add_executable(yuzu
186 multiplayer/state.cpp 186 multiplayer/state.cpp
187 multiplayer/state.h 187 multiplayer/state.h
188 multiplayer/validation.h 188 multiplayer/validation.h
189 precompiled_headers.h
189 startup_checks.cpp 190 startup_checks.cpp
190 startup_checks.h 191 startup_checks.h
191 uisettings.cpp 192 uisettings.cpp
@@ -409,3 +410,7 @@ endif()
409if (ARCHITECTURE_x86_64 OR ARCHITECTURE_arm64) 410if (ARCHITECTURE_x86_64 OR ARCHITECTURE_arm64)
410 target_link_libraries(yuzu PRIVATE dynarmic) 411 target_link_libraries(yuzu PRIVATE dynarmic)
411endif() 412endif()
413
414if (YUZU_USE_PRECOMPILED_HEADERS)
415 target_precompile_headers(yuzu PRIVATE precompiled_headers.h)
416endif()
diff --git a/src/yuzu/precompiled_headers.h b/src/yuzu/precompiled_headers.h
new file mode 100644
index 000000000..aabae730b
--- /dev/null
+++ b/src/yuzu/precompiled_headers.h
@@ -0,0 +1,6 @@
1// SPDX-FileCopyrightText: 2022 yuzu Emulator Project
2// SPDX-License-Identifier: GPL-2.0-or-later
3
4#pragma once
5
6#include "common/common_precompiled_headers.h"
diff --git a/src/yuzu_cmd/CMakeLists.txt b/src/yuzu_cmd/CMakeLists.txt
index 7d8ca3d8a..daabf608d 100644
--- a/src/yuzu_cmd/CMakeLists.txt
+++ b/src/yuzu_cmd/CMakeLists.txt
@@ -24,6 +24,7 @@ add_executable(yuzu-cmd
24 emu_window/emu_window_sdl2_gl.h 24 emu_window/emu_window_sdl2_gl.h
25 emu_window/emu_window_sdl2_vk.cpp 25 emu_window/emu_window_sdl2_vk.cpp
26 emu_window/emu_window_sdl2_vk.h 26 emu_window/emu_window_sdl2_vk.h
27 precompiled_headers.h
27 yuzu.cpp 28 yuzu.cpp
28 yuzu.rc 29 yuzu.rc
29) 30)
@@ -55,3 +56,7 @@ if (MSVC)
55 include(CopyYuzuSDLDeps) 56 include(CopyYuzuSDLDeps)
56 copy_yuzu_SDL_deps(yuzu-cmd) 57 copy_yuzu_SDL_deps(yuzu-cmd)
57endif() 58endif()
59
60if (YUZU_USE_PRECOMPILED_HEADERS)
61 target_precompile_headers(yuzu-cmd PRIVATE precompiled_headers.h)
62endif()
diff --git a/src/yuzu_cmd/precompiled_headers.h b/src/yuzu_cmd/precompiled_headers.h
new file mode 100644
index 000000000..aabae730b
--- /dev/null
+++ b/src/yuzu_cmd/precompiled_headers.h
@@ -0,0 +1,6 @@
1// SPDX-FileCopyrightText: 2022 yuzu Emulator Project
2// SPDX-License-Identifier: GPL-2.0-or-later
3
4#pragma once
5
6#include "common/common_precompiled_headers.h"