Codechange: no longer add "src" to the include-path (#13511)

This commit is contained in:
Patric Stout 2025-02-09 20:43:15 +01:00 committed by GitHub
parent 588597805d
commit 86841ba1f0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
14 changed files with 26 additions and 28 deletions

View File

@ -231,8 +231,6 @@ endif()
include(CTest)
include(SourceList)
# Needed by rev.cpp
include_directories(${CMAKE_SOURCE_DIR}/src)
# Needed by everything that uses Squirrel
include_directories(${CMAKE_SOURCE_DIR}/src/3rdparty/squirrel/include)

View File

@ -19,7 +19,7 @@
#include "game_info.hpp"
#include "table/strings.h"
#include "table/strgen_tables.h"
#include "../table/strgen_tables.h"
#include "../safeguards.h"

View File

@ -16,7 +16,7 @@
* that the behaviour is usually Unix/BSD-like with occasional variation.
*/
#include "stdafx.h"
#include "../../stdafx.h"
#include "os_abstraction.h"
#include "../../string_func.h"
#include "../../3rdparty/fmt/format.h"

View File

@ -9,7 +9,7 @@
#include "../stdafx.h"
#include "network_survey.h"
#include "settings_table.h"
#include "../settings_table.h"
#include "network.h"
#include "network_func.h"
#include "../debug.h"

View File

@ -22,7 +22,7 @@
#include "../../table/control_codes.h"
#include "safeguards.h"
#include "../../safeguards.h"
bool SetFallbackFont(FontCacheSettings *settings, const std::string &language_isocode, MissingGlyphSearcher *callback)
{

View File

@ -11,7 +11,7 @@
#define FONT_OSX_H
#include "../../fontcache/truetypefontcache.h"
#include "os/macosx/macos.h"
#include "macos.h"
#include <CoreFoundation/CoreFoundation.h>

View File

@ -15,7 +15,7 @@
#include <fontconfig/fontconfig.h>
#include "safeguards.h"
#include "../../safeguards.h"
#include <ft2build.h>
#include FT_FREETYPE_H

View File

@ -27,10 +27,10 @@
#include <windows.h>
#include <shlobj.h> /* SHGetFolderPath */
#include "os/windows/win32.h"
#include "win32.h"
#undef small // Say what, Windows?
#include "safeguards.h"
#include "../../safeguards.h"
struct EFCParam {
FontCacheSettings *settings;

View File

@ -7,17 +7,17 @@
/** @file water_regions.cpp Handles dividing the water in the map into square regions to assist pathfinding. */
#include "stdafx.h"
#include "map_func.h"
#include "../stdafx.h"
#include "../map_func.h"
#include "water_regions.h"
#include "tilearea_type.h"
#include "track_func.h"
#include "transport_type.h"
#include "landscape.h"
#include "tunnelbridge_map.h"
#include "../tilearea_type.h"
#include "../track_func.h"
#include "../transport_type.h"
#include "../landscape.h"
#include "../tunnelbridge_map.h"
#include "follow_track.hpp"
#include "ship.h"
#include "debug.h"
#include "../ship.h"
#include "../debug.h"
using TWaterRegionTraversabilityBits = uint16_t;
constexpr TWaterRegionPatchLabel FIRST_REGION_LABEL = 1;

View File

@ -10,8 +10,8 @@
#ifndef WATER_REGIONS_H
#define WATER_REGIONS_H
#include "tile_type.h"
#include "map_func.h"
#include "../tile_type.h"
#include "../map_func.h"
using TWaterRegionPatchLabel = uint8_t;
using TWaterRegionIndex = uint;

View File

@ -7,11 +7,11 @@
/** @file rev.cpp Autogenerated file with the revision and such of OpenTTD. */
#include "stdafx.h"
#include "core/bitmath_func.hpp"
#include "rev.h"
#include "${CMAKE_SOURCE_DIR}/src/stdafx.h"
#include "${CMAKE_SOURCE_DIR}/src/core/bitmath_func.hpp"
#include "${CMAKE_SOURCE_DIR}/src/rev.h"
#include "safeguards.h"
#include "${CMAKE_SOURCE_DIR}/src/safeguards.h"
/**
* Is this version of OpenTTD a release version?

View File

@ -69,7 +69,7 @@
#include <signal.h>
#include "../safeguards.h"
#include "window_func.h"
#include "../window_func.h"
extern Company *DoStartupNewCompany(bool is_ai, CompanyID company = INVALID_COMPANY);

View File

@ -10,7 +10,7 @@
#ifndef AIRPORT_DEFAULTS_H
#define AIRPORT_DEFAULTS_H
#include "timer/timer_game_calendar.h"
#include "../timer/timer_game_calendar.h"
/**
* Definition of an airport tiles layout.

View File

@ -35,7 +35,7 @@
#include "../../textbuf_type.h"
#include "../../toolbar_gui.h"
#include "table/sprites.h"
#include "../../table/sprites.h"
/* Table data for key mapping. */
#include "cocoa_keys.h"