Skip to content

Commit

Permalink
configure: convert xlib to a proper library definition
Browse files Browse the repository at this point in the history
Change-Id: I1623aee9e8632e4bfd466e09e275cc23f94c6dab
Reviewed-by: Gatis Paeglis <gatis.paeglis@qt.io>
  • Loading branch information
ossilator committed Dec 7, 2018
1 parent b6737b7 commit 118b456
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 17 deletions.
1 change: 0 additions & 1 deletion config.tests/x11/xrender/xrender.pro
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
SOURCES = xrender.cpp
CONFIG += x11
CONFIG -= qt
30 changes: 16 additions & 14 deletions src/gui/configure.json
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,19 @@
{ "type": "pkgConfig", "args": "wayland-server" }
]
},
"xlib": {
"label": "XLib",
"test": {
"include": "X11/Xlib.h",
"main": [
"Display *d = XOpenDisplay(NULL);",
"XCloseDisplay(d);"
]
},
"sources": [
{ "type": "makeSpec", "spec": "X11" }
]
},
"x11sm": {
"label": "X11 session management",
"sources": [
Expand Down Expand Up @@ -626,7 +639,8 @@
"test": "x11/xrender",
"sources": [
"-lXrender"
]
],
"use": "xlib"
}
},

Expand Down Expand Up @@ -913,18 +927,6 @@
"pkg-config-variable": "prefix",
"value": "/usr",
"log": "value"
},
"xlib": {
"label": "XLib",
"type": "compile",
"test": {
"include": "X11/Xlib.h",
"main": [
"Display *d = XOpenDisplay(NULL);",
"XCloseDisplay(d);"
],
"qmake": "CONFIG += x11"
}
}
},

Expand Down Expand Up @@ -1374,7 +1376,7 @@
"xlib": {
"label": "XLib",
"autoDetect": "!config.darwin || features.xcb",
"condition": "tests.xlib",
"condition": "libs.xlib",
"output": [ "privateFeature" ]
},
"texthtmlparser": {
Expand Down
2 changes: 1 addition & 1 deletion src/platformsupport/eglconvenience/eglconvenience.pro
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ qtConfig(xlib) {
qxlibeglintegration_p.h
SOURCES += \
qxlibeglintegration.cpp
LIBS_PRIVATE += $$QMAKE_LIBS_X11
QMAKE_USE_PRIVATE += xlib
}
CONFIG += egl

Expand Down
2 changes: 1 addition & 1 deletion src/platformsupport/glxconvenience/glxconvenience.pro
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ CONFIG += static internal_module

DEFINES += QT_NO_CAST_FROM_ASCII

LIBS_PRIVATE += $$QMAKE_LIBS_X11
QMAKE_USE_PRIVATE += xlib

HEADERS += qglxconvenience_p.h
SOURCES += qglxconvenience.cpp
Expand Down

0 comments on commit 118b456

Please sign in to comment.