Skip to content

Commit a8c79c5

Browse files
committed
Merge branch 'main-refactor' into shared-impl
2 parents 7851b6b + 6d24038 commit a8c79c5

199 files changed

Lines changed: 3087 additions & 2315 deletions

File tree

Some content is hidden

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

.github/workflows/main_ci.yml

Lines changed: 20 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -4,49 +4,35 @@ on:
44
push:
55
branches: [ master ]
66
paths:
7-
- '.github/workflows/main_ci.yml'
8-
- 'cmake/**'
9-
- 'include/**'
10-
- 'src/**'
11-
- 'CMakeLists.txt'
12-
- 'CMakePresets.json'
13-
- 'vcpkg.json'
7+
- ".github/workflows/main_ci.yml"
8+
- "include/**"
9+
- "src/**"
10+
- "xmake.lua"
11+
- "xmake-extra.lua"
1412
pull_request:
1513
branches: [ master ]
1614
workflow_dispatch:
1715

18-
env:
19-
BUILD_TYPE: Debug
20-
VCPKG_DEFAULT_BINARY_CACHE: ${{ github.workspace }}/vcpkg-cache
21-
2216
jobs:
23-
windows:
17+
build-xmake:
2418
runs-on: windows-latest
19+
strategy:
20+
fail-fast: false
21+
matrix:
22+
mode:
23+
- debug
24+
- release
2525
steps:
26-
- uses: actions/checkout@v4
27-
with:
28-
path: main
29-
30-
- name: Setup vcpkg
31-
run: |
32-
mkdir -p ${{ env.VCPKG_DEFAULT_BINARY_CACHE }}
33-
cd $env:VCPKG_INSTALLATION_ROOT
34-
./bootstrap-vcpkg.bat
35-
./vcpkg --version > ${{ github.workspace }}/vcpkg-version.txt
26+
- name: Checkout
27+
uses: actions/checkout@v4
3628

37-
- name: Cache vcpkg
38-
uses: actions/cache@v4
39-
id: vcpkg-cache
40-
env:
41-
cache-name: vcpkg-cache
29+
- name: Setup XMake
30+
uses: xmake-io/github-action-setup-xmake@v1
4231
with:
43-
path: ${{ env.VCPKG_DEFAULT_BINARY_CACHE }}/*
44-
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('main/**/vcpkg.json', 'vcpkg-version.txt') }}
32+
xmake-version: "latest"
4533

46-
- name: Configure CMake
47-
working-directory: ${{ github.workspace }}/main
48-
run: cmake --preset vs2022-windows-vcpkg
34+
- name: Configure
35+
run: xmake config -y --mode=${{ matrix.mode }}
4936

5037
- name: Build
51-
working-directory: ${{ github.workspace }}/main
52-
run: cmake --build build --config ${{ env.BUILD_TYPE }}
38+
run: xmake build -y -vD

.github/workflows/main_ci_xmake.yml

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

.github/workflows/maintenance.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
run: find -type f \( -name *.h -o -name *.cpp \) | xargs clang-format -style=file -i
1818

1919
- name: Glob files
20-
run: python ${{ github.workspace }}/res/scripts/cmake_generate.py
20+
run: python ${{ github.workspace }}/res/scripts/generate_headers.py
2121

2222
- uses: stefanzweifel/git-auto-commit-action@v4
2323
with:

CMakeLists.txt

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

CMakePresets.json

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

README.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,17 @@
33
## General Requirements
44

55
### Build Dependencies
6-
* [Visual Studio Community 2019 16.10.0 Preview 3.0](https://visualstudio.microsoft.com/vs/preview/)
6+
* [Visual Studio Community 2022 Preview](https://visualstudio.microsoft.com/vs/preview/)
77
* Desktop development with C++
8+
* [binary-io](https://github.com/Ryan-rsm-McKenzie/binary_io)
89
* [mmio](https://github.com/Ryan-rsm-McKenzie/mmio)
910
* [spdlog](https://github.com/gabime/spdlog)
1011

1112
### Development
12-
* [clang-format 12.0.0](https://github.com/llvm/llvm-project/releases)
13-
* [CMake](https://cmake.org/)
14-
* [vcpkg](https://github.com/microsoft/vcpkg)
13+
* [xmake](https://xmake.io/)
1514

1615
## F4SE Plugin Requirements
1716

1817
### End User Dependencies
1918
* [Address Library for F4SE Plugins](https://www.nexusmods.com/fallout4/mods/47327)
2019
* [F4SE](https://f4se.silverlock.org/)
21-
22-
### Development
23-
* [Address Library for F4SE Plugins](https://www.nexusmods.com/fallout4/mods/47327)

include/RE/A/AIProcess.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ namespace RE
1515
enum class DIALOGUE_SUBTYPE;
1616
enum class DIALOGUE_TYPE;
1717
enum class WEAPON_CULL_TYPE;
18-
1918
class CachedValues;
2019
class HighProcessData;
2120
class MiddleHighProcessData;

include/RE/A/ActorEquipManagerEvent.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
namespace RE
44
{
5+
class BGSObjectInstance;
6+
57
namespace ActorEquipManagerEvent
68
{
79
enum class Type : std::int32_t

include/RE/A/AimModel.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#pragma once
22

33
#include "RE/B/BGSAimModel.h"
4+
#include "RE/B/BSSpring_SpringState.h"
45
#include "RE/N/NiPoint.h"
5-
#include "RE/S/SpringState.h"
66

77
namespace RE
88
{

0 commit comments

Comments
 (0)