From 8301e577c549aae4a2c7b5684d367d7721e0bead Mon Sep 17 00:00:00 2001 From: = Date: Thu, 19 Jun 2025 15:18:44 -0400 Subject: [PATCH] UWP: Add UWP hxml to generate static lib --- compile-uwp.hxml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 compile-uwp.hxml diff --git a/compile-uwp.hxml b/compile-uwp.hxml new file mode 100644 index 00000000..dd7ba73a --- /dev/null +++ b/compile-uwp.hxml @@ -0,0 +1,14 @@ +-D uwp + +--each +--next + +compile-c.hxml + +# Note: I don't think hashlink supports exporting a lib project.. +# The following sed changes from Application exe to Static lib +# After building the lib, you can build the final exe in a minimal uwp wrapper project (to be supplied later) +-cmd sed -i "s/Application<\/ConfigurationType>/StaticLibrary<\/ConfigurationType>/g" native/marblegame.vcxproj +-cmd sed -i "s/.exe<\/TargetExt>/.lib<\/TargetExt>/g" native/marblegame.vcxproj + +-cmd MSBuild.exe -m -nologo -p:Configuration=Debug -p:Platform=x64 -p:PlatformToolset=v142 -v:minimal native/marblegame.sln