diff options
| author | 2022-11-22 18:38:23 -0500 | |
|---|---|---|
| committer | 2022-11-29 18:50:49 -0500 | |
| commit | 37bc5118ea8f5891741faba8963ce9ae5f88e946 (patch) | |
| tree | 0beccc4f6ee5ddc627ddf59edebc659ce0611074 /src/audio_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/audio_core')
| -rw-r--r-- | src/audio_core/CMakeLists.txt | 5 | ||||
| -rw-r--r-- | src/audio_core/precompiled_headers.h | 12 |
2 files changed, 17 insertions, 0 deletions
diff --git a/src/audio_core/CMakeLists.txt b/src/audio_core/CMakeLists.txt index 8e3a8f5a8..0a8c4280c 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 |
| @@ -229,3 +230,7 @@ if(ENABLE_SDL2) | |||
| 229 | target_link_libraries(audio_core PRIVATE SDL2) | 230 | target_link_libraries(audio_core PRIVATE SDL2) |
| 230 | target_compile_definitions(audio_core PRIVATE HAVE_SDL2) | 231 | target_compile_definitions(audio_core PRIVATE HAVE_SDL2) |
| 231 | endif() | 232 | endif() |
| 233 | |||
| 234 | if (YUZU_USE_PRECOMPILED_HEADERS) | ||
| 235 | target_precompile_headers(audio_core PRIVATE precompiled_headers.h) | ||
| 236 | endif() | ||
diff --git a/src/audio_core/precompiled_headers.h b/src/audio_core/precompiled_headers.h new file mode 100644 index 000000000..5f81bef98 --- /dev/null +++ b/src/audio_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" | ||