From 64f97cd2db640e6108c4d43ae44b4204c2764ffd Mon Sep 17 00:00:00 2001 From: Andrew Zambazos Date: Sat, 18 Jul 2026 20:13:18 +1200 Subject: [PATCH] Add CommonLibF4 submodule and build script Adds CommonLibF4 as a git submodule dependency and introduces a Windows `build.bat` helper. The script ensures `xmake` is installed, runs the plugin build, and reports success/failure with the expected staged output path, making local setup and builds more consistent. --- ThirdParty/CommonLibF4 | 1 + build.bat | 23 +++++++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 160000 ThirdParty/CommonLibF4 create mode 100644 build.bat diff --git a/ThirdParty/CommonLibF4 b/ThirdParty/CommonLibF4 new file mode 160000 index 0000000..5ba1928 --- /dev/null +++ b/ThirdParty/CommonLibF4 @@ -0,0 +1 @@ +Subproject commit 5ba1928a32c6ccd5690164b79066fc2f5dcb5c65 diff --git a/build.bat b/build.bat new file mode 100644 index 0000000..03209d6 --- /dev/null +++ b/build.bat @@ -0,0 +1,23 @@ +@echo off +setlocal + +cd /d "%~dp0" + +where xmake >nul 2>&1 +if errorlevel 1 ( + echo xmake was not found on PATH. + echo Install xmake 3.0.0 or newer from https://xmake.io + exit /b 1 +) + +echo Building F4SEPluginTemplate... +xmake build +if errorlevel 1 ( + echo Build failed. + exit /b 1 +) + +echo. +echo Build succeeded. +echo Plugin staged to: package\F4SE\Plugins\ +exit /b 0