mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-25 18:37:52 +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.
21 lines
1.1 KiB
CMake
21 lines
1.1 KiB
CMake
function(qt_fix_cmake PACKAGE_DIR_TO_FIX PORT_TO_FIX)
|
|
|
|
file(GLOB_RECURSE cmakefiles ${PACKAGE_DIR_TO_FIX}/share/cmake/*.cmake ${PACKAGE_DIR_TO_FIX}/lib/cmake/*.cmake)
|
|
foreach(cmakefile ${cmakefiles})
|
|
file(READ "${cmakefile}" _contents)
|
|
if(_contents MATCHES "_install_prefix}/tools/qt5/bin/([a-z0-9]+)") # there are only about 3 to 5 cmake files which require the fix in ports: qt5-tools qt5-xmlpattern at5-activeqt qt5-quick
|
|
string(REGEX REPLACE "_install_prefix}/tools/qt5/bin/([a-z0-9]+)" "_install_prefix}/tools/${PORT_TO_FIX}/bin/\\1" _contents "${_contents}")
|
|
file(WRITE "${cmakefile}" "${_contents}")
|
|
endif()
|
|
endforeach()
|
|
|
|
#Install cmake files
|
|
if(EXISTS ${PACKAGE_DIR_TO_FIX}/lib/cmake)
|
|
file(MAKE_DIRECTORY ${PACKAGE_DIR_TO_FIX}/share)
|
|
file(RENAME ${PACKAGE_DIR_TO_FIX}/lib/cmake ${PACKAGE_DIR_TO_FIX}/share/cmake)
|
|
endif()
|
|
#Remove extra cmake files
|
|
if(EXISTS ${PACKAGE_DIR_TO_FIX}/debug/lib/cmake)
|
|
file(REMOVE_RECURSE ${PACKAGE_DIR_TO_FIX}/debug/lib/cmake)
|
|
endif()
|
|
endfunction() |