Skip to content

Commit

Permalink
chore: Add fully static build.
Browse files Browse the repository at this point in the history
  • Loading branch information
iphydf committed Nov 27, 2024
1 parent d9f2183 commit 06c78e0
Show file tree
Hide file tree
Showing 7 changed files with 546 additions and 14 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/_build
7 changes: 6 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -601,8 +601,13 @@ qt_add_executable(${PROJECT_NAME} WIN32 MACOSX_BUNDLE
target_link_libraries(
${PROJECT_NAME} PRIVATE ${PROJECT_NAME}_static ${CMAKE_REQUIRED_LIBRARIES}
${ALL_LIBRARIES})
#target_link_options(${PROJECT_NAME} PRIVATE -static-libgcc -static-libstdc++ -static)
target_link_directories(${PROJECT_NAME} PRIVATE "/sysroot/opt/qt/plugins/platforms")
target_link_libraries(${PROJECT_NAME} PRIVATE qoffscreen)

include(Testing)
if(BUILD_TESTING)
include(Testing)
endif()
include(Installation)

if(DEFINED ENV{IN_NIX_SHELL})
Expand Down
Loading

0 comments on commit 06c78e0

Please sign in to comment.