Skip to content

Commit

Permalink
ci: linux: Use static libpng-apng in dynamic build
Browse files Browse the repository at this point in the history
  • Loading branch information
calc84maniac committed Aug 9, 2024
1 parent 654259d commit 895bb98
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.linux.workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
release_suffix: static
- statictype: OFF
qtver: Qt6-Dynamic
host_triplet: dynamic
host_triplet: dynamic-apng
release_suffix: shared

steps:
Expand Down
6 changes: 5 additions & 1 deletion gui/qt/CMakePresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
"type": "BOOL",
"value": "True"
},
"VCPKG_OVERLAY_TRIPLETS": {
"type": "STRING",
"value": "${sourceDir}/triplets"
},
"TRY_STATIC_LIBS": {
"type": "BOOL",
"value": "ON"
Expand Down Expand Up @@ -148,7 +152,7 @@
"cacheVariables": {
"VCPKG_TARGET_TRIPLET": {
"type": "STRING",
"value": "x64-linux-dynamic"
"value": "x64-linux-dynamic-apng"
},
"TRY_STATIC_LIBS": {
"type": "BOOL",
Expand Down
10 changes: 10 additions & 0 deletions gui/qt/triplets/x64-linux-dynamic-apng.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
set(VCPKG_TARGET_ARCHITECTURE x64)
set(VCPKG_CRT_LINKAGE dynamic)
set(VCPKG_LIBRARY_LINKAGE dynamic)
if(PORT STREQUAL "png")
set(VCPKG_LIBRARY_LINKAGE static)
endif()

set(VCPKG_CMAKE_SYSTEM_NAME Linux)

set(VCPKG_FIXUP_ELF_RPATH ON)

0 comments on commit 895bb98

Please sign in to comment.