- Add freestyle submodule (1B) - Create HyperTwistIPCProcessManager for external process spawning - Create HyperTwistSolverOracleLibrary with Blueprint wrappers - Add brownan GPL solver standalone build files (1D) - Add cahidenes Python solver wrapper using kociemba (1F) - Update roadmap marking 1B/1D/1F in progress
31 lines
926 B
Batchfile
31 lines
926 B
Batchfile
@echo off
|
|
setlocal
|
|
|
|
REM Build brownan GPL solver as standalone executable
|
|
REM Source is in .external/Rubiks-Cube-Solver (GPL-2.0, NEVER link into Unreal)
|
|
|
|
set SRCDIR=..\..\.external\Rubiks-Cube-Solver
|
|
set OUTDIR=..\..\UnrealHyperTwist\Binaries\Win64\Solvers
|
|
|
|
if not exist %OUTDIR% mkdir %OUTDIR%
|
|
|
|
cl.exe /nologo /W4 /O2 /Fe%OUTDIR%\brownan-solver.exe ^
|
|
%SRCDIR%\cube.c ^
|
|
%SRCDIR%\stack.c ^
|
|
%SRCDIR%\common.c ^
|
|
%SRCDIR%\cornertable.c ^
|
|
%SRCDIR%\goal.c ^
|
|
%SRCDIR%\edgetable.c ^
|
|
%SRCDIR%\main.c
|
|
|
|
if errorlevel 1 (
|
|
echo Build failed
|
|
exit /b 1
|
|
)
|
|
|
|
REM Copy pre-generated tables if they exist
|
|
if exist %SRCDIR%\table_corner.rht copy /Y %SRCDIR%\table_corner.rht %OUTDIR%\
|
|
if exist %SRCDIR%\table_edge1.rht copy /Y %SRCDIR%\table_edge1.rht %OUTDIR%\
|
|
if exist %SRCDIR%\table_edge2.rht copy /Y %SRCDIR%\table_edge2.rht %OUTDIR%\
|
|
|
|
echo brownan-solver built successfully at %OUTDIR%\brownan-solver.exe
|