Build: Explicitly include ppsspp_config.h.

This adds it to all files that use it.  Not all our builds include the
file.
This commit is contained in:
Unknown W. Brackets 2021-03-02 20:42:55 -08:00
parent 6e4dc3f46c
commit 13ec384dbe
32 changed files with 47 additions and 17 deletions

View File

@ -15,6 +15,7 @@
// Official git repository and contact information can be found at
// https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/.
#include "ppsspp_config.h"
#include "Common/Data/Convert/SmallDataConvert.h"
#include "ColorConv.h"
// NEON is in a separate file so that it can be compiled with a runtime check.

View File

@ -1,3 +1,4 @@
#include "ppsspp_config.h"
#include "Common/GPU/D3D11/D3D11Loader.h"
#if PPSSPP_PLATFORM(UWP)

View File

@ -15,11 +15,12 @@
// Official git repository and contact information can be found at
// https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/.
#include "Common/GPU/Vulkan/VulkanLoader.h"
#include "ppsspp_config.h"
#include <vector>
#include <string>
#include <cstring>
#include "Common/GPU/Vulkan/VulkanLoader.h"
#include "Common/Log.h"
#include "Common/System/System.h"
@ -239,7 +240,7 @@ static const char *device_name_blacklist[] = {
static const char *so_names[] = {
#ifdef IOS
"@executable_path/Frameworks/libMoltenVK.dylib",
#elif defined(PPSSPP_PLATFORM_MAC)
#elif PPSSPP_PLATFORM(MAC)
"@executable_path/../Frameworks/libMoltenVK.dylib",
#else
"libvulkan.so",

View File

@ -1,3 +1,4 @@
#include "ppsspp_config.h"
#include "fast_math.h"
#include "fast_matrix.h"

View File

@ -15,7 +15,8 @@
// Official SVN repository and contact information can be found at
// http://code.google.com/p/dolphin-emu/
#ifdef __mips__
#include "ppsspp_config.h"
#if PPSSPP_ARCH(MIPS) || PPSSPP_ARCH(MIPS64)
#include "Common/Common.h"
#include "Common/CPUDetect.h"
@ -202,4 +203,4 @@ std::string CPUInfo::Summarize()
return sum;
}
#endif // __mips__
#endif // PPSSPP_ARCH(MIPS) || PPSSPP_ARCH(MIPS64)

View File

@ -1,3 +1,4 @@
#include "ppsspp_config.h"
#include "Common/Log.h"
#include "Common/StringUtils.h"
#include "Common/System/Display.h"

View File

@ -1,3 +1,4 @@
#include "ppsspp_config.h"
#include "Common/System/Display.h"
#include "Common/GPU/thin3d.h"
#include "Common/Data/Hash/Hash.h"

View File

@ -1,3 +1,4 @@
#include "ppsspp_config.h"
#include "Common/System/Display.h"
#include "Common/GPU/thin3d.h"
#include "Common/Data/Hash/Hash.h"

View File

@ -21,6 +21,7 @@
#pragma optimize("gty", on)
#endif
#include "ppsspp_config.h"
#ifdef _WIN32
#include "Common/CommonWindows.h"
#include <WindowsX.h>

View File

@ -15,6 +15,7 @@
// Official git repository and contact information can be found at
// https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/.
#include "ppsspp_config.h"
#include <algorithm>
#include "Common/Data/Text/I18n.h"

View File

@ -15,6 +15,7 @@
// Official git repository and contact information can be found at
// https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/.
#include "ppsspp_config.h"
#include <algorithm>
#include <mutex>

View File

@ -15,6 +15,7 @@
// Official git repository and contact information can be found at
// https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/.
#include "ppsspp_config.h"
#include "Camera.h"
#include "Core/Config.h"

View File

@ -32,6 +32,7 @@
#define CONTROL_FACTOR 0.2f // in freq_shift per fifo size offset
#define CONTROL_AVG 32.0f
#include "ppsspp_config.h"
#include <cstring>
#include <atomic>

View File

@ -15,7 +15,8 @@
// Official git repository and contact information can be found at
// https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/.
#include "Instance.h"
#include "ppsspp_config.h"
#include "Core/Instance.h"
#if !PPSSPP_PLATFORM(WINDOWS) && !PPSSPP_PLATFORM(ANDROID) && !defined(__LIBRETRO__)
#include <unistd.h>

View File

@ -15,13 +15,7 @@
// Official git repository and contact information can be found at
// https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/.
// Enable define below to enable oprofile integration. For this to work,
// it requires at least oprofile version 0.9.4, and changing the build
// system to link the Dolphin executable against libopagent. Since the
// dependency is a little inconvenient and this is possibly a slight
// performance hit, it's not enabled by default, but it's useful for
// locating performance issues.
#include "ppsspp_config.h"
#include <cstddef>
#include <algorithm>
@ -45,6 +39,12 @@
// #include "JitBase.h"
// Enable define below to enable oprofile integration. For this to work,
// it requires at least oprofile version 0.9.4, and changing the build
// system to link the Dolphin executable against libopagent. Since the
// dependency is a little inconvenient and this is possibly a slight
// performance hit, it's not enabled by default, but it's useful for
// locating performance issues.
#if defined USE_OPROFILE && USE_OPROFILE
#include <opagent.h>

View File

@ -15,6 +15,7 @@
// Official git repository and contact information can be found at
// https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/.
#include "ppsspp_config.h"
#include <cstdlib>
#include "ext/disarm.h"

View File

@ -15,6 +15,7 @@
// Official git repository and contact information can be found at
// https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/.
#include "ppsspp_config.h"
#include "Common/CPUDetect.h"
#include "Core/Config.h"
#include "Core/MIPS/JitCommon/JitState.h"

View File

@ -15,9 +15,9 @@
// Official git repository and contact information can be found at
// https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/.
#include <png.h>
#include "ppsspp_config.h"
#include <algorithm>
#include <png.h>
#include "ext/xxhash.h"

View File

@ -15,6 +15,7 @@
// Official git repository and contact information can be found at
// https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/.
#include "ppsspp_config.h"
#include "Common/Common.h"
#include "Common/CPUDetect.h"
#include "Core/Util/AudioFormat.h"

View File

@ -15,6 +15,7 @@
// Official git repository and contact information can be found at
// https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/.
#include "ppsspp_config.h"
#include "ext/xxhash.h"
#include "Common/CPUDetect.h"
#include "Common/ColorConv.h"

View File

@ -1,3 +1,4 @@
#include "ppsspp_config.h"
#include <algorithm>
#include <type_traits>
#include <mutex>

View File

@ -1,5 +1,6 @@
#pragma once
#include "ppsspp_config.h"
#include "Common/Common.h"
#include "Common/MemoryUtil.h"
#include "GPU/GPUInterface.h"

View File

@ -15,6 +15,7 @@
// Official git repository and contact information can be found at
// https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/.
#include "ppsspp_config.h"
#include "GPU/ge_constants.h"
#include "GPU/GPUState.h"

View File

@ -1,4 +1,5 @@
// Qt Desktop UI: works on Linux, Windows and Mac OSX
#include "ppsspp_config.h"
#include "mainwindow.h"
#include <QApplication>

View File

@ -1,4 +1,5 @@
#if defined(PPSSPP_PLATFORM_MAC)
#include "ppsspp_config.h"
#if PPSSPP_PLATFORM(MAC)
#import <Cocoa/Cocoa.h>
#else
#import <UIKit/UIKit.h>
@ -9,7 +10,7 @@
void *makeWindowMetalCompatible(void *window) {
// https://github.com/KhronosGroup/MoltenVK/issues/78#issuecomment-371118536
#if defined(PPSSPP_PLATFORM_MAC)
#if PPSSPP_PLATFORM(MAC)
NSView *view = ((NSWindow *)window).contentView;
assert([view isKindOfClass:[NSView class]]);

View File

@ -1,3 +1,4 @@
#include "ppsspp_config.h"
#include "Core/Config.h"
#include "Core/ConfigValues.h"
#include "Common/System/System.h"
@ -93,7 +94,7 @@ bool SDLVulkanGraphicsContext::Init(SDL_Window *&window, int x, int y, int mode,
break;
#endif
#if defined(VK_USE_PLATFORM_METAL_EXT)
#if defined(PPSSPP_PLATFORM_MAC)
#if PPSSPP_PLATFORM(MAC)
case SDL_SYSWM_COCOA:
vulkan_->InitSurface(WINDOWSYSTEM_METAL_EXT, makeWindowMetalCompatible(sys_info.info.cocoa.window), nullptr);
break;

View File

@ -15,6 +15,7 @@
// Official git repository and contact information can be found at
// https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/.
#include "ppsspp_config.h"
#include <algorithm>
#include <deque>
#include <mutex>

View File

@ -15,6 +15,7 @@
// Official git repository and contact information can be found at
// https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/.
#include "ppsspp_config.h"
#include "ext/xxhash.h"
#include "Common/UI/UI.h"

View File

@ -1,3 +1,4 @@
#include "ppsspp_config.h"
#include <map>
#include <string>
#include <sstream>

View File

@ -18,6 +18,7 @@
#pragma once
#include "ppsspp_config.h"
#include "Debugger/Debugger_Disasm.h"
#include "Debugger/Debugger_MemoryDlg.h"
#include "Common/CommonWindows.h"

View File

@ -15,6 +15,7 @@
// Official git repository and contact information can be found at
// https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/.
#include "ppsspp_config.h"
#include <cstdio>
#include "headless/WindowsHeadlessHost.h"

View File

@ -1,3 +1,4 @@
#include "ppsspp_config.h"
#include <cstring>
#include <cassert>
#include <thread>