From 3fa06cc7c0390cbe21ae4b1e11bf7814189f7bf8 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Sun, 25 Feb 2024 01:57:42 +0100 Subject: [PATCH] build: Remove compression from sdk again --- cmake/build_helpers.cmake | 30 +++++++++--------------------- 1 file changed, 9 insertions(+), 21 deletions(-) diff --git a/cmake/build_helpers.cmake b/cmake/build_helpers.cmake index 69c959185..793f8c095 100644 --- a/cmake/build_helpers.cmake +++ b/cmake/build_helpers.cmake @@ -739,32 +739,20 @@ function(generateSDKDirectory) set(SDK_BUILD_PATH "${CMAKE_BINARY_DIR}/sdk") - install(DIRECTORY ${CMAKE_SOURCE_DIR}/lib/libimhex DESTINATION "${SDK_BUILD_PATH}/lib" PATTERN "**/source/*" EXCLUDE) - install(DIRECTORY ${CMAKE_SOURCE_DIR}/lib/external DESTINATION "${SDK_BUILD_PATH}/lib") - install(DIRECTORY ${CMAKE_SOURCE_DIR}/lib/third_party/imgui DESTINATION "${SDK_BUILD_PATH}/lib/third_party" PATTERN "**/source/*" EXCLUDE) + install(DIRECTORY ${CMAKE_SOURCE_DIR}/lib/libimhex DESTINATION "${SDK_PATH}/lib" PATTERN "**/source/*" EXCLUDE) + install(DIRECTORY ${CMAKE_SOURCE_DIR}/lib/external DESTINATION "${SDK_PATH}/lib") + install(DIRECTORY ${CMAKE_SOURCE_DIR}/lib/third_party/imgui DESTINATION "${SDK_PATH}/lib/third_party" PATTERN "**/source/*" EXCLUDE) if (NOT USE_SYSTEM_FMT) - install(DIRECTORY ${CMAKE_SOURCE_DIR}/lib/third_party/fmt DESTINATION "${SDK_BUILD_PATH}/lib/third_party") + install(DIRECTORY ${CMAKE_SOURCE_DIR}/lib/third_party/fmt DESTINATION "${SDK_PATH}/lib/third_party") endif() if (NOT USE_SYSTEM_NLOHMANN_JSON) - install(DIRECTORY ${CMAKE_SOURCE_DIR}/lib/third_party/nlohmann_json DESTINATION "${SDK_BUILD_PATH}/lib/third_party") + install(DIRECTORY ${CMAKE_SOURCE_DIR}/lib/third_party/nlohmann_json DESTINATION "${SDK_PATH}/lib/third_party") endif() - install(DIRECTORY ${CMAKE_SOURCE_DIR}/cmake/modules DESTINATION "${SDK_BUILD_PATH}/cmake") - install(FILES ${CMAKE_SOURCE_DIR}/cmake/build_helpers.cmake DESTINATION "${SDK_BUILD_PATH}/cmake") - install(DIRECTORY ${CMAKE_SOURCE_DIR}/cmake/sdk/ DESTINATION "${SDK_BUILD_PATH}") - install(TARGETS libimhex ARCHIVE DESTINATION "${SDK_BUILD_PATH}/lib") - - if ("$ENV{DESTDIR}" STREQUAL "") - if (IS_ABSOLUTE "${CMAKE_INSTALL_PREFIX}") - set(SDK_INSTALL_PATH "${CMAKE_INSTALL_PREFIX}/sdk") - else() - set(SDK_INSTALL_PATH "${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_PREFIX}/sdk") - endif() - else() - set(SDK_INSTALL_PATH "$ENV{DESTDIR}/sdk") - endif() - - install(CODE "file(ARCHIVE_CREATE OUTPUT \"${SDK_INSTALL_PATH}/sdk.zip\" PATHS \"${SDK_BUILD_PATH}/\" FORMAT zip)") + install(DIRECTORY ${CMAKE_SOURCE_DIR}/cmake/modules DESTINATION "${SDK_PATH}/cmake") + install(FILES ${CMAKE_SOURCE_DIR}/cmake/build_helpers.cmake DESTINATION "${SDK_PATH}/cmake") + install(DIRECTORY ${CMAKE_SOURCE_DIR}/cmake/sdk/ DESTINATION "${SDK_PATH}") + install(TARGETS libimhex ARCHIVE DESTINATION "${SDK_PATH}/lib") endfunction() function(addIncludesFromLibrary target library)