-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #70 from saturneric/dev/2.0.8/saturneric
Develop 2.0.9.1
- Loading branch information
Showing
114 changed files
with
1,344 additions
and
1,047 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -129,7 +129,7 @@ if (BASIC_ENV_CONFIG) | |
configure_file(${CMAKE_SOURCE_DIR}/src/GpgFrontend.h.in ${CMAKE_SOURCE_DIR}/src/GpgFrontend.h @ONLY) | ||
configure_file(${CMAKE_SOURCE_DIR}/src/GpgFrontendBuildInfo.h.in ${CMAKE_SOURCE_DIR}/src/GpgFrontendBuildInfo.h @ONLY) | ||
configure_file(${CMAKE_SOURCE_DIR}/src/GpgFrontendBuildInstallInfo.h.in ${CMAKE_SOURCE_DIR}/src/GpgFrontendBuildInstallInfo.h @ONLY) | ||
if(APPLE) | ||
if (APPLE) | ||
configure_file(${CMAKE_SOURCE_DIR}/resource/plist/ExportOptions.plist.in ${CMAKE_BINARY_DIR}/ExportOptions.plist @ONLY) | ||
endif () | ||
endif () | ||
|
@@ -183,7 +183,7 @@ if (APPLICATION_BUILD) | |
if (${CMAKE_BUILD_TYPE} STREQUAL "Release") | ||
if (MINGW) | ||
add_executable(${AppName} WIN32 ${BASE_SOURCE} ${RESOURCE_FILES} ${QT5_MOCS}) | ||
# custom app bundle packing | ||
# custom app bundle packing | ||
elseif (APPLE AND NOT XCODE_BUILD) | ||
add_executable(${AppName} MACOSX_BUNDLE ${ICON_RESOURCE} ${BASE_SOURCE} ${RESOURCE_FILES} ${QT5_MOCS}) | ||
set_target_properties(${AppName} PROPERTIES | ||
|
@@ -212,7 +212,7 @@ if (APPLICATION_BUILD) | |
COMMAND /bin/mkdir -p ./gpgfrontend/usr/lib | ||
WORKING_DIRECTORY ${CMAKE_RUNTIME_OUTPUT_DIRECTORY} | ||
COMMENT "Complement to build the required architecture") | ||
# app bundle packing using xcode | ||
# app bundle packing using xcode | ||
elseif (APPLE AND XCODE_BUILD) | ||
add_executable(${AppName} MACOSX_BUNDLE ${ICON_RESOURCE} ${BASE_SOURCE} ${RESOURCE_FILES} ${QT5_MOCS}) | ||
set_target_properties(${AppName} PROPERTIES | ||
|
@@ -272,10 +272,10 @@ if (APPLICATION_BUILD) | |
message(STATUS "Link Application Library For Linux") | ||
target_link_libraries(${AppName} crypto pthread) | ||
# issue on filesystem support of gcc | ||
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU" AND ${CMAKE_CXX_COMPILER_VERSION} VERSION_LESS 9.0) | ||
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU" AND ${CMAKE_CXX_COMPILER_VERSION} VERSION_LESS 9.0) | ||
target_link_libraries(${AppName} stdc++fs) | ||
endif () | ||
endif() | ||
endif () | ||
endif () | ||
|
||
# using c++ standard 17 | ||
|
@@ -314,6 +314,14 @@ if (LINUX AND LINUX_INSTALL_SOFTWARE) | |
install(DIRECTORY ${LOCALE_OUTPUT_PATH}/ | ||
DESTINATION ${CMAKE_INSTALL_FULL_LOCALEDIR}) | ||
endif () | ||
|
||
cmake_host_system_information(RESULT PRETTY_NAME QUERY DISTRIB_PRETTY_NAME) | ||
cmake_host_system_information(RESULT DISTRO QUERY DISTRIB_INFO) | ||
|
||
foreach(VAR IN LISTS DISTRO) | ||
message(STATUS "${VAR}=`${${VAR}}`") | ||
endforeach() | ||
|
||
if (APP_PACKAGE_DEB) | ||
message(STATUS "Configure Deb Package") | ||
SET(CPACK_GENERATOR "DEB") | ||
|
@@ -323,7 +331,30 @@ if (LINUX AND LINUX_INSTALL_SOFTWARE) | |
set(CPACK_DEBIAN_PACKAGE_ARCHITECTURE "amd64") | ||
set(CPACK_PACKAGE_CONTACT "[email protected]") | ||
SET(CPACK_DEBIAN_PACKAGE_MAINTAINER "Saturneric") | ||
set(CPACK_DEBIAN_PACKAGE_DEPENDS "gpg (>= 2.2), libqt5core5a (>= 5.9), libqt5gui5 (>= 5.9), libqt5widgets5 (>= 5.9), libqt5network5 (>= 5.9), libqt5printsupport5 (>= 5.9), libconfig++9v5 (>=1.5), libarchive13(>= 3.4), openssl(>= 1.1.1), libicu66") | ||
|
||
if (${DISTRO_NAME} MATCHES "Ubuntu") | ||
if (${DISTRO_VERSION_ID} STREQUAL "22.04") | ||
set(CPACK_DEBIAN_PACKAGE_DEPENDS "gpg (>= 2.2), libqt5core5a (>= 5.9), libqt5gui5 (>= 5.9), libqt5widgets5 (>= 5.9), libqt5network5 (>= 5.9), libqt5printsupport5 (>= 5.9), libconfig++9v5 (>=1.5), libarchive13(>= 3.4), openssl(>= 1.1.1), libicu70") | ||
elseif (${DISTRO_VERSION_ID} STREQUAL "20.04") | ||
set(CPACK_DEBIAN_PACKAGE_DEPENDS "gpg (>= 2.2), libqt5core5a (>= 5.9), libqt5gui5 (>= 5.9), libqt5widgets5 (>= 5.9), libqt5network5 (>= 5.9), libqt5printsupport5 (>= 5.9), libconfig++9v5 (>=1.5), libarchive13(>= 3.4), openssl(>= 1.1.1), libicu66") | ||
endif () | ||
endif () | ||
|
||
set(CPACK_PACKAGE_VERSION_MAJOR "${PROJECT_VERSION_MAJOR}") | ||
set(CPACK_PACKAGE_VERSION_MINOR "${PROJECT_VERSION_MINOR}") | ||
set(CPACK_PACKAGE_VERSION_PATCH "${PROJECT_VERSION_PATCH}") | ||
include(CPack) | ||
endif () | ||
if (APP_PACKAGE_RPM) | ||
message(STATUS "Configure Rpm Package") | ||
SET(CPACK_GENERATOR "RPM") | ||
set(CPACK_INSTALL_PREFIX "/usr/local/") | ||
set(CPACK_PACKAGE_NAME "gpgfrontend") | ||
set(CPACK_DEBIAN_PACKAGE_NAME "gpgfrontend") | ||
set(CPACK_DEBIAN_PACKAGE_ARCHITECTURE "amd64") | ||
set(CPACK_PACKAGE_CONTACT "[email protected]") | ||
SET(CPACK_DEBIAN_PACKAGE_MAINTAINER "Saturneric") | ||
|
||
set(CPACK_PACKAGE_VERSION_MAJOR "${PROJECT_VERSION_MAJOR}") | ||
set(CPACK_PACKAGE_VERSION_MINOR "${PROJECT_VERSION_MINOR}") | ||
set(CPACK_PACKAGE_VERSION_PATCH "${PROJECT_VERSION_PATCH}") | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.