Slightly reduce build time (#2437)

This commit is contained in:
NZJenkins 2023-10-16 19:51:56 +13:00 committed by GitHub
parent e1ea10c4cb
commit 4808be65c4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 12 additions and 4 deletions

View file

@ -84,6 +84,4 @@ extern volatile bool g_bPrintfOn;
#define CxbxSetThreadName(Name)
#endif
#include <filesystem>
#endif

View file

@ -25,6 +25,7 @@
#define LOG_PREFIX CXBXR_MODULE::FILE
#define LOG_PREFIX_INIT CXBXR_MODULE::INIT
#include <filesystem>
#include "common/cxbxr.hpp"
#include "Settings.hpp"
#include "EmuShared.h"

View file

@ -31,6 +31,8 @@ extern std::string g_DataFilePath;
extern std::string g_DiskBasePath;
extern std::string g_MuBasePath;
#include <filesystem>
//TODO: Possible move CxbxResolveHostToFullPath inline function someplace else if become useful elsewhere.
// Let filesystem library clean it up for us, including resolve host's symbolic link path.
// Since internal kernel do translate to full path than preserved host symoblic link path.

View file

@ -26,7 +26,6 @@
// ******************************************************************
#ifndef SETTINGS_HPP
#define SETTINGS_HPP
#include "Cxbx.h"
#include "SimpleIni.h"
#include "common\input\InputManager.h"

View file

@ -24,7 +24,6 @@
// ******************************************************************
#pragma once
#include <filesystem>
#include <string>
#include <optional>

View file

@ -37,6 +37,7 @@
#include "DInputKeyboardMouse.h"
#include "InputManager.h"
#include "core\kernel\support\Emu.h"
#include <algorithm>
// Unfortunately, sdl doesn't seem to be able to capture keyboard/mouse input from windows it didn't create (we currently use
// win32 for that). So unless we create sdl windows, we will have to keep dinput around to handle keyboard/mouse input.

View file

@ -25,6 +25,7 @@
// *
// ******************************************************************
#include <algorithm>
#include "Button.h"
#include "InputManager.h"
#include "layout_xbox_device.h"

View file

@ -35,6 +35,7 @@
#define LOG_PREFIX CXBXR_MODULE::SDL
#include <assert.h>
#include <algorithm>
#include <thread>
#include "core\kernel\support\Emu.h"
#include "SdlJoystick.h"

View file

@ -26,12 +26,14 @@
#ifndef CXBXUTIL_H
#define CXBXUTIL_H
#include <stdexcept>
#include "xbox_types.h"
#include "Cxbx.h"
#include <stdint.h>
#include <assert.h>
#include <string>
#include <type_traits>
#include <vector>
#include "std_extend.hpp" // for ARRAY_SIZE
/* This is a linux struct for vectored I/O. See readv() and writev() */

View file

@ -51,6 +51,7 @@
#include <assert.h> // assert()
#include <process.h>
#include <locale.h>
#include <filesystem>
#include <fstream>
#include <sstream>

View file

@ -34,6 +34,7 @@
#include <cmath>
#include <iomanip> // For std::setfill and std::setw
#include <filesystem>
#include "core\kernel\init\CxbxKrnl.h"
#include "core\kernel\support\Emu.h"

View file

@ -26,6 +26,7 @@
#include <core\kernel\exports\xboxkrnl.h>
#include <filesystem>
#include "core\kernel\init\CxbxKrnl.h"
#include <vector>
#include <cstdio>

View file

@ -59,6 +59,7 @@
#include <io.h>
#include <shlobj.h>
#include <filesystem>
#include <sstream> // for std::stringstream
#include <fstream>
#include <iostream>