From 5645399a9f5d95ac9838f9d6b4d38cf8aa021891 Mon Sep 17 00:00:00 2001 From: matcool <26722564+matcool@users.noreply.github.com> Date: Fri, 15 Nov 2024 15:38:14 -0300 Subject: [PATCH] allow building loader in debug mode on windows --- cmake/Platform.cmake | 23 ++++++++++++++++------- loader/include/link/win64/gd-libcurl.lib | Bin 0 -> 20662 bytes 2 files changed, 16 insertions(+), 7 deletions(-) create mode 100644 loader/include/link/win64/gd-libcurl.lib diff --git a/cmake/Platform.cmake b/cmake/Platform.cmake index 557e4df9..08480a37 100644 --- a/cmake/Platform.cmake +++ b/cmake/Platform.cmake @@ -72,18 +72,27 @@ elseif (GEODE_TARGET_PLATFORM STREQUAL "Win64") target_link_libraries(${PROJECT_NAME} INTERFACE ${GEODE_LOADER_PATH}/include/link/win64/libcocos2d.lib ${GEODE_LOADER_PATH}/include/link/win64/libExtensions.lib - ${GEODE_LOADER_PATH}/include/link/win64/ssl.lib - ${GEODE_LOADER_PATH}/include/link/win64/crypto.lib - ${GEODE_LOADER_PATH}/include/link/win64/nghttp2.lib - ${GEODE_LOADER_PATH}/include/link/win64/ngtcp2.lib - ${GEODE_LOADER_PATH}/include/link/win64/nghttp3.lib - ${GEODE_LOADER_PATH}/include/link/win64/ngtcp2_crypto_boringssl.lib - ${GEODE_LOADER_PATH}/include/link/win64/libcurl.lib ${GEODE_LOADER_PATH}/include/link/win64/glew32.lib ${GEODE_LOADER_PATH}/include/link/win64/fmod.lib opengl32 ) + if (PROJECT_IS_TOP_LEVEL AND CMAKE_BUILD_TYPE STREQUAL "Debug") + target_link_libraries(${PROJECT_NAME} INTERFACE + ${GEODE_LOADER_PATH}/include/link/win64/gd-libcurl.lib + ) + else() + target_link_libraries(${PROJECT_NAME} INTERFACE + ${GEODE_LOADER_PATH}/include/link/win64/ssl.lib + ${GEODE_LOADER_PATH}/include/link/win64/crypto.lib + ${GEODE_LOADER_PATH}/include/link/win64/nghttp2.lib + ${GEODE_LOADER_PATH}/include/link/win64/ngtcp2.lib + ${GEODE_LOADER_PATH}/include/link/win64/nghttp3.lib + ${GEODE_LOADER_PATH}/include/link/win64/ngtcp2_crypto_boringssl.lib + ${GEODE_LOADER_PATH}/include/link/win64/libcurl.lib + ) + endif() + # Windows links against .lib and not .dll set(GEODE_OUTPUT_NAME "Geode") set(GEODE_PLATFORM_BINARY "Geode.lib") diff --git a/loader/include/link/win64/gd-libcurl.lib b/loader/include/link/win64/gd-libcurl.lib new file mode 100644 index 0000000000000000000000000000000000000000..ca43d10ef2ba26152adda474e21a59a16517076e GIT binary patch literal 20662 zcmdU0OK)677Cv!804IP6ZwSNzlQ=KOPTH?Loy1A}N^Be_gvZcn+wHi8-R|jbJ0Ky= ziYyR9h}p41NW(8c5rY^Bu|NoEq}dEYNP{x0vSNi;A(*e8_f*~6<=gILF)e+rTc=Ld zcdKr_&Z+YDBf0X-{ITZ!t?sX@_h45~e|M(0-<5ajXr{a8fO@>rOho@6YU?1{ahYi6 zdqnNG6n0%AlK2`SusfsiF+yNZi^f|B1%6i8J540uv6nhgg~ZAql{4Crb725k;GRBfga?O zK%O3;cY_A<^a}i_&^JaT@i{`Ef42tm^aF=BYE%&lfKT8s@=1Jw5IEAV@c}}C-xZFc z9VC802pk*I_zWR%e1`_OjspXmHQqoda7*FD6p;kl@<5I}ZWF_o72a?;=q`D1bH+ z7#-2Lfe;u2pTu>90>3DndyPoq8-&350~#M81jd^+&?e&oKPgP$J4}pav%}{m#wVw; zgQqW?njD^(8lTKA6sBjE%L|mvp1(LY7FVFZXbqJgyEqZ&YLDF`=)&RH_!1irMKmvxQk!wj-{crOMK08erAQK$!J`slIQPN&WpIORmm55d&y{A zr-~L~d?-i=VtUnbzFc17J)mMlzV31{*8i+1rdxVFpXUQ$SqZov@676%rHWR~&FXrZ zh?hQB&g(BE6lBcPK(|+IAQVJ|r$@QP6H9^OY_6({HW4>HU(_EH$>N!(E-X#w7Th`D zsw<0YN8?MY`Xh{qvx|A%;e27d+)8D^b}6l`MRDC~IX7b}t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