You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[vcpkg baseline][qt5-base] Fix glib link issues on linux (#16954)
* [qt5-base] fix glib link issues on linux
* add version
* remove unused vars
* update version
* write port info file.
* version stuff
* remove paraview from baseline. It was added due to the same spurious glib failures.
* trying out a different approach
* more changes
* change the if to actually use the buildtype instead
* remove x_vcpkg_get_port_info
* add option QT_OPENSSL_LINK back in
* use INCLUDE_DIRS_(DEBUG|RELEASE) instead of just INCLUDE_DIRS
* regen docs
* remove function call I forgot to remove
* [vcpkg-pkgconfig-get-modules] Move to port
* revert changes to ports.cmake
* include the file in qt5-base
* fix path
* remove unnecessary include
* Apply suggestions from code review
Co-authored-by: nicole mazzuca <[email protected]>
* Apply suggestions from code review
* update version
* ws removal
* version stuff
Co-authored-by: Robert Schumacher <[email protected]>
Co-authored-by: nicole mazzuca <[email protected]>
The latest version of this document lives in the [vcpkg repo](https://github.com/Microsoft/vcpkg/blob/master/docs/maintainers/ports/vcpkg-pkgconfig-get-modules/x_vcpkg_pkgconfig_get_modules.md).
4
+
5
+
Experimental
6
+
Retrieve required module information from pkgconfig modules
7
+
8
+
## Usage
9
+
```cmake
10
+
x_vcpkg_pkgconfig_get_modules(
11
+
PREFIX <prefix>
12
+
MODULES <pkgconfig_modules>...
13
+
[LIBS]
14
+
[LIBRARIES]
15
+
[LIBRARIES_DIRS]
16
+
[INCLUDE_DIRS]
17
+
)
18
+
```
19
+
## Parameters
20
+
21
+
### PREFIX
22
+
Used variable prefix to use
23
+
24
+
### MODULES
25
+
List of pkgconfig modules to retrieve information for.
26
+
27
+
### LIBS
28
+
Returns `"${PKGCONFIG}" --libs` in <prefix>_LIBS_(DEBUG|RELEASE)
29
+
30
+
### LIBRARIES
31
+
Returns `"${PKGCONFIG}" --libs-only-l` in <prefix>_LIBRARIES_(DEBUG|RELEASE)
32
+
33
+
### LIBRARIES_DIRS
34
+
Returns `"${PKGCONFIG}" --libs-only-L` in <prefix>_LIBRARIES_DIRS_(DEBUG|RELEASE)
35
+
36
+
### INCLUDE_DIRS
37
+
Returns `"${PKGCONFIG}" --cflags-only-I` in <prefix>_INCLUDE_DIRS_(DEBUG|RELEASE)
set(CURRENT_INSTALLED_DIR "./../../.." ) # Making the qt.conf relative and not absolute
84
85
configure_file(${CURRENT_INSTALLED_DIR_BACKUP}/tools/qt5/qt_release.conf ${CURRENT_PACKAGES_DIR}/tools/${PORT}/bin/qt.conf) # This makes the tools at least useable for release
set(CURRENT_INSTALLED_DIR "./../../../.." ) # Making the qt.conf relative and not absolute
107
108
configure_file(${CURRENT_INSTALLED_DIR_BACKUP}/tools/qt5/qt_debug.conf ${CURRENT_PACKAGES_DIR}/tools/${PORT}/debug/bin/qt.conf) # This makes the tools at least useable for release
message(WARNING "${PORT} is currently not setup to support feature 'mysqlplugin' on platforms other than windows. Feel free to open up a PR to fix it!")
51
51
endif()
52
52
53
53
include(qt_port_functions)
@@ -121,31 +121,33 @@ list(APPEND CORE_OPTIONS
121
121
-system-zlib
122
122
-system-libjpeg
123
123
-system-libpng
124
-
-system-freetype# static builds require to also link its dependent bzip!
124
+
-system-freetype
125
125
-system-pcre
126
126
-system-doubleconversion
127
127
-system-sqlite
128
128
-system-harfbuzz
129
129
-icu
130
130
-no-vulkan
131
-
-no-angle) # Qt does not need to build angle. VCPKG will build angle!
131
+
-no-angle # Qt does not need to build angle. VCPKG will build angle!
132
+
-no-glib
133
+
)
132
134
133
135
if(QT_OPENSSL_LINK)
134
136
list(APPEND CORE_OPTIONS -openssl-linked)
135
137
endif()
136
138
137
-
if(WITH_PGSQL)
139
+
if(WITH_PGSQL_PLUGIN)
138
140
list(APPEND CORE_OPTIONS -sql-psql)
139
141
else()
140
142
list(APPEND CORE_OPTIONS -no-sql-psql)
141
143
endif()
142
-
143
-
if(VCPKG_TARGET_IS_WINDOWS)
144
-
if(QT_MYSQL_PLUGIN)
145
-
list(APPEND CORE_OPTIONS -sql-mysql)
146
-
endif()
144
+
if(WITH_MYSQL_PLUGIN)
145
+
list(APPEND CORE_OPTIONS -sql-mysql)
146
+
else()
147
+
list(APPEND CORE_OPTIONS -no-sql-mysql)
147
148
endif()
148
149
150
+
149
151
find_library(ZLIB_RELEASE NAMES z zlib PATHS"${CURRENT_INSTALLED_DIR}/lib" NO_DEFAULT_PATH)
150
152
find_library(ZLIB_DEBUG NAMES z zlib zd zlibd PATHS"${CURRENT_INSTALLED_DIR}/debug/lib" NO_DEFAULT_PATH)
0 commit comments