mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-06 22:28:56 +00:00
Codechange: no longer add "src" to the include-path (#13511)
This commit is contained in:
parent
588597805d
commit
86841ba1f0
@ -231,8 +231,6 @@ endif()
|
|||||||
include(CTest)
|
include(CTest)
|
||||||
include(SourceList)
|
include(SourceList)
|
||||||
|
|
||||||
# Needed by rev.cpp
|
|
||||||
include_directories(${CMAKE_SOURCE_DIR}/src)
|
|
||||||
# Needed by everything that uses Squirrel
|
# Needed by everything that uses Squirrel
|
||||||
include_directories(${CMAKE_SOURCE_DIR}/src/3rdparty/squirrel/include)
|
include_directories(${CMAKE_SOURCE_DIR}/src/3rdparty/squirrel/include)
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
#include "game_info.hpp"
|
#include "game_info.hpp"
|
||||||
|
|
||||||
#include "table/strings.h"
|
#include "table/strings.h"
|
||||||
#include "table/strgen_tables.h"
|
#include "../table/strgen_tables.h"
|
||||||
|
|
||||||
#include "../safeguards.h"
|
#include "../safeguards.h"
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
* that the behaviour is usually Unix/BSD-like with occasional variation.
|
* that the behaviour is usually Unix/BSD-like with occasional variation.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "stdafx.h"
|
#include "../../stdafx.h"
|
||||||
#include "os_abstraction.h"
|
#include "os_abstraction.h"
|
||||||
#include "../../string_func.h"
|
#include "../../string_func.h"
|
||||||
#include "../../3rdparty/fmt/format.h"
|
#include "../../3rdparty/fmt/format.h"
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
#include "../stdafx.h"
|
#include "../stdafx.h"
|
||||||
#include "network_survey.h"
|
#include "network_survey.h"
|
||||||
#include "settings_table.h"
|
#include "../settings_table.h"
|
||||||
#include "network.h"
|
#include "network.h"
|
||||||
#include "network_func.h"
|
#include "network_func.h"
|
||||||
#include "../debug.h"
|
#include "../debug.h"
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
|
|
||||||
#include "../../table/control_codes.h"
|
#include "../../table/control_codes.h"
|
||||||
|
|
||||||
#include "safeguards.h"
|
#include "../../safeguards.h"
|
||||||
|
|
||||||
bool SetFallbackFont(FontCacheSettings *settings, const std::string &language_isocode, MissingGlyphSearcher *callback)
|
bool SetFallbackFont(FontCacheSettings *settings, const std::string &language_isocode, MissingGlyphSearcher *callback)
|
||||||
{
|
{
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
#define FONT_OSX_H
|
#define FONT_OSX_H
|
||||||
|
|
||||||
#include "../../fontcache/truetypefontcache.h"
|
#include "../../fontcache/truetypefontcache.h"
|
||||||
#include "os/macosx/macos.h"
|
#include "macos.h"
|
||||||
|
|
||||||
#include <CoreFoundation/CoreFoundation.h>
|
#include <CoreFoundation/CoreFoundation.h>
|
||||||
|
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
|
|
||||||
#include <fontconfig/fontconfig.h>
|
#include <fontconfig/fontconfig.h>
|
||||||
|
|
||||||
#include "safeguards.h"
|
#include "../../safeguards.h"
|
||||||
|
|
||||||
#include <ft2build.h>
|
#include <ft2build.h>
|
||||||
#include FT_FREETYPE_H
|
#include FT_FREETYPE_H
|
||||||
|
@ -27,10 +27,10 @@
|
|||||||
|
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#include <shlobj.h> /* SHGetFolderPath */
|
#include <shlobj.h> /* SHGetFolderPath */
|
||||||
#include "os/windows/win32.h"
|
#include "win32.h"
|
||||||
#undef small // Say what, Windows?
|
#undef small // Say what, Windows?
|
||||||
|
|
||||||
#include "safeguards.h"
|
#include "../../safeguards.h"
|
||||||
|
|
||||||
struct EFCParam {
|
struct EFCParam {
|
||||||
FontCacheSettings *settings;
|
FontCacheSettings *settings;
|
||||||
|
@ -7,17 +7,17 @@
|
|||||||
|
|
||||||
/** @file water_regions.cpp Handles dividing the water in the map into square regions to assist pathfinding. */
|
/** @file water_regions.cpp Handles dividing the water in the map into square regions to assist pathfinding. */
|
||||||
|
|
||||||
#include "stdafx.h"
|
#include "../stdafx.h"
|
||||||
#include "map_func.h"
|
#include "../map_func.h"
|
||||||
#include "water_regions.h"
|
#include "water_regions.h"
|
||||||
#include "tilearea_type.h"
|
#include "../tilearea_type.h"
|
||||||
#include "track_func.h"
|
#include "../track_func.h"
|
||||||
#include "transport_type.h"
|
#include "../transport_type.h"
|
||||||
#include "landscape.h"
|
#include "../landscape.h"
|
||||||
#include "tunnelbridge_map.h"
|
#include "../tunnelbridge_map.h"
|
||||||
#include "follow_track.hpp"
|
#include "follow_track.hpp"
|
||||||
#include "ship.h"
|
#include "../ship.h"
|
||||||
#include "debug.h"
|
#include "../debug.h"
|
||||||
|
|
||||||
using TWaterRegionTraversabilityBits = uint16_t;
|
using TWaterRegionTraversabilityBits = uint16_t;
|
||||||
constexpr TWaterRegionPatchLabel FIRST_REGION_LABEL = 1;
|
constexpr TWaterRegionPatchLabel FIRST_REGION_LABEL = 1;
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
#ifndef WATER_REGIONS_H
|
#ifndef WATER_REGIONS_H
|
||||||
#define WATER_REGIONS_H
|
#define WATER_REGIONS_H
|
||||||
|
|
||||||
#include "tile_type.h"
|
#include "../tile_type.h"
|
||||||
#include "map_func.h"
|
#include "../map_func.h"
|
||||||
|
|
||||||
using TWaterRegionPatchLabel = uint8_t;
|
using TWaterRegionPatchLabel = uint8_t;
|
||||||
using TWaterRegionIndex = uint;
|
using TWaterRegionIndex = uint;
|
||||||
|
@ -7,11 +7,11 @@
|
|||||||
|
|
||||||
/** @file rev.cpp Autogenerated file with the revision and such of OpenTTD. */
|
/** @file rev.cpp Autogenerated file with the revision and such of OpenTTD. */
|
||||||
|
|
||||||
#include "stdafx.h"
|
#include "${CMAKE_SOURCE_DIR}/src/stdafx.h"
|
||||||
#include "core/bitmath_func.hpp"
|
#include "${CMAKE_SOURCE_DIR}/src/core/bitmath_func.hpp"
|
||||||
#include "rev.h"
|
#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?
|
* Is this version of OpenTTD a release version?
|
||||||
|
@ -69,7 +69,7 @@
|
|||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
|
|
||||||
#include "../safeguards.h"
|
#include "../safeguards.h"
|
||||||
#include "window_func.h"
|
#include "../window_func.h"
|
||||||
|
|
||||||
extern Company *DoStartupNewCompany(bool is_ai, CompanyID company = INVALID_COMPANY);
|
extern Company *DoStartupNewCompany(bool is_ai, CompanyID company = INVALID_COMPANY);
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
#ifndef AIRPORT_DEFAULTS_H
|
#ifndef AIRPORT_DEFAULTS_H
|
||||||
#define 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.
|
* Definition of an airport tiles layout.
|
||||||
|
@ -35,7 +35,7 @@
|
|||||||
#include "../../textbuf_type.h"
|
#include "../../textbuf_type.h"
|
||||||
#include "../../toolbar_gui.h"
|
#include "../../toolbar_gui.h"
|
||||||
|
|
||||||
#include "table/sprites.h"
|
#include "../../table/sprites.h"
|
||||||
|
|
||||||
/* Table data for key mapping. */
|
/* Table data for key mapping. */
|
||||||
#include "cocoa_keys.h"
|
#include "cocoa_keys.h"
|
||||||
|
Loading…
Reference in New Issue
Block a user