Files
WoW-Hybrid-gateway/cmake/WindowsAgilityProxy.cmake
praxisandClaude Fable 5.2 ade859f153 Project overview, working rules and build system
11 files, from working commit b1a079a.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-19 01:32:47 +02:00

19 lines
1.1 KiB
CMake

# Standalone target: no Bridge/codec/backend build or import dependency.
# A matching optional Bridge can be installed for a later startup boundary.
add_library(GWNativeAgilityProxy SHARED
"${CMAKE_CURRENT_LIST_DIR}/../native/nohelper/d3d12core_proxy.c"
"${CMAKE_CURRENT_LIST_DIR}/../native/nohelper/d3d12core_proxy.def")
target_compile_definitions(GWNativeAgilityProxy PRIVATE NOMINMAX _WIN32_WINNT=0x0A00)
option(GW_D3D12_BRIDGE_SYSTEM32_CANDIDATE "Isolated System32 startup placement experiment" OFF)
if(GW_D3D12_BRIDGE_SYSTEM32_CANDIDATE)
target_compile_definitions(GWNativeAgilityProxy PRIVATE GW_D3D12_BRIDGE_SYSTEM32_CANDIDATE=1)
endif()
target_compile_options(GWNativeAgilityProxy PRIVATE
$<$<COMPILE_LANGUAGE:C>:-O2;-Wall;-Wextra;-Werror;-ffreestanding;-fno-builtin;-fno-stack-protector;-funwind-tables>)
target_link_options(GWNativeAgilityProxy PRIVATE
-nostartfiles -Wl,-e,0 -Wl,--no-undefined)
target_link_libraries(GWNativeAgilityProxy PRIVATE kernel32)
set_target_properties(GWNativeAgilityProxy PROPERTIES
PREFIX "" OUTPUT_NAME "D3D12Core"
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/windows-profile5/agility-proxy")