2019-04-15 20:00:14 +08:00
include ( vcpkg_common_functions )
string ( LENGTH "${CURRENT_BUILDTREES_DIR}" BUILDTREES_PATH_LENGTH )
if ( BUILDTREES_PATH_LENGTH GREATER 37 AND CMAKE_HOST_WIN32 )
[many ports] improvements for linux/wsl (#6730)
* [many ports] improve compatibility with WSL and mixed case filesystems
* [treehopper] express dependency on libusb, which was not working on non-win32 platforms and is still broken there
* [libharu] add compatibility with non-win32 platforms
* [geogram] fix openblas on linux
[clapack] better integration with linux environment
[visit-struct] put cmake config file in the expected folder
[geogram] remove trailing underscore to enable compatibility with OpenBLAS
* [openblas] playing with underscore, without success
* [openblas/lapack] fix library integration
* [clapack] improve target handling in cmake module
* [openblas] promote self-generated config to default cmake module, otherwise internal ones thinks wrongly that openblas can also solve lapack libs
* [clapack,openblas] improve libraries integration
* [many ports] fix cmake unnecessary target paths, wrong config paths, empty default dependencies, unnecessary [core] tags
* [suitesparse] improve integration with new lapack/openblas mechanism
* [suitesparse] add no underscore postfix also for linux
* [ceres] fix integration with newer openblas/lapack configs
* [aws-c-event-stream] fix regression
* [systemc] fix regression
* [libwebp,geogram] trigger rebuild
* [libwebp,pthread4w] fix regressions
* [glbinding] fix cmake module installation
* [globjects] disentangle unnecessary dependency from qt5
* [jasper] remove broken and unnecessary patches
* [libwebp] fix regression
* [many ports] avoid using BUILD_SHARED_LIBS which is uninitialized in port files
* [clapack] correctly find dlls
* [clapack] use a generic blas as dependency
* [fizz,g2o] restore expected version
* fix mistake
* [many ports] remove WIN32, APPLE and UNIX (again, they keep creeping in) from ports since they are broken and usually break non-win32 ports
* [libressl,openssl] do not try to build one if the other is already installed
* [itk] update ref and patch to avoid regression
* [libressl,openssl] implement full strategy to fix CI
* [libwebp] disable components that are broken on macOS
* [ogre] enable macOS build
* [freeimage,jxrlib,ogre,openexr,protobuf] port patches from #5169
* [ogre] add missing install command
* [ffmpeg] enable wrapper for cmake module
* [ffmpeg] add avresample module finder
* [ffmpeg] improve module detection and exported symbols
* [ffmpeg] add variables to cache
* [thrift] remove unnecessary build option
* [allegro5] fix shared/static inversion
* [protobuf] cleanup
* [libressl] cleanup
* [moos-core] cleanup
* commented features must not be separated from other features, otherwise vcpkg complains
* [itk] fix regression
* [shogun,itk] fix regressions
* [ogre] fix regression
* [opusfile] add compatibility with non-win32
* [itk] fix regression
* [sndfile,libsndfile] remove duplicate, redirect sndfile to libsndfile
* add missing dependencies
* [ismrmrd] fix regression
* [ffmpeg] trigger rebuild
* [clapack,openblas,libogg] fix regressions on macOS
* [libtins] fix regression
* force rebuild windows regressions, unable to reproduce locally
* [mosquitto] enable non-win32 builds
* [json-dto] force rebuild, unable to reproduce regression locally
* [many ports] uniform naming and path length requests
* fix regression
* fix regression
* [ffmpeg] fixes for downstream projects
* clean up - thanks to reviewers
* trigger rebuild of regressions on macOS
* trigger rebuild of regressions on macOS - part2
* Add core back
* Use VCPKG_CONCURRENCY
* Add core back to suitesparse
* Add core back to curl
* Add core back to magnum
* Add core back to magnum
* Add core back to magnum
* Add core back to cgal
2019-06-21 10:11:54 +08:00
message ( WARNING "${PORT}'s buildsystem uses very long paths and may fail on your system.\n"
2019-04-15 20:00:14 +08:00
" W e r e c o m m e n d m o v i n g v c p k g t o a s h o r t p a t h s u c h a s ' C : \ \ s r c \ \ v c p k g ' o r u s i n g t h e s u b s t c o m m a n d . "
)
endif ( )
list ( APPEND CMAKE_MODULE_PATH ${ CMAKE_CURRENT_LIST_DIR } )
include ( configure_qt )
include ( install_qt )
set ( MAJOR_MINOR 5.12 )
2019-05-09 06:15:26 +08:00
set ( FULL_VERSION ${ MAJOR_MINOR } .3 )
2019-04-15 20:00:14 +08:00
set ( ARCHIVE_NAME "qtbase-everywhere-src-${FULL_VERSION}.tar.xz" )
vcpkg_download_distfile ( ARCHIVE_FILE
U R L S " h t t p : / / d o w n l o a d . q t . i o / o f f i c i a l _ r e l e a s e s / q t / $ { M A J O R _ M I N O R } / $ { F U L L _ V E R S I O N } / s u b m o d u l e s / $ { A R C H I V E _ N A M E } "
F I L E N A M E $ { A R C H I V E _ N A M E }
2019-05-09 06:15:26 +08:00
S H A 5 1 2 1 d a b 9 2 7 5 7 3 e b 2 2 b 1 a e 7 7 2 d e 3 a 4 1 8 f 7 d 3 9 9 9 e a 7 8 d 6 e 6 6 7 a 7 f 2 4 9 4 3 9 0 d d 1 f 0 9 8 1 e a 9 3 f 4 f 8 9 2 c b 6 e 1 2 4 a c 1 8 8 1 2 c 7 8 0 e e 7 1 d a 3 0 2 1 b 4 8 5 c 6 1 e a f 1 e f 2 2 3 4 a 5 c 1 2 b 7 f e 2
2019-04-15 20:00:14 +08:00
)
vcpkg_extract_source_archive_ex (
O U T _ S O U R C E _ P A T H S O U R C E _ P A T H
A R C H I V E " $ { A R C H I V E _ F I L E } "
R E F $ { F U L L _ V E R S I O N }
)
# Remove vendored dependencies to ensure they are not picked up by the build
foreach ( DEPENDENCY freetype zlib harfbuzzng libjpeg libpng double-conversion sqlite )
if ( EXISTS ${ SOURCE_PATH } /src/3rdparty/ ${ DEPENDENCY } )
file ( REMOVE_RECURSE ${ SOURCE_PATH } /src/3rdparty/ ${ DEPENDENCY } )
endif ( )
endforeach ( )
file ( REMOVE_RECURSE ${ SOURCE_PATH } /include/QtZlib )
# This fixes issues on machines with default codepages that are not ASCII compatible, such as some CJK encodings
set ( ENV{_CL_} "/utf-8" )
set ( CORE_OPTIONS
- c o n f i r m - l i c e n s e
- o p e n s o u r c e
- s y s t e m - z l i b
- s y s t e m - l i b j p e g
- s y s t e m - l i b p n g
- s y s t e m - f r e e t y p e
- s y s t e m - p c r e
- s y s t e m - d o u b l e c o n v e r s i o n
- s y s t e m - s q l i t e
- s y s t e m - h a r f b u z z
- n o - f o n t c o n f i g
- n o m a k e e x a m p l e s
- n o m a k e t e s t s
)
if ( VCPKG_LIBRARY_LINKAGE STREQUAL "static" )
list ( APPEND CORE_OPTIONS
- s t a t i c
)
endif ( )
if ( NOT VCPKG_CMAKE_SYSTEM_NAME OR VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore" )
set ( PLATFORM "win32-msvc" )
configure_qt (
S O U R C E _ P A T H $ { S O U R C E _ P A T H }
P L A T F O R M $ { P L A T F O R M }
O P T I O N S
$ { C O R E _ O P T I O N S }
- m p
2019-05-23 06:54:53 +08:00
- o p e n g l d y n a m i c # other options are "-no-opengl", "-opengl angle", and "-opengl desktop"
2019-04-15 20:00:14 +08:00
O P T I O N S _ R E L E A S E
L I B J P E G _ L I B S = " - l j p e g "
Z L I B _ L I B S = " - l z l i b "
L I B P N G _ L I B S = " - l l i b p n g 1 6 "
P S Q L _ L I B S = " - l l i b p q "
P C R E 2 _ L I B S = " - l p c r e 2 - 1 6 "
F R E E T Y P E _ L I B S = " - l f r e e t y p e "
O P T I O N S _ D E B U G
L I B J P E G _ L I B S = " - l j p e g d "
Z L I B _ L I B S = " - l z l i b d "
L I B P N G _ L I B S = " - l l i b p n g 1 6 d "
P S Q L _ L I B S = " - l l i b p q d "
P C R E 2 _ L I B S = " - l p c r e 2 - 1 6 d "
F R E E T Y P E _ L I B S = " - l f r e e t y p e d "
)
elseif ( VCPKG_CMAKE_SYSTEM_NAME STREQUAL "Linux" )
2019-07-18 01:45:26 +08:00
if ( NOT EXISTS "/usr/include/GL/glu.h" )
message ( FATAL_ERROR "qt5 requires libgl1-mesa-dev and libglu1-mesa-dev, please use your distribution's package manager to install them.\nExample: \" apt-get install libgl1-mesa-dev\ " and \" apt-get install libglu1-mesa-dev\ "" )
endif ( )
2019-04-15 20:00:14 +08:00
configure_qt (
S O U R C E _ P A T H $ { S O U R C E _ P A T H }
P L A T F O R M " l i n u x - g + + "
O P T I O N S
$ { C O R E _ O P T I O N S }
O P T I O N S _ R E L E A S E
" L I B J P E G _ L I B S = $ { C U R R E N T _ I N S T A L L E D _ D I R } / l i b / l i b j p e g . a "
" Q M A K E _ L I B S _ P R I V A T E + = $ { C U R R E N T _ I N S T A L L E D _ D I R } / l i b / l i b p n g 1 6 . a "
" Q M A K E _ L I B S _ P R I V A T E + = $ { C U R R E N T _ I N S T A L L E D _ D I R } / l i b / l i b z . a "
" Z L I B _ L I B S = $ { C U R R E N T _ I N S T A L L E D _ D I R } / l i b / l i b z . a "
" L I B P N G _ L I B S = $ { C U R R E N T _ I N S T A L L E D _ D I R } / l i b / l i b p n g 1 6 . a "
" F R E E T Y P E _ L I B S = $ { C U R R E N T _ I N S T A L L E D _ D I R } / l i b / l i b f r e e t y p e . a "
" P S Q L _ L I B S = $ { C U R R E N T _ I N S T A L L E D _ D I R } / l i b / l i b p q . a $ { C U R R E N T _ I N S T A L L E D _ D I R } / l i b / l i b s s l . a $ { C U R R E N T _ I N S T A L L E D _ D I R } / l i b / l i b c r y p t o . a - l d l - l p t h r e a d "
" S Q L I T E _ L I B S = $ { C U R R E N T _ I N S T A L L E D _ D I R } / l i b / l i b s q l i t e 3 . a - l d l - l p t h r e a d "
O P T I O N S _ D E B U G
" L I B J P E G _ L I B S = $ { C U R R E N T _ I N S T A L L E D _ D I R } / d e b u g / l i b / l i b j p e g . a "
" Q M A K E _ L I B S _ P R I V A T E + = $ { C U R R E N T _ I N S T A L L E D _ D I R } / d e b u g / l i b / l i b p n g 1 6 d . a "
" Q M A K E _ L I B S _ P R I V A T E + = $ { C U R R E N T _ I N S T A L L E D _ D I R } / d e b u g / l i b / l i b z . a "
" Z L I B _ L I B S = $ { C U R R E N T _ I N S T A L L E D _ D I R } / d e b u g / l i b / l i b z . a "
" L I B P N G _ L I B S = $ { C U R R E N T _ I N S T A L L E D _ D I R } / d e b u g / l i b / l i b p n g 1 6 d . a "
" F R E E T Y P E _ L I B S = $ { C U R R E N T _ I N S T A L L E D _ D I R } / d e b u g / l i b / l i b f r e e t y p e d . a "
" P S Q L _ L I B S = $ { C U R R E N T _ I N S T A L L E D _ D I R } / d e b u g / l i b / l i b p q d . a $ { C U R R E N T _ I N S T A L L E D _ D I R } / d e b u g / l i b / l i b s s l . a $ { C U R R E N T _ I N S T A L L E D _ D I R } / d e b u g / l i b / l i b c r y p t o . a - l d l - l p t h r e a d "
" S Q L I T E _ L I B S = $ { C U R R E N T _ I N S T A L L E D _ D I R } / d e b u g / l i b / l i b s q l i t e 3 . a - l d l - l p t h r e a d "
)
elseif ( VCPKG_CMAKE_SYSTEM_NAME STREQUAL "Darwin" )
configure_qt (
S O U R C E _ P A T H $ { S O U R C E _ P A T H }
P L A T F O R M " m a c x - c l a n g "
O P T I O N S
$ { C O R E _ O P T I O N S }
O P T I O N S _ R E L E A S E
" L I B J P E G _ L I B S = $ { C U R R E N T _ I N S T A L L E D _ D I R } / l i b / l i b j p e g . a "
" Q M A K E _ L I B S _ P R I V A T E + = $ { C U R R E N T _ I N S T A L L E D _ D I R } / l i b / l i b p n g 1 6 . a "
" Q M A K E _ L I B S _ P R I V A T E + = $ { C U R R E N T _ I N S T A L L E D _ D I R } / l i b / l i b z . a "
" Z L I B _ L I B S = $ { C U R R E N T _ I N S T A L L E D _ D I R } / l i b / l i b z . a "
" L I B P N G _ L I B S = $ { C U R R E N T _ I N S T A L L E D _ D I R } / l i b / l i b p n g 1 6 . a "
" F R E E T Y P E _ L I B S = $ { C U R R E N T _ I N S T A L L E D _ D I R } / l i b / l i b f r e e t y p e . a "
" P S Q L _ L I B S = $ { C U R R E N T _ I N S T A L L E D _ D I R } / l i b / l i b p q . a $ { C U R R E N T _ I N S T A L L E D _ D I R } / l i b / l i b s s l . a $ { C U R R E N T _ I N S T A L L E D _ D I R } / l i b / l i b c r y p t o . a - l d l - l p t h r e a d "
" S Q L I T E _ L I B S = $ { C U R R E N T _ I N S T A L L E D _ D I R } / l i b / l i b s q l i t e 3 . a - l d l - l p t h r e a d "
" H A R F B U Z Z _ L I B S = $ { C U R R E N T _ I N S T A L L E D _ D I R } / l i b / l i b h a r f b u z z . a - f r a m e w o r k A p p l i c a t i o n S e r v i c e s "
O P T I O N S _ D E B U G
" L I B J P E G _ L I B S = $ { C U R R E N T _ I N S T A L L E D _ D I R } / d e b u g / l i b / l i b j p e g . a "
" Q M A K E _ L I B S _ P R I V A T E + = $ { C U R R E N T _ I N S T A L L E D _ D I R } / d e b u g / l i b / l i b p n g 1 6 d . a "
" Q M A K E _ L I B S _ P R I V A T E + = $ { C U R R E N T _ I N S T A L L E D _ D I R } / d e b u g / l i b / l i b z . a "
" Z L I B _ L I B S = $ { C U R R E N T _ I N S T A L L E D _ D I R } / d e b u g / l i b / l i b z . a "
" L I B P N G _ L I B S = $ { C U R R E N T _ I N S T A L L E D _ D I R } / d e b u g / l i b / l i b p n g 1 6 d . a "
" F R E E T Y P E _ L I B S = $ { C U R R E N T _ I N S T A L L E D _ D I R } / d e b u g / l i b / l i b f r e e t y p e d . a "
" P S Q L _ L I B S = $ { C U R R E N T _ I N S T A L L E D _ D I R } / d e b u g / l i b / l i b p q d . a $ { C U R R E N T _ I N S T A L L E D _ D I R } / d e b u g / l i b / l i b s s l . a $ { C U R R E N T _ I N S T A L L E D _ D I R } / d e b u g / l i b / l i b c r y p t o . a - l d l - l p t h r e a d "
" S Q L I T E _ L I B S = $ { C U R R E N T _ I N S T A L L E D _ D I R } / d e b u g / l i b / l i b s q l i t e 3 . a - l d l - l p t h r e a d "
" H A R F B U Z Z _ L I B S = $ { C U R R E N T _ I N S T A L L E D _ D I R } / d e b u g / l i b / l i b h a r f b u z z . a - f r a m e w o r k A p p l i c a t i o n S e r v i c e s "
)
endif ( )
if ( VCPKG_CMAKE_SYSTEM_NAME STREQUAL "Darwin" )
install_qt ( DISABLE_PARALLEL ) # prevent race condition on Mac
else ( )
install_qt ( )
endif ( )
file ( RENAME ${ CURRENT_PACKAGES_DIR } /lib/cmake ${ CURRENT_PACKAGES_DIR } /share/cmake )
file ( REMOVE_RECURSE ${ CURRENT_PACKAGES_DIR } /debug/lib/cmake )
2019-04-26 05:30:39 +08:00
if ( NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "release" )
file ( GLOB BINARY_TOOLS "${CURRENT_PACKAGES_DIR}/bin/*" )
list ( FILTER BINARY_TOOLS EXCLUDE REGEX "\\.dll\$" )
2019-06-26 02:02:43 +08:00
file ( INSTALL ${ BINARY_TOOLS }
P E R M I S S I O N S O W N E R _ R E A D O W N E R _ W R I T E O W N E R _ E X E C U T E
D E S T I N A T I O N $ { C U R R E N T _ P A C K A G E S _ D I R } / t o o l s / q t 5 )
2019-04-26 05:30:39 +08:00
file ( REMOVE ${ BINARY_TOOLS } )
2019-05-01 00:29:41 +08:00
file ( COPY ${ CMAKE_CURRENT_LIST_DIR } /qt_release.conf DESTINATION ${ CURRENT_PACKAGES_DIR } /tools/qt5 )
2019-04-15 20:00:14 +08:00
endif ( )
2019-04-26 05:30:39 +08:00
if ( NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug" )
file ( GLOB BINARY_TOOLS "${CURRENT_PACKAGES_DIR}/debug/bin/*" )
list ( FILTER BINARY_TOOLS EXCLUDE REGEX "\\.dll\$" )
file ( REMOVE ${ BINARY_TOOLS } )
if ( VCPKG_LIBRARY_LINKAGE STREQUAL "static" )
file ( REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin" )
endif ( )
2019-04-15 20:00:14 +08:00
2019-05-01 00:29:41 +08:00
file ( COPY ${ CMAKE_CURRENT_LIST_DIR } /qt_debug.conf DESTINATION ${ CURRENT_PACKAGES_DIR } /tools/qt5 )
2019-04-26 05:30:39 +08:00
endif ( )
2019-04-15 20:00:14 +08:00
2019-05-09 06:15:26 +08:00
vcpkg_execute_required_process (
2019-04-15 20:00:14 +08:00
C O M M A N D $ { P Y T H O N 3 } $ { C M A K E _ C U R R E N T _ L I S T _ D I R } / f i x c m a k e . p y
W O R K I N G _ D I R E C T O R Y $ { C U R R E N T _ P A C K A G E S _ D I R } / s h a r e / c m a k e
L O G N A M E f i x - c m a k e
)
vcpkg_copy_tool_dependencies ( ${ CURRENT_PACKAGES_DIR } /tools/ ${ PORT } )
vcpkg_copy_tool_dependencies ( ${ CURRENT_PACKAGES_DIR } /tools/qt5 )
if ( EXISTS ${ CURRENT_PACKAGES_DIR } /lib/qtmain.lib )
#---------------------------------------------------------------------------
# qtmain(d) vs. Qt5AxServer(d)
#---------------------------------------------------------------------------
# Qt applications have to either link to qtmain(d) or to Qt5AxServer(d),
# never both. See http://doc.qt.io/qt-5/activeqt-server.html for more info.
#
# Create manual-link folders:
2019-04-26 05:30:39 +08:00
if ( NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "release" )
file ( MAKE_DIRECTORY ${ CURRENT_PACKAGES_DIR } /lib/manual-link )
endif ( )
if ( NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug" )
file ( MAKE_DIRECTORY ${ CURRENT_PACKAGES_DIR } /debug/lib/manual-link )
endif ( )
2019-04-15 20:00:14 +08:00
#
# Either have users explicitly link against qtmain.lib, qtmaind.lib:
2019-04-26 05:30:39 +08:00
if ( NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "release" )
file ( COPY ${ CURRENT_PACKAGES_DIR } /lib/qtmain.lib DESTINATION ${ CURRENT_PACKAGES_DIR } /lib/manual-link )
file ( COPY ${ CURRENT_PACKAGES_DIR } /lib/qtmain.prl DESTINATION ${ CURRENT_PACKAGES_DIR } /lib/manual-link )
file ( REMOVE ${ CURRENT_PACKAGES_DIR } /lib/qtmain.lib )
file ( REMOVE ${ CURRENT_PACKAGES_DIR } /lib/qtmain.prl )
endif ( )
if ( NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug" )
file ( COPY ${ CURRENT_PACKAGES_DIR } /debug/lib/qtmaind.lib DESTINATION ${ CURRENT_PACKAGES_DIR } /debug/lib/manual-link )
file ( COPY ${ CURRENT_PACKAGES_DIR } /debug/lib/qtmaind.prl DESTINATION ${ CURRENT_PACKAGES_DIR } /debug/lib/manual-link )
file ( REMOVE ${ CURRENT_PACKAGES_DIR } /debug/lib/qtmaind.lib )
file ( REMOVE ${ CURRENT_PACKAGES_DIR } /debug/lib/qtmaind.prl )
endif ( )
2019-04-15 20:00:14 +08:00
#---------------------------------------------------------------------------
# Qt5Bootstrap: only used to bootstrap qmake dependencies
#---------------------------------------------------------------------------
2019-04-26 05:30:39 +08:00
if ( NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug" )
file ( REMOVE ${ CURRENT_PACKAGES_DIR } /debug/lib/Qt5Bootstrap.lib )
file ( REMOVE ${ CURRENT_PACKAGES_DIR } /debug/lib/Qt5Bootstrap.prl )
endif ( )
if ( NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "release" )
file ( RENAME ${ CURRENT_PACKAGES_DIR } /lib/Qt5Bootstrap.lib ${ CURRENT_PACKAGES_DIR } /tools/qt5/Qt5Bootstrap.lib )
file ( RENAME ${ CURRENT_PACKAGES_DIR } /lib/Qt5Bootstrap.prl ${ CURRENT_PACKAGES_DIR } /tools/qt5/Qt5Bootstrap.prl )
endif ( )
2019-04-15 20:00:14 +08:00
#---------------------------------------------------------------------------
endif ( )
file ( GLOB_RECURSE PRL_FILES "${CURRENT_PACKAGES_DIR}/lib/*.prl" "${CURRENT_PACKAGES_DIR}/debug/lib/*.prl" )
2019-04-26 05:30:39 +08:00
if ( NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "release" )
file ( TO_CMAKE_PATH "${CURRENT_INSTALLED_DIR}/lib" CMAKE_RELEASE_LIB_PATH )
endif ( )
if ( NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug" )
file ( TO_CMAKE_PATH "${CURRENT_INSTALLED_DIR}/debug/lib" CMAKE_DEBUG_LIB_PATH )
endif ( )
2019-04-15 20:00:14 +08:00
foreach ( PRL_FILE IN LISTS PRL_FILES )
file ( READ "${PRL_FILE}" _contents )
2019-04-26 05:30:39 +08:00
if ( NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "release" )
string ( REPLACE "${CMAKE_RELEASE_LIB_PATH}" "\$\$[QT_INSTALL_LIBS]" _contents "${_contents}" )
endif ( )
if ( NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug" )
string ( REPLACE "${CMAKE_DEBUG_LIB_PATH}" "\$\$[QT_INSTALL_LIBS]" _contents "${_contents}" )
endif ( )
2019-04-15 20:00:14 +08:00
file ( WRITE "${PRL_FILE}" "${_contents}" )
endforeach ( )
2019-04-26 05:30:39 +08:00
if ( NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "release" )
file ( COPY ${ CMAKE_CURRENT_LIST_DIR } /qtdeploy.ps1 DESTINATION ${ CURRENT_PACKAGES_DIR } /plugins )
endif ( )
if ( NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug" )
file ( COPY ${ CMAKE_CURRENT_LIST_DIR } /qtdeploy.ps1 DESTINATION ${ CURRENT_PACKAGES_DIR } /debug/plugins )
endif ( )
2019-04-15 20:00:14 +08:00
file ( COPY ${ CMAKE_CURRENT_LIST_DIR } /vcpkg-cmake-wrapper.cmake DESTINATION ${ CURRENT_PACKAGES_DIR } /share/qt5core )
file ( INSTALL ${ SOURCE_PATH } /LICENSE.LGPLv3 DESTINATION ${ CURRENT_PACKAGES_DIR } /share/ ${ PORT } RENAME copyright )
2019-05-09 06:15:26 +08:00
#