mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-02 23:49:01 +08:00
941d546454
* [qt5-imageformats] freeglut is not a dependency on osx * [qt5-base] fontconfig can require iconv on linux and osx * include the jasper fix to get CI coverage? * trying to get ci coverage for qt on osx * Revert "trying to get ci coverage for qt on osx" This reverts commit8b9b188839
. * apply the correct ci hack * fix wrapper to include macosx debug suffix * update baseline * first try to fix the Qt5 cmake configs at the root. * fix missing backslash * fix plugin patch * fix qt config patch * remove 90% of fixcmake.py * update baseline * experimental removal of fixcmake.py and dll copying into tools/qt5/bin * fix experimental dll copying. * fix static windows builds * fix static builds * fix plugin copy * add quotes around configuration to make it work * remove dll debug messages * note about the cmake fix * revert fontconfig changes on linux. Make qt.conf relative and not absolute * make qt.conf relative * trying to fix ogre osx ci regression * fix silly path error * Revert "trying to fix ogre osx ci regression" This reverts commit708d8250d6
. * add ogre:x64-osx=fail to CI baseline * retry on osx * fix configure error. since in qt5-base everything is in the package directory and not in the installed * revert change to ci.baseline * update ci baseline * bump control * update baseline * ws change to osg-qt * reset ci baseline to upstream/master * update baseline * fix osg-qt? * skip ms-angle on osx and linux since the normal angle port should be used! * update ci baseline * try adding fontconfig manually * update ci baseline to remove osg-qt for the time being * remove manual library.
80 lines
3.3 KiB
CMake
80 lines
3.3 KiB
CMake
_find_package(${ARGS})
|
|
|
|
function(add_qt_library _target)
|
|
foreach(_lib IN LISTS ARGN)
|
|
#The fact that we are within this file means we are using the VCPKG toolchain. Has such we only need to search in VCPKG paths!
|
|
find_library(${_lib}_LIBRARY_DEBUG NAMES ${_lib}_debug ${_lib}d ${_lib} NAMES_PER_DIR PATH_SUFFIXES lib plugins/platforms PATHS "${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/debug" NO_DEFAULT_PATH)
|
|
find_library(${_lib}_LIBRARY_RELEASE NAMES ${_lib} NAMES_PER_DIR PATH_SUFFIXES lib plugins/platforms PATHS "${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}" NO_DEFAULT_PATH)
|
|
if(${_lib}_LIBRARY_RELEASE)
|
|
list(APPEND interface_lib \$<\$<NOT:\$<CONFIG:DEBUG>>:${${_lib}_LIBRARY_RELEASE}>)
|
|
endif()
|
|
if(${_lib}_LIBRARY_DEBUG)
|
|
list(APPEND interface_lib \$<\$<CONFIG:DEBUG>:${${_lib}_LIBRARY_DEBUG}>)
|
|
endif()
|
|
set_property(TARGET ${_target} APPEND PROPERTY INTERFACE_LINK_LIBRARIES ${interface_lib})
|
|
endforeach()
|
|
endfunction()
|
|
|
|
get_target_property(_target_type Qt5::Core TYPE)
|
|
if("${_target_type}" STREQUAL "STATIC_LIBRARY")
|
|
find_package(ZLIB)
|
|
find_package(JPEG)
|
|
find_package(PNG)
|
|
find_package(Freetype)
|
|
find_package(sqlite3 CONFIG)
|
|
find_package(PostgreSQL MODULE REQUIRED)
|
|
find_package(double-conversion CONFIG)
|
|
find_package(OpenSSL)
|
|
find_package(harfbuzz CONFIG)
|
|
|
|
set_property(TARGET Qt5::Core APPEND PROPERTY INTERFACE_LINK_LIBRARIES
|
|
ZLIB::ZLIB JPEG::JPEG PNG::PNG Freetype::Freetype sqlite3 harfbuzz::harfbuzz
|
|
double-conversion::double-conversion OpenSSL::SSL OpenSSL::Crypto PostgreSQL::PostgreSQL
|
|
)
|
|
|
|
add_qt_library(Qt5::Core
|
|
pcre2-16
|
|
icuin icui18n
|
|
icutu icuuc icuio
|
|
icudt icudata
|
|
Qt5ThemeSupport
|
|
Qt5EventDispatcherSupport
|
|
Qt5PlatformCompositorSupport
|
|
Qt5FontDatabaseSupport)
|
|
|
|
if(MSVC)
|
|
set_property(TARGET Qt5::Core APPEND PROPERTY INTERFACE_LINK_LIBRARIES
|
|
Netapi32.lib Ws2_32.lib Mincore.lib Winmm.lib Iphlpapi.lib Wtsapi32.lib Dwmapi.lib Imm32.lib)
|
|
|
|
add_qt_library(Qt5::Core Qt5WindowsUIAutomationSupport qwindows qdirect2d)
|
|
elseif(UNIX AND NOT APPLE)
|
|
add_qt_library(Qt5::Core
|
|
Qt5GraphicsSupport
|
|
Qt5ClipboardSupport
|
|
Qt5AccessibilitySupport)
|
|
elseif(APPLE)
|
|
set_property(TARGET Qt5::Core APPEND PROPERTY INTERFACE_LINK_LIBRARIES
|
|
"-weak_framework DiskArbitration" "-weak_framework IOKit" "-weak_framework Foundation" "-weak_framework CoreServices"
|
|
"-weak_framework AppKit" "-weak_framework Security" "-weak_framework ApplicationServices"
|
|
"-weak_framework CoreFoundation" "-weak_framework SystemConfiguration"
|
|
"-weak_framework Carbon"
|
|
"-weak_framework QuartzCore"
|
|
"-weak_framework CoreVideo"
|
|
"-weak_framework Metal"
|
|
"-weak_framework CoreText"
|
|
"-weak_framework ApplicationServices"
|
|
"-weak_framework CoreGraphics"
|
|
"-weak_framework OpenGL"
|
|
"-weak_framework AGL"
|
|
"-weak_framework ImageIO"
|
|
"z" "m"
|
|
cups)
|
|
add_qt_library(Qt5::Core
|
|
Qt5GraphicsSupport
|
|
Qt5ClipboardSupport
|
|
Qt5AccessibilitySupport
|
|
qcocoa)
|
|
endif()
|
|
|
|
endif()
|