1
0
Fork 0

Build OS X 10.10-10.11 version with Qt 5.6.2.

This commit is contained in:
John Preston 2019-11-29 15:09:00 +03:00
parent b28ca5aca2
commit 3931463c76
4 changed files with 41 additions and 7 deletions

View file

@ -7,10 +7,17 @@
add_library(external_openssl INTERFACE IMPORTED GLOBAL) add_library(external_openssl INTERFACE IMPORTED GLOBAL)
add_library(desktop-app::external_openssl ALIAS external_openssl) add_library(desktop-app::external_openssl ALIAS external_openssl)
target_include_directories(external_openssl SYSTEM if (NOT APPLE OR NOT build_osx)
INTERFACE target_include_directories(external_openssl SYSTEM
${libs_loc}/openssl_1_1_1/include INTERFACE
) ${libs_loc}/openssl_1_1_1/include
)
else()
target_include_directories(external_openssl SYSTEM
INTERFACE
${libs_loc}/openssl/include
)
endif()
if (WIN32) if (WIN32)
set(openssl_lib_ext lib) set(openssl_lib_ext lib)
@ -18,7 +25,11 @@ if (WIN32)
else() else()
set(openssl_lib_ext a) set(openssl_lib_ext a)
if (APPLE) if (APPLE)
set(openssl_lib_loc ${libs_loc}/openssl_1_1_1) if (NOT build_osx)
set(openssl_lib_loc ${libs_loc}/openssl_1_1_1)
else()
set(openssl_lib_loc ${libs_loc}/openssl)
endif()
endif() endif()
endif() endif()

View file

@ -89,6 +89,20 @@ elseif (APPLE)
plugins/bearer/${qt_lib_prefix}qgenericbearer plugins/bearer/${qt_lib_prefix}qgenericbearer
) )
else() else()
set(qt_libs
lib/${qt_lib_prefix}Qt5PrintSupport
lib/${qt_lib_prefix}Qt5PlatformSupport
lib/${qt_lib_prefix}Qt5Network
lib/${qt_lib_prefix}Qt5Widgets
lib/${qt_lib_prefix}Qt5Gui
lib/${qt_lib_prefix}Qt5Core
lib/${qt_lib_prefix}qtharfbuzzng
lib/${qt_lib_prefix}qtfreetype
lib/${qt_lib_prefix}qtpcre
plugins/platforms/${qt_lib_prefix}qcocoa
plugins/imageformats/${qt_lib_prefix}qwebp
plugins/bearer/${qt_lib_prefix}qgenericbearer
)
endif() endif()
foreach (lib ${qt_libs}) foreach (lib ${qt_libs})
list(APPEND qt_libs_list "${qt_loc}/${lib}${qt_lib_suffix}") list(APPEND qt_libs_list "${qt_loc}/${lib}${qt_lib_suffix}")

View file

@ -4,7 +4,11 @@
# For license and copyright information please follow this link: # For license and copyright information please follow this link:
# https://github.com/desktop-app/legal/blob/master/LEGAL # https://github.com/desktop-app/legal/blob/master/LEGAL
set(qt_version 5.12.5) if (NOT APPLE OR NOT build_osx)
set(qt_version 5.12.5)
else()
set(qt_version 5.6.2)
endif()
if (WIN32) if (WIN32)
set(qt_loc ${libs_loc}/Qt-${qt_version}) set(qt_loc ${libs_loc}/Qt-${qt_version})

View file

@ -19,7 +19,12 @@ if (DESKTOP_APP_SPECIAL_TARGET STREQUAL ""
set(disable_autoupdate 1) set(disable_autoupdate 1)
endif() endif()
set(CMAKE_OSX_DEPLOYMENT_TARGET 10.12 CACHE STRING "Minimum OS X deployment version" FORCE) if (NOT DESKTOP_APP_SPECIAL_TARGET STREQUAL "osx")
set(CMAKE_OSX_DEPLOYMENT_TARGET 10.12 CACHE STRING "Minimum OS X deployment version" FORCE)
else()
set(DESKTOP_APP_DISABLE_SPELLCHECK ON)
set(CMAKE_OSX_DEPLOYMENT_TARGET 10.10 CACHE STRING "Minimum OS X deployment version" FORCE)
endif()
set(build_osx 0) set(build_osx 0)
set(build_macstore 0) set(build_macstore 0)