Skip to content

Commit f86c5f2

Browse files
committed
Revert "Merge branch 'master' into stick_configurations_exploration"
This reverts commit c10f96a, reversing changes made to ec42933.
1 parent c10f96a commit f86c5f2

File tree

979 files changed

+10981
-13106
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

979 files changed

+10981
-13106
lines changed

.gersemirc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
# yaml-language-server: $schema=https://raw.githubusercontent.com/BlankSpruce/gersemi/master/gersemi/configuration.schema.json
22

3+
color: false
34
definitions: [ares/CMakeLists.txt]
45
line_length: 120
56
indent: 2
67
list_expansion: favour-inlining
8+
quiet: false
79
unsafe: false
810
warn_about_unknown_commands: false
11+
workers: 10

.github/CMakeLists.txt

Lines changed: 0 additions & 31 deletions
This file was deleted.

.github/workflows/build-aux.yml

Lines changed: 3 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,6 @@ jobs:
5656
os: ubuntu-24.04-arm
5757
shell: bash
5858
target-cmake-preset: ubuntu-ci-clang
59-
- name: ubuntu-gcc-arm64-qt
60-
os: ubuntu-24.04-arm
61-
shell: bash
62-
target-cmake-preset: ubuntu-ci-qt
63-
- name: freebsd
64-
os: ubuntu-24.04
65-
shell: bash
66-
target-cmake-preset: ubuntu-ci-clang
6759
name: ${{ matrix.program }}-${{ matrix.platform.name }}
6860
runs-on: ${{ matrix.platform.os }}
6961
defaults:
@@ -86,12 +78,12 @@ jobs:
8678
run: |
8779
git config core.autocrlf true
8880
- name: Install Linux Dependencies
89-
if: runner.os == 'Linux' && matrix.platform.name != 'freebsd'
81+
if: runner.os == 'Linux'
9082
run: |
9183
sudo apt-get update -y -qq
92-
sudo apt-get install cmake ccache ninja-build libsdl2-dev libgtk-3-dev libao-dev libopenal-dev qt6-base-dev
84+
sudo apt-get install cmake ccache ninja-build libsdl2-dev libgtk-3-dev libao-dev libopenal-dev
9385
- name: "Build: Linux"
94-
if: runner.os == 'Linux' && matrix.platform.name != 'freebsd'
86+
if: runner.os == 'Linux'
9587
run: .github/scripts/build_ubuntu.sh
9688
env:
9789
TARGET_PRESET: ${{ matrix.platform.target-cmake-preset }}
@@ -103,18 +95,6 @@ jobs:
10395
CROSS_COMPILE: ${{ matrix.platform.native-cmake-preset != '' }}
10496
NATIVE_PRESET: ${{ matrix.platform.native-cmake-preset }}
10597
TARGET_PRESET: ${{ matrix.platform.target-cmake-preset }}
106-
- name: "Build: FreeBSD"
107-
if: matrix.platform.name == 'freebsd'
108-
uses: cross-platform-actions/action@e8a7b572196ff79ded1979dc2bb9ee67d1ddb252
109-
env:
110-
TARGET_PRESET: ${{ matrix.platform.target-cmake-preset }}
111-
with:
112-
operating_system: freebsd
113-
version: 14.3
114-
environment_variables: TARGET_PRESET
115-
run: |
116-
sudo pkg install -y cmake pkgconf ccache ninja gtk3 libX11 libXext libXrandr libXrender libglvnd alsa-lib libao libudev-devd librashader openal-soft pulseaudio sdl3 vulkan-loader
117-
.github/scripts/build_ubuntu.sh
11898
- name: "Compress Build Artifacts (Windows)"
11999
if: runner.os != 'macOS' && runner.os != 'Linux'
120100
run: |

.github/workflows/build.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ jobs:
7777
- name: Install macOS Dependencies
7878
if: runner.os == 'macOS'
7979
run: |
80-
brew uninstall --ignore-dependencies cmake
8180
brew install ${{ matrix.platform.install }}
8281
- name: "Build: Windows"
8382
if: runner.os != 'macOS' && runner.os != 'Linux'

CMakeLists.txt

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.28...4.1)
1+
cmake_minimum_required(VERSION 3.28...4.0)
22

33
include("${CMAKE_CURRENT_SOURCE_DIR}/cmake/common/bootstrap.cmake" NO_POLICY_SCOPE)
44

@@ -8,6 +8,8 @@ include(compilerconfig)
88
include(defaults)
99
include(helpers)
1010

11+
add_subdirectory(cmake)
12+
1113
add_subdirectory(thirdparty)
1214

1315
add_subdirectory(nall/nall)
@@ -19,7 +21,7 @@ add_subdirectory(hiro)
1921
set(
2022
ARES_CORES
2123
a26 fc sfc sg ms md ps1 pce ng msx cv myvision gb gba ws ngp spec n64
22-
CACHE STRING "List of systems to be built by the project"
24+
CACHE STRING LIST
2325
)
2426
# gersemi: on
2527

@@ -33,7 +35,7 @@ if(ARES_BUILD_OPTIONAL_TARGETS)
3335
add_subdirectory(tests/arm7tdmi)
3436
add_subdirectory(tests/i8080)
3537
add_subdirectory(tests/m68000)
36-
if(HIRO_BACKEND STREQUAL "GTK3")
38+
if(NOT OS_WINDOWS AND NOT OS_MACOS)
3739
add_subdirectory(tools/genius)
3840
else()
3941
target_disable_subproject(genius "genius (database editor)")
@@ -50,7 +52,4 @@ endif()
5052
add_subdirectory(tools/sourcery)
5153

5254
message_configuration()
53-
54-
add_subdirectory(.github)
55-
add_subdirectory(cmake)
5655
return()

CMakePresets.json

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
"binaryDir": "${sourceDir}/build",
8383
"cacheVariables": {
8484
"CMAKE_OSX_ARCHITECTURES": {"type": "STRING", "value": "x86_64;arm64"},
85-
"CMAKE_OSX_DEPLOYMENT_TARGET": {"type": "STRING", "value": "11.0"},
85+
"CMAKE_OSX_DEPLOYMENT_TARGET": {"type": "STRING", "value": "10.15"},
8686
"ARES_CODESIGN_IDENTITY": {"type": "STRING", "value": "$penv{MACOS_CERTIFICATE_NAME}"},
8787
"ARES_CODESIGN_TEAM": {"type": "STRING", "value": "$penv{MACOS_NOTARIZATION_TEAMID}"},
8888
"ENABLE_CCACHE": true,
@@ -103,8 +103,7 @@
103103
"ARES_BUILD_OPTIONAL_TARGETS": true,
104104
"ARES_UNITY_CORES": true,
105105
"ARES_PRECOMPILE_HEADERS": true,
106-
"CMAKE_MSVC_RUNTIME_LIBRARY": {"type": "STRING", "value": "MultiThreaded"},
107-
"CMAKE_IGNORE_PATH": {"type": "STRING", "value": "C:/Strawberry/c/bin/"}
106+
"CMAKE_MSVC_RUNTIME_LIBRARY": {"type": "STRING", "value": "MultiThreaded"}
108107
}
109108
},
110109
{
@@ -161,7 +160,6 @@
161160
"cacheVariables": {
162161
"CMAKE_BUILD_TYPE": {"type": "STRING", "value": "RelWithDebInfo"},
163162
"ENABLE_CCACHE": true,
164-
"ENABLE_IPO": false,
165163
"ARES_BUILD_LOCAL": false,
166164
"ARES_BUILD_OPTIONAL_TARGETS": true,
167165
"ARES_PRECOMPILE_HEADERS": false
@@ -176,16 +174,6 @@
176174
"CMAKE_C_COMPILER": "clang",
177175
"CMAKE_CXX_COMPILER": "clang++"
178176
}
179-
},
180-
{
181-
"name": "ubuntu-ci-qt",
182-
"displayName": "Ubuntu CI (arm64, gcc, Qt)",
183-
"description": "Single-arch binary for building on Github Actions",
184-
"inherits": ["ubuntu-ci"],
185-
"cacheVariables": {
186-
"USE_QT6": true,
187-
"ARES_BUILD_OPTIONAL_TARGETS": false
188-
}
189177
}
190178
],
191179
"buildPresets": [

ares/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ if(ARES_PRECOMPILE_HEADERS)
2121
target_precompile_headers(ares PRIVATE "$<$<COMPILE_LANGUAGE:CXX>:ares/ares.hpp>")
2222
endif()
2323

24-
target_link_libraries(ares PRIVATE libco ares::nall::headers $<$<BOOL:${ARES_ENABLE_CHD}>:chdr-static> PUBLIC sljit)
24+
target_link_libraries(ares PUBLIC libco sljit nall)
2525

2626
if(ARES_PROFILE_ACCURACY)
2727
target_compile_definitions(ares PUBLIC PROFILE_ACCURACY)

ares/a26/a26.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
#pragma once
22

33
#include <ares/ares.hpp>
4-
#include <vector>
54

65
#include <component/processor/mos6502/mos6502.hpp>
76

87
namespace ares::Atari2600 {
98
#include <ares/inline.hpp>
10-
auto enumerate() -> std::vector<string>;
9+
auto enumerate() -> vector<string>;
1110
auto load(Node::System& node, string name) -> bool;
1211

1312
struct Region {

ares/a26/cartridge/cartridge.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@ auto Cartridge::connect() -> void {
1919
information.region = pak->attribute("region");
2020
information.board = pak->attribute("board");
2121

22-
if(information.board == "Linear") board = std::make_unique<Board::Linear>(*this);
23-
if(information.board == "Atari8k") board = std::make_unique<Board::Atari8k>(*this);
24-
if(information.board == "Atari16k") board = std::make_unique<Board::Atari16k>(*this);
25-
if(information.board == "Atari32k") board = std::make_unique<Board::Atari32k>(*this);
26-
if(information.board == "Commavid") board = std::make_unique<Board::Commavid>(*this);
27-
if(information.board == "ParkerBros8k") board = std::make_unique<Board::ParkerBros>(*this);
28-
if(information.board == "Tigervision") board = std::make_unique<Board::Tigervision>(*this);
22+
if(information.board == "Linear") board = new Board::Linear{*this};
23+
if(information.board == "Atari8k") board = new Board::Atari8k{*this};
24+
if(information.board == "Atari16k") board = new Board::Atari16k{*this};
25+
if(information.board == "Atari32k") board = new Board::Atari32k{*this};
26+
if(information.board == "Commavid") board = new Board::Commavid{*this};
27+
if(information.board == "ParkerBros8k") board = new Board::ParkerBros{*this};
28+
if(information.board == "Tigervision") board = new Board::Tigervision{*this};
2929

30-
if(!board) board = std::make_unique<Board::Interface>(*this);
30+
if(!board) board = new Board::Interface{*this};
3131
board->pak = pak;
3232
board->load();
3333
power();

ares/a26/cartridge/cartridge.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ struct Cartridge {
2222
//serialization.cpp
2323
auto serialize(serializer&) -> void;
2424

25-
std::unique_ptr<Board::Interface> board;
25+
unique_pointer<Board::Interface> board;
2626

2727
//private:
2828
struct Information {

0 commit comments

Comments
 (0)