Skip to content

Commit d46a849

Browse files
committed
Merge remote-tracking branch 'origin/master' into family-basic-keyboard
2 parents 03eb905 + 1a2aedc commit d46a849

File tree

510 files changed

+3520
-4707
lines changed

Some content is hidden

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

510 files changed

+3520
-4707
lines changed

.gersemirc

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

3-
color: false
43
definitions: [ares/CMakeLists.txt]
54
line_length: 120
65
indent: 2
76
list_expansion: favour-inlining
8-
quiet: false
97
unsafe: false
108
warn_about_unknown_commands: false
11-
workers: 10

.github/CMakeLists.txt

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# dummy GitHub target used to enable editing of GitHub files within generated IDE projects
2+
3+
add_library(.github INTERFACE)
4+
5+
set(.github_sources
6+
ISSUE_TEMPLATE/bug_report.md
7+
ISSUE_TEMPLATE/feature_request.md
8+
ISSUE_TEMPLATE/game-issue-report.md
9+
scripts/build_macos.sh
10+
scripts/build_ubuntu.sh
11+
scripts/build_windows.sh
12+
scripts/package_artifacts.sh
13+
workflows/build-aux.yml
14+
workflows/build.yml
15+
workflows/pr.yml
16+
workflows/push.yml
17+
workflows/release.yml
18+
)
19+
20+
target_sources(
21+
.github
22+
PRIVATE
23+
${.github_sources}
24+
../.gitignore
25+
../.gitattributes
26+
../README.md
27+
../LICENSE
28+
)
29+
30+
source_group(TREE ${CMAKE_CURRENT_SOURCE_DIR} FILES ${.github_sources})
31+

.github/workflows/build-aux.yml

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,14 @@ 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
5967
name: ${{ matrix.program }}-${{ matrix.platform.name }}
6068
runs-on: ${{ matrix.platform.os }}
6169
defaults:
@@ -78,12 +86,12 @@ jobs:
7886
run: |
7987
git config core.autocrlf true
8088
- name: Install Linux Dependencies
81-
if: runner.os == 'Linux'
89+
if: runner.os == 'Linux' && matrix.platform.name != 'freebsd'
8290
run: |
8391
sudo apt-get update -y -qq
84-
sudo apt-get install cmake ccache ninja-build libsdl2-dev libgtk-3-dev libao-dev libopenal-dev
92+
sudo apt-get install cmake ccache ninja-build libsdl2-dev libgtk-3-dev libao-dev libopenal-dev qt6-base-dev
8593
- name: "Build: Linux"
86-
if: runner.os == 'Linux'
94+
if: runner.os == 'Linux' && matrix.platform.name != 'freebsd'
8795
run: .github/scripts/build_ubuntu.sh
8896
env:
8997
TARGET_PRESET: ${{ matrix.platform.target-cmake-preset }}
@@ -95,6 +103,18 @@ jobs:
95103
CROSS_COMPILE: ${{ matrix.platform.native-cmake-preset != '' }}
96104
NATIVE_PRESET: ${{ matrix.platform.native-cmake-preset }}
97105
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
98118
- name: "Compress Build Artifacts (Windows)"
99119
if: runner.os != 'macOS' && runner.os != 'Linux'
100120
run: |

.github/workflows/build.yml

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

CMakeLists.txt

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

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

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

11-
add_subdirectory(cmake)
12-
1311
add_subdirectory(thirdparty)
1412

1513
add_subdirectory(nall/nall)
@@ -21,7 +19,7 @@ add_subdirectory(hiro)
2119
set(
2220
ARES_CORES
2321
a26 fc sfc sg ms md ps1 pce ng msx cv myvision gb gba ws ngp spec n64
24-
CACHE STRING LIST
22+
CACHE STRING "List of systems to be built by the project"
2523
)
2624
# gersemi: on
2725

@@ -52,4 +50,7 @@ endif()
5250
add_subdirectory(tools/sourcery)
5351

5452
message_configuration()
53+
54+
add_subdirectory(.github)
55+
add_subdirectory(cmake)
5556
return()

CMakePresets.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,15 @@
174174
"CMAKE_C_COMPILER": "clang",
175175
"CMAKE_CXX_COMPILER": "clang++"
176176
}
177+
},
178+
{
179+
"name": "ubuntu-ci-qt",
180+
"displayName": "Ubuntu CI (arm64, gcc, Qt)",
181+
"description": "Single-arch binary for building on Github Actions",
182+
"inherits": ["ubuntu-ci"],
183+
"cacheVariables": {
184+
"USE_QT6": true
185+
}
177186
}
178187
],
179188
"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 PUBLIC libco sljit nall)
24+
target_link_libraries(ares PRIVATE libco ares::nall::headers $<$<BOOL:${ARES_ENABLE_CHD}>:chdr-static> PUBLIC sljit)
2525

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

ares/a26/a26.hpp

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

33
#include <ares/ares.hpp>
4+
#include <vector>
45

56
#include <component/processor/mos6502/mos6502.hpp>
67

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

1213
struct Region {

ares/a26/system/system.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
#include <a26/a26.hpp>
2+
#include <algorithm>
23

34
namespace ares::Atari2600 {
45

5-
auto enumerate() -> vector<string> {
6+
auto enumerate() -> std::vector<string> {
67
return {
78
"[Atari] Atari 2600 (NTSC)",
89
"[Atari] Atari 2600 (PAL)",
@@ -11,7 +12,8 @@ auto enumerate() -> vector<string> {
1112
}
1213

1314
auto load(Node::System& node, string name) -> bool {
14-
if(!enumerate().find(name)) return false;
15+
auto list = enumerate();
16+
if(std::find(list.begin(), list.end(), name) == list.end()) return false;
1517
return system.load(node, name);
1618
}
1719

ares/ares/ares.hpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
#include <libco/libco.h>
44
#include <sljit.h>
55

6+
#include <vector>
7+
#include <ranges>
8+
#include <algorithm>
9+
610
#include <nall/platform.hpp>
711
#include <nall/adaptive-array.hpp>
812
#include <nall/any.hpp>
@@ -29,7 +33,6 @@
2933
#include <nall/traits.hpp>
3034
#include <nall/unique-pointer.hpp>
3135
#include <nall/variant.hpp>
32-
#include <nall/vector.hpp>
3336
#include <nall/vfs.hpp>
3437
#include <nall/cd.hpp>
3538
#include <nall/dsp/iir/one-pole.hpp>

0 commit comments

Comments
 (0)