isledecomp / isle

A work-in-progress decompilation of LEGO Island (1997)
1.78k stars 89 forks source link

cmake: add beta10 target #1163

Closed madebr closed 1 week ago

madebr commented 1 week ago

This adds a beta10 target that builds BETA10.DLL when configuring cmake with -DISLE_BUILD_BETA10=ON. Because debug10 is supposed to be built in Debug mode, and lego1 in Release mode, it's helpful to configure CMake with a multi-configuration generator (e.g. Ninja Multi-Config)

$ cmake -S . -B build -DISLE_BUILD_BETA10=ON -DISLE_BUILD_CONFIG=ON -G "Ninja Multi-Config"
$ cmake --build build --target beta10 --config Debug
$ cmake --build build --target lego1 isle config --config Release

And using the following reccmp-build.yml: (minus the environment variables which reccmp does not support)

project: /home/maarten/programming/isle
targets:
  ISLE:
    path: $HOME/projects/isle/build/Release/ISLE.EXE
    pdb: $HOME/projects/isle/build/Release/ISLE.PDB
  LEGO1:
    path: $HOME/projects/isle/build/Release/LEGO1.DLL
    pdb: $HOME/projects/isle/build/Release/LEGO1.PDB
  CONFIG:
    path: $HOME/projects/isle/build/Release/CONFIG.EXE
    pdb: $HOME/projects/isle/build/Release/CONFIG.PDB
  BETA10:
    path: $HOME/projects/isle/build/Debug/BETA10.DLL
    pdb: $HOME/projects/isle/build/Debug/BETA10.PDB

Fixes #1161