CMake: Consolidate common PCH headers
This commit is contained in:
		| @@ -3,10 +3,4 @@ | |||||||
|  |  | ||||||
| #pragma once | #pragma once | ||||||
|  |  | ||||||
| #include <algorithm> | #include "common/common_precompiled_headers.h" | ||||||
| #include <chrono> |  | ||||||
| #include <memory> |  | ||||||
|  |  | ||||||
| #include <fmt/format.h> |  | ||||||
|  |  | ||||||
| #include "common/assert.h" |  | ||||||
|   | |||||||
| @@ -37,6 +37,7 @@ add_library(common STATIC | |||||||
|     cache_management.cpp |     cache_management.cpp | ||||||
|     cache_management.h |     cache_management.h | ||||||
|     common_funcs.h |     common_funcs.h | ||||||
|  |     common_precompiled_headers.h | ||||||
|     common_types.h |     common_types.h | ||||||
|     concepts.h |     concepts.h | ||||||
|     div_ceil.h |     div_ceil.h | ||||||
| @@ -187,5 +188,4 @@ endif() | |||||||
|  |  | ||||||
| if (YUZU_USE_PRECOMPILED_HEADERS) | if (YUZU_USE_PRECOMPILED_HEADERS) | ||||||
|     target_precompile_headers(common PRIVATE precompiled_headers.h) |     target_precompile_headers(common PRIVATE precompiled_headers.h) | ||||||
|     set(CMAKE_PCH_INSTANTIATE_TEMPLATES ON) |  | ||||||
| endif() | endif() | ||||||
|   | |||||||
							
								
								
									
										14
									
								
								src/common/common_precompiled_headers.h
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								src/common/common_precompiled_headers.h
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,14 @@ | |||||||
|  | // SPDX-FileCopyrightText: 2022 yuzu Emulator Project | ||||||
|  | // SPDX-License-Identifier: GPL-2.0-or-later | ||||||
|  |  | ||||||
|  | #pragma once | ||||||
|  |  | ||||||
|  | #include <algorithm> | ||||||
|  | #include <array> | ||||||
|  | #include <chrono> | ||||||
|  | #include <memory> | ||||||
|  |  | ||||||
|  | #include <fmt/format.h> | ||||||
|  |  | ||||||
|  | #include "common/assert.h" | ||||||
|  | #include "common/common_types.h" | ||||||
| @@ -3,10 +3,4 @@ | |||||||
|  |  | ||||||
| #pragma once | #pragma once | ||||||
|  |  | ||||||
| #include <algorithm> | #include "common/common_precompiled_headers.h" | ||||||
| #include <chrono> |  | ||||||
| #include <memory> |  | ||||||
|  |  | ||||||
| #include <fmt/format.h> |  | ||||||
|  |  | ||||||
| #include "common/assert.h" |  | ||||||
|   | |||||||
| @@ -3,12 +3,9 @@ | |||||||
|  |  | ||||||
| #pragma once | #pragma once | ||||||
|  |  | ||||||
| #include <algorithm> |  | ||||||
| #include <chrono> |  | ||||||
| #include <memory> |  | ||||||
|  |  | ||||||
| #include <boost/container/flat_map.hpp> // used by service.h which is heavily included | #include <boost/container/flat_map.hpp> // used by service.h which is heavily included | ||||||
| #include <boost/intrusive/rbtree.hpp>   // used by k_auto_object.h which is heavily included | #include <boost/intrusive/rbtree.hpp>   // used by k_auto_object.h which is heavily included | ||||||
| #include <fmt/format.h> |  | ||||||
|  |  | ||||||
| #include "common/assert.h" | #include "common/common_precompiled_headers.h" | ||||||
|  |  | ||||||
|  | #include "core/hle/kernel/k_process.h" | ||||||
|   | |||||||
| @@ -3,10 +3,4 @@ | |||||||
|  |  | ||||||
| #pragma once | #pragma once | ||||||
|  |  | ||||||
| #include <algorithm> | #include "common/common_precompiled_headers.h" | ||||||
| #include <chrono> |  | ||||||
| #include <memory> |  | ||||||
|  |  | ||||||
| #include <fmt/format.h> |  | ||||||
|  |  | ||||||
| #include "common/assert.h" |  | ||||||
|   | |||||||
| @@ -3,10 +3,4 @@ | |||||||
|  |  | ||||||
| #pragma once | #pragma once | ||||||
|  |  | ||||||
| #include <algorithm> | #include "common/common_precompiled_headers.h" | ||||||
| #include <chrono> |  | ||||||
| #include <memory> |  | ||||||
|  |  | ||||||
| #include <fmt/format.h> |  | ||||||
|  |  | ||||||
| #include "common/assert.h" |  | ||||||
|   | |||||||
| @@ -3,10 +3,4 @@ | |||||||
|  |  | ||||||
| #pragma once | #pragma once | ||||||
|  |  | ||||||
| #include <algorithm> | #include "common/common_precompiled_headers.h" | ||||||
| #include <chrono> |  | ||||||
| #include <memory> |  | ||||||
|  |  | ||||||
| #include <fmt/format.h> |  | ||||||
|  |  | ||||||
| #include "common/assert.h" |  | ||||||
|   | |||||||
| @@ -3,11 +3,5 @@ | |||||||
|  |  | ||||||
| #pragma once | #pragma once | ||||||
|  |  | ||||||
| #include <algorithm> | #include "common/common_precompiled_headers.h" | ||||||
| #include <chrono> |  | ||||||
| #include <memory> |  | ||||||
|  |  | ||||||
| #include <fmt/format.h> |  | ||||||
|  |  | ||||||
| #include "common/assert.h" |  | ||||||
| #include "frontend/maxwell/translate/impl/impl.h" | #include "frontend/maxwell/translate/impl/impl.h" | ||||||
|   | |||||||
| @@ -3,10 +3,4 @@ | |||||||
|  |  | ||||||
| #pragma once | #pragma once | ||||||
|  |  | ||||||
| #include <algorithm> | #include "common/common_precompiled_headers.h" | ||||||
| #include <chrono> |  | ||||||
| #include <memory> |  | ||||||
|  |  | ||||||
| #include <fmt/format.h> |  | ||||||
|  |  | ||||||
| #include "common/assert.h" |  | ||||||
|   | |||||||
| @@ -3,10 +3,4 @@ | |||||||
|  |  | ||||||
| #pragma once | #pragma once | ||||||
|  |  | ||||||
| #include <algorithm> | #include "common/common_precompiled_headers.h" | ||||||
| #include <chrono> |  | ||||||
| #include <memory> |  | ||||||
|  |  | ||||||
| #include <fmt/format.h> |  | ||||||
|  |  | ||||||
| #include "common/assert.h" |  | ||||||
|   | |||||||
| @@ -3,10 +3,4 @@ | |||||||
|  |  | ||||||
| #pragma once | #pragma once | ||||||
|  |  | ||||||
| #include <algorithm> | #include "common/common_precompiled_headers.h" | ||||||
| #include <chrono> |  | ||||||
| #include <memory> |  | ||||||
|  |  | ||||||
| #include <fmt/format.h> |  | ||||||
|  |  | ||||||
| #include "common/assert.h" |  | ||||||
|   | |||||||
| @@ -3,10 +3,4 @@ | |||||||
|  |  | ||||||
| #pragma once | #pragma once | ||||||
|  |  | ||||||
| #include <algorithm> | #include "common/common_precompiled_headers.h" | ||||||
| #include <chrono> |  | ||||||
| #include <memory> |  | ||||||
|  |  | ||||||
| #include <fmt/format.h> |  | ||||||
|  |  | ||||||
| #include "common/assert.h" |  | ||||||
|   | |||||||
| @@ -3,10 +3,4 @@ | |||||||
|  |  | ||||||
| #pragma once | #pragma once | ||||||
|  |  | ||||||
| #include <algorithm> | #include "common/common_precompiled_headers.h" | ||||||
| #include <chrono> |  | ||||||
| #include <memory> |  | ||||||
|  |  | ||||||
| #include <fmt/format.h> |  | ||||||
|  |  | ||||||
| #include "common/assert.h" |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user