diff options
| author | 2022-11-22 18:38:23 -0500 | |
|---|---|---|
| committer | 2022-11-29 18:50:49 -0500 | |
| commit | 37bc5118ea8f5891741faba8963ce9ae5f88e946 (patch) | |
| tree | 0beccc4f6ee5ddc627ddf59edebc659ce0611074 /src/video_core | |
| parent | externals: Update dynarmic (diff) | |
| download | yuzu-37bc5118ea8f5891741faba8963ce9ae5f88e946.tar.gz yuzu-37bc5118ea8f5891741faba8963ce9ae5f88e946.tar.xz yuzu-37bc5118ea8f5891741faba8963ce9ae5f88e946.zip | |
CMake: Use precompiled headers
Diffstat (limited to 'src/video_core')
| -rw-r--r-- | src/video_core/CMakeLists.txt | 5 | ||||
| -rw-r--r-- | src/video_core/precompiled_headers.h | 12 |
2 files changed, 17 insertions, 0 deletions
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() | |||
| 300 | if (ARCHITECTURE_x86_64 OR ARCHITECTURE_arm64) | 301 | if (ARCHITECTURE_x86_64 OR ARCHITECTURE_arm64) |
| 301 | target_link_libraries(video_core PRIVATE dynarmic) | 302 | target_link_libraries(video_core PRIVATE dynarmic) |
| 302 | endif() | 303 | endif() |
| 304 | |||
| 305 | if (YUZU_USE_PRECOMPILED_HEADERS) | ||
| 306 | target_precompile_headers(video_core PRIVATE precompiled_headers.h) | ||
| 307 | endif() | ||
diff --git a/src/video_core/precompiled_headers.h b/src/video_core/precompiled_headers.h new file mode 100644 index 000000000..5f81bef98 --- /dev/null +++ b/src/video_core/precompiled_headers.h | |||
| @@ -0,0 +1,12 @@ | |||
| 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 <chrono> | ||
| 8 | #include <memory> | ||
| 9 | |||
| 10 | #include <fmt/format.h> | ||
| 11 | |||
| 12 | #include "common/assert.h" | ||