axmol/tools/win-ci/build.ps1

14 lines
355 B
PowerShell
Raw Normal View History

2021-08-27 01:42:32 +08:00
$BUILD_ARCH = $args[0]
# CONFIG_ALL_OPTIONS
$CONFIG_ALL_OPTIONS=@()
if($BUILD_ARCH -eq "x86") {
$CONFIG_ALL_OPTIONS += '-A', 'Win32'
}
2022-02-17 17:11:17 +08:00
cmake -S . -B build_$BUILD_ARCH $CONFIG_ALL_OPTIONS -DAX_ENABLE_EXT_IMGUI=ON
2021-08-27 01:42:32 +08:00
cmake --build build_$BUILD_ARCH --config Release --target cpp-tests
2021-08-27 11:42:43 +08:00
cmake --build build_$BUILD_ARCH --config Release --target lua-tests