Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/parameters/macports.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ ports:
- name: luajit
- name: flac
- name: dylibbundler
- name: tree
- name: tree
- name: ccache
39 changes: 26 additions & 13 deletions .github/workflows/meson.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,14 @@ jobs:
- name: Install Dependencies
run: |
sudo apt-get update -yq
sudo apt-get install --no-install-recommends wget liballegro4-dev libloadpng4-dev libflac++-dev luajit-5.1-dev liblua5.2-dev libminizip-dev liblz4-dev libpng++-dev libx11-dev libboost-dev libtbb-dev libsdl2-dev libsdl2-image-dev libopengl-dev libfuse2 ninja-build
sudo apt-get install --no-install-recommends wget liballegro4-dev libloadpng4-dev libflac++-dev luajit-5.1-dev liblua5.2-dev libminizip-dev liblz4-dev libpng++-dev libx11-dev libboost-dev libtbb-dev libsdl2-dev libsdl2-image-dev libopengl-dev libfuse2 ninja-build ccache lld
sudo pip install meson

- name: ccache
uses: hendrikmuhs/[email protected]
with:
key: ${{ github.job }}-${{ matrix.os }}

- name: Set Version
if: ${{inputs.new_release_version}}
uses: ./.github/actions/set_version
Expand All @@ -74,22 +79,22 @@ jobs:

- name: Setup Meson
env:
CC: "gcc"
CXX: "g++"
CC: "ccache gcc"
CXX: "ccache g++"
run: |
meson setup --buildtype=${{inputs.build_type}} -Ddebug_type=${{inputs.debug_level}} -Db_lto=true build

- name: Configure for AppImage
if: ${{inputs.upload_artefacts}}
env:
CC: "gcc"
CXX: "g++"
CC: "ccache gcc"
CXX: "ccache g++"
run: meson configure -Dinstall_data=false -Dinstall_runner=false -Dfmod_dir=/usr/lib/ --prefix=/usr/ build

- name: Build
env:
CC: "gcc"
CXX: "g++"
CC: "ccache gcc"
CXX: "ccache g++"
run: |
meson compile -C build

Expand Down Expand Up @@ -147,19 +152,27 @@ jobs:
new_release_version: ${{inputs.new_release_version}}
github_token: ${{ secrets.GITHUB_TOKEN }}

# Note: macos-11 is too old to have precompiled ccache binaries, it gets built from source.
# It's still a net win, as setting up ccache takes 4m51s, the CortexCommand rebuild takes less than a minute in most cases vs 8 minutes of rebuild when using PCH
# This should become a non-issue when GitHub Actions updates to newer macos version.
- name: ccache
uses: hendrikmuhs/[email protected]
with:
key: ${{ github.job }}-${{ matrix.os }}

- name: Setup Meson
env:
CC: "gcc-${{env.GCC_VERSION}}"
CXX: "g++-${{env.GCC_VERSION}}"
CC: "ccache gcc-${{env.GCC_VERSION}}"
CXX: "ccache g++-${{env.GCC_VERSION}}"
LDFLAGS: "-static-libgcc -static-libstdc++"
run: |
meson setup --buildtype=${{inputs.build_type}} -Ddebug_type=${{inputs.debug_level}} -Db_lto=false build

- name: Configure for App Bundle
if: ${{inputs.upload_artefacts}}
env:
CC: "gcc-${{env.GCC_VERSION}}"
CXX: "g++-${{env.GCC_VERSION}}"
CC: "ccache gcc-${{env.GCC_VERSION}}"
CXX: "ccache g++-${{env.GCC_VERSION}}"
LDFLAGS: "-static-libgcc -static-libstdc++"
run: |
meson configure \
Expand All @@ -170,8 +183,8 @@ jobs:

- name: Build
env:
CC: "gcc-${{env.GCC_VERSION}}"
CXX: "g++-${{env.GCC_VERSION}}"
CC: "ccache gcc-${{env.GCC_VERSION}}"
CXX: "ccache g++-${{env.GCC_VERSION}}"
LDFLAGS: "-static-libgcc -static-libstdc++"
run: |
meson compile -C build
Expand Down
10 changes: 10 additions & 0 deletions RTEA.common.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />

<ItemDefinitionGroup>
<ClCompile>
<PreprocessorDefinitions>WIN32_LEAN_AND_MEAN;ALLEGRO_STATICLINK;ALLEGRO_NO_STD_HEADERS;ALLEGRO_NO_MAGIC_MAIN;_CRT_SECURE_NO_DEPRECATE;ZLIB_WINAPI;_WINDOWS;WIN32;NOMINMAX;NOGDI;NOKERNEL;NONLS;NOMEMMGR;NOGDICAPMASKS;NOVIRTUALKEYCODES;NOWINMESSAGES;NOWINSTYLES;NOMETAFILE;NOSCROLL;NOTEXTMETRIC;NOCOMM;NOKANJI;NOHELP;NOPROFILER;NODEFERWINDOWPOS;NOMCX;NOMENUS;NOICONS;NOKEYSTATES;NOSYSCOMMANDS;NORASTEROPS;NOSHOWWINDOW;OEMRESOURCE;NOATOM;NODRAWTEXT;NOCOLOR;NOCTLMGR;NOMSG;NOOPENFILE;NOSERVICE;NOSOUND;NOWH;NOWINOFFSETS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
</ItemDefinitionGroup>
</Project>
30 changes: 20 additions & 10 deletions RTEA.vcxproj

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions Source/Activities/AreaEditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include "HeldDevice.h"
#include "Scene.h"
#include "DataModule.h"
#include "System.h"

#include "GUI.h"
#include "AllegroBitmap.h"
Expand Down
1 change: 1 addition & 0 deletions Source/Activities/AssemblyEditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include "HeldDevice.h"
#include "Scene.h"
#include "DataModule.h"
#include "System.h"

#include "GUI.h"
#include "GUICollectionBox.h"
Expand Down
2 changes: 2 additions & 0 deletions Source/Activities/GAScripted.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@

#include "tracy/Tracy.hpp"

#include <fstream>

using namespace RTE;

ConcreteClassInfo(GAScripted, GameActivity, 0);
Expand Down
2 changes: 2 additions & 0 deletions Source/Activities/GameActivity.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
#include "Scene.h"
#include "Actor.h"

#include <array>
#include <memory>
namespace RTE {

#define OBJARROWFRAMECOUNT 4
Expand Down
1 change: 1 addition & 0 deletions Source/Activities/GibEditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#include "GUIButton.h"
#include "GUILabel.h"
#include "GUIComboBox.h"
#include "System.h"

#include "GibEditorGUI.h"

Expand Down
1 change: 1 addition & 0 deletions Source/Activities/SceneEditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#include "GUIButton.h"
#include "GUILabel.h"
#include "GUIComboBox.h"
#include "System.h"

#include "SceneEditorGUI.h"
#include "GameActivity.h"
Expand Down
2 changes: 2 additions & 0 deletions Source/Entities/AHuman.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
#include "Leg.h"
#include "LimbPath.h"

#include <array>

struct BITMAP;

namespace RTE {
Expand Down
2 changes: 2 additions & 0 deletions Source/Entities/Arm.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

#include "Attachable.h"

#include <queue>

namespace RTE {

class HeldDevice;
Expand Down
3 changes: 3 additions & 0 deletions Source/Entities/HeldDevice.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
#include "Attachable.h"
#include "Actor.h"

#include <array>
#include <unordered_map>

namespace RTE {

enum HeldDeviceType {
Expand Down
2 changes: 2 additions & 0 deletions Source/Entities/MOSParticle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
#include "Atom.h"
#include "PostProcessMan.h"

#include <array>

using namespace RTE;

ConcreteClassInfo(MOSParticle, MovableObject, 1000);
Expand Down
2 changes: 2 additions & 0 deletions Source/Entities/MOSRotating.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
#include "MOSprite.h"
#include "Gib.h"

#include <unordered_set>

namespace RTE {

class AtomGroup;
Expand Down
2 changes: 2 additions & 0 deletions Source/Entities/Material.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
#include "ContentFile.h"
#include "Color.h"

#include <cmath>

namespace RTE {

/// Represents a material and holds all the relevant data.
Expand Down
4 changes: 4 additions & 0 deletions Source/Entities/MovableObject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,14 @@
#include "Actor.h"
#include "SLTerrain.h"
#include "PieMenu.h"
#include "Serializable.h"
#include "System.h"

#include "Base64/base64.h"
#include "tracy/Tracy.hpp"

#include <array>

using namespace RTE;

AbstractClassInfo(MovableObject, SceneObject);
Expand Down
2 changes: 2 additions & 0 deletions Source/Entities/MovableObject.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
#include "Material.h"
#include "MovableMan.h"

#include <set>

struct BITMAP;

namespace RTE {
Expand Down
2 changes: 2 additions & 0 deletions Source/Entities/PieMenu.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
#include "Controller.h"
#include "Matrix.h"

#include <array>

namespace RTE {

class Controller;
Expand Down
3 changes: 3 additions & 0 deletions Source/Entities/SLTerrain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
#include "DataModule.h"
#include "PresetMan.h"

#include <array>
#include <execution>

using namespace RTE;

ConcreteClassInfo(SLTerrain, SceneLayer, 0);
Expand Down
3 changes: 3 additions & 0 deletions Source/Entities/Scene.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
#include "Activity.h"
#include "PathFinder.h"

#include <array>
#include <map>

namespace RTE {

class ContentFile;
Expand Down
2 changes: 2 additions & 0 deletions Source/Entities/SceneLayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

#include "tracy/Tracy.hpp"

#include <array>

using namespace RTE;

ConcreteClassInfo(SceneLayerTracked, Entity, 0);
Expand Down
2 changes: 2 additions & 0 deletions Source/Entities/SceneLayer.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
#include "ContentFile.h"
#include "Box.h"

#include <future>

namespace RTE {

/// A scrolling layer of the Scene.
Expand Down
2 changes: 2 additions & 0 deletions Source/Entities/SoundContainer.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
#include "Entity.h"
#include "AudioMan.h"

#include <unordered_set>

namespace RTE {
class Vector;
struct SoundData;
Expand Down
3 changes: 3 additions & 0 deletions Source/GUI/GUIBanner.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
#include "Timer.h"
#include "allegro.h"

#include <list>
#include <map>

struct BITMAP;

#define MAXBANNERFONTCHARS 256
Expand Down
2 changes: 2 additions & 0 deletions Source/GUI/GUIComboBox.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#include "GUI.h"
#include "GUIComboBox.h"

#include <cassert>

using namespace RTE;

GUIComboBox::GUIComboBox(GUIManager* Manager, GUIControlManager* ControlManager) :
Expand Down
2 changes: 2 additions & 0 deletions Source/GUI/GUIControl.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#include "GUI.h"

#include <cassert>

using namespace RTE;

GUIControl::GUIControl() {
Expand Down
2 changes: 2 additions & 0 deletions Source/GUI/GUIControlManager.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#include "GUI.h"
#include "PresetMan.h"

#include <cassert>

using namespace RTE;

GUIControlManager::GUIControlManager() {
Expand Down
2 changes: 2 additions & 0 deletions Source/GUI/GUIEvent.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#include "GUI.h"

#include <cassert>

using namespace RTE;

GUIEvent::GUIEvent() {
Expand Down
2 changes: 2 additions & 0 deletions Source/GUI/GUIFont.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#include "GUI.h"

#include <cassert>

using namespace RTE;

GUIFont::GUIFont(const std::string& Name) {
Expand Down
2 changes: 2 additions & 0 deletions Source/GUI/GUIListPanel.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#include "GUI.h"
#include "GUIListPanel.h"

#include <cassert>

using namespace RTE;

#define RIGHTTEXTWIDTH 36
Expand Down
2 changes: 2 additions & 0 deletions Source/GUI/GUIManager.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#include "GUI.h"
#include "Timer.h"

#include <cassert>

using namespace RTE;

GUIManager::GUIManager(GUIInput* input) {
Expand Down
2 changes: 2 additions & 0 deletions Source/GUI/GUIPanel.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#include "GUI.h"

#include <cassert>

using namespace RTE;

GUIPanel::GUIPanel(GUIManager* Manager) {
Expand Down
2 changes: 2 additions & 0 deletions Source/GUI/GUIProperties.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#include "GUI.h"

#include <cassert>

using namespace RTE;

GUIProperties::GUIProperties(const std::string& Name) {
Expand Down
2 changes: 2 additions & 0 deletions Source/GUI/GUIPropertyPage.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#include "GUI.h"
#include "GUIPropertyPage.h"

#include <cassert>

using namespace RTE;

GUIPropertyPage::GUIPropertyPage(GUIManager* Manager, GUIControlManager* ControlManager) :
Expand Down
2 changes: 2 additions & 0 deletions Source/GUI/GUIReader.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#include "GUI.h"
#include "GUIReader.h"

#include <fstream>

using namespace RTE;

GUIReader::StreamInfo::StreamInfo(std::ifstream* stream, const std::string& filePath, int currentLine, int prevIndent) :
Expand Down
Loading