platform variants

This commit is contained in:
madeline
2026-03-02 10:42:51 -08:00
parent 6d603a1c06
commit 27e8371d28
3 changed files with 29 additions and 2 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
{
"cmake.buildDirectory": "${workspaceFolder}/build/dusk",
"cmake.buildDirectory": "${workspaceFolder}/build/dusk/${buildType}/${variant:platform}",
"[c]": {
"files.encoding": "utf8",
"editor.defaultFormatter": "llvm-vs-code-extensions.vscode-clangd"
+1 -1
View File
@@ -59,7 +59,7 @@ add_library(game_debug STATIC ${JSYSTEM_DEBUG_FILES} ${SSYSTEM_FILES})
target_compile_definitions(game_debug PRIVATE TARGET_PC VERSION=0 $<$<CONFIG:Debug>:DEBUG=1>)
# Make these properties PUBLIC so that the regular game target also sees them.
target_include_directories(game_debug PUBLIC include src assets/${DUSK_TP_VERSION} ${CMAKE_BINARY_DIR}/../${DUSK_TP_VERSION}/include)
target_include_directories(game_debug PUBLIC include src assets/${DUSK_TP_VERSION} ${CMAKE_SOURCE_DIR}/build/${DUSK_TP_VERSION}/include)
target_link_libraries(game_debug PUBLIC aurora::core aurora::gx aurora::si aurora::vi aurora::pad aurora::mtx)
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
+27
View File
@@ -0,0 +1,27 @@
buildType:
default: Debug
choices:
debug:
short: Debug
long: Unoptimized with debug symbols
buildType: Debug
release:
short: Release
long: Optimized, no debug symbols
buildType: Release
platform:
default: win64
description: Target platform
choices:
win32:
short: Win32
long: Windows 32-bit (MSVC)
settings:
CMAKE_GENERATOR_PLATFORM: Win32
win64:
short: Win64
long: Windows 64-bit (MSVC)
settings:
CMAKE_GENERATOR_PLATFORM: x64