configure: convert xlib to a proper library definition
Change-Id: I1623aee9e8632e4bfd466e09e275cc23f94c6dab Reviewed-by: Gatis Paeglis <gatis.paeglis@qt.io>
This commit is contained in:
parent
b6737b7ecd
commit
118b456c6b
@ -1,3 +1,2 @@
|
|||||||
SOURCES = xrender.cpp
|
SOURCES = xrender.cpp
|
||||||
CONFIG += x11
|
|
||||||
CONFIG -= qt
|
CONFIG -= qt
|
||||||
|
@ -454,6 +454,19 @@
|
|||||||
{ "type": "pkgConfig", "args": "wayland-server" }
|
{ "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": {
|
"x11sm": {
|
||||||
"label": "X11 session management",
|
"label": "X11 session management",
|
||||||
"sources": [
|
"sources": [
|
||||||
@ -626,7 +639,8 @@
|
|||||||
"test": "x11/xrender",
|
"test": "x11/xrender",
|
||||||
"sources": [
|
"sources": [
|
||||||
"-lXrender"
|
"-lXrender"
|
||||||
]
|
],
|
||||||
|
"use": "xlib"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -913,18 +927,6 @@
|
|||||||
"pkg-config-variable": "prefix",
|
"pkg-config-variable": "prefix",
|
||||||
"value": "/usr",
|
"value": "/usr",
|
||||||
"log": "value"
|
"log": "value"
|
||||||
},
|
|
||||||
"xlib": {
|
|
||||||
"label": "XLib",
|
|
||||||
"type": "compile",
|
|
||||||
"test": {
|
|
||||||
"include": "X11/Xlib.h",
|
|
||||||
"main": [
|
|
||||||
"Display *d = XOpenDisplay(NULL);",
|
|
||||||
"XCloseDisplay(d);"
|
|
||||||
],
|
|
||||||
"qmake": "CONFIG += x11"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -1374,7 +1376,7 @@
|
|||||||
"xlib": {
|
"xlib": {
|
||||||
"label": "XLib",
|
"label": "XLib",
|
||||||
"autoDetect": "!config.darwin || features.xcb",
|
"autoDetect": "!config.darwin || features.xcb",
|
||||||
"condition": "tests.xlib",
|
"condition": "libs.xlib",
|
||||||
"output": [ "privateFeature" ]
|
"output": [ "privateFeature" ]
|
||||||
},
|
},
|
||||||
"texthtmlparser": {
|
"texthtmlparser": {
|
||||||
|
@ -34,7 +34,7 @@ qtConfig(xlib) {
|
|||||||
qxlibeglintegration_p.h
|
qxlibeglintegration_p.h
|
||||||
SOURCES += \
|
SOURCES += \
|
||||||
qxlibeglintegration.cpp
|
qxlibeglintegration.cpp
|
||||||
LIBS_PRIVATE += $$QMAKE_LIBS_X11
|
QMAKE_USE_PRIVATE += xlib
|
||||||
}
|
}
|
||||||
CONFIG += egl
|
CONFIG += egl
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@ CONFIG += static internal_module
|
|||||||
|
|
||||||
DEFINES += QT_NO_CAST_FROM_ASCII
|
DEFINES += QT_NO_CAST_FROM_ASCII
|
||||||
|
|
||||||
LIBS_PRIVATE += $$QMAKE_LIBS_X11
|
QMAKE_USE_PRIVATE += xlib
|
||||||
|
|
||||||
HEADERS += qglxconvenience_p.h
|
HEADERS += qglxconvenience_p.h
|
||||||
SOURCES += qglxconvenience.cpp
|
SOURCES += qglxconvenience.cpp
|
||||||
|
Loading…
x
Reference in New Issue
Block a user