Add Ultralight SDK as a git submodule (ThirdParty/Ultralight-SDK, Windows branch) and update build/deploy tooling and docs to use the vendored SDK by default. Updated .gitmodules and added the submodule pointer; build-prismaui.bat and deploy-all.bat now default UL_SDK to the submodule path and build-prismaui.bat checks the submodule is initialized. The PowerShell linker script (scripts/setup-ultralight-link.ps1) now falls back to ThirdParty/Ultralight-SDK when no SdkPath is provided. Documentation and developer log updated (docs/setup.md, plugin/setup.md, docs/dev-log.md) to document submodule initialization and usage; ULTRALIGHT_SDK_PATH can still override the default. Run 'git submodule update --init --recursive' on clones to initialize the SDK.
53 lines
1.3 KiB
Batchfile
53 lines
1.3 KiB
Batchfile
@echo off
|
|
setlocal EnableExtensions
|
|
|
|
set "SCRIPT_DIR=%~dp0"
|
|
set "FRAMEWORK_DIR=%SCRIPT_DIR%ThirdParty\framework-F4-Conversion"
|
|
set "UL_SDK=%ULTRALIGHT_SDK_PATH%"
|
|
|
|
if not defined UL_SDK set "UL_SDK=%SCRIPT_DIR%ThirdParty\Ultralight-SDK"
|
|
|
|
where xmake >nul 2>&1
|
|
if errorlevel 1 (
|
|
echo xmake was not found on PATH.
|
|
exit /b 1
|
|
)
|
|
|
|
if not exist "%FRAMEWORK_DIR%\xmake.lua" (
|
|
echo Framework submodule missing. Run:
|
|
echo git submodule update --init --recursive ThirdParty/framework-F4-Conversion
|
|
exit /b 1
|
|
)
|
|
|
|
if not exist "%UL_SDK%\include" (
|
|
echo Ultralight SDK submodule missing. Run:
|
|
echo git submodule update --init --recursive ThirdParty/Ultralight-SDK
|
|
exit /b 1
|
|
)
|
|
|
|
echo Linking Ultralight SDK from:
|
|
echo %UL_SDK%
|
|
powershell -NoProfile -ExecutionPolicy Bypass -File "%SCRIPT_DIR%scripts\setup-ultralight-link.ps1" -SdkPath "%UL_SDK%"
|
|
if errorlevel 1 (
|
|
echo Failed to link Ultralight SDK.
|
|
exit /b 1
|
|
)
|
|
|
|
cd /d "%FRAMEWORK_DIR%"
|
|
echo Configuring PrismaUI_F4...
|
|
xmake f --plat=windows --arch=x64 -m release
|
|
if errorlevel 1 exit /b 1
|
|
|
|
echo Building PrismaUI_F4...
|
|
xmake build -r PrismaUI_F4
|
|
if errorlevel 1 exit /b 1
|
|
|
|
echo.
|
|
echo PrismaUI_F4 build succeeded.
|
|
for /r "%FRAMEWORK_DIR%\build" %%F in (PrismaUI_F4.dll) do (
|
|
if exist "%%F" echo %%F
|
|
)
|
|
|
|
endlocal
|
|
exit /b 0
|