Skip to content

Commit

Permalink
qmake|Unix: Check that xxf86vm and xrandr exist
Browse files Browse the repository at this point in the history
If the required X11 extensions are missing, qmake will fail with an
error message that instructs what to do.
  • Loading branch information
skyjake committed May 9, 2012
1 parent bbcb993 commit 905c885
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions doomsday/engine/engine.pro
Expand Up @@ -58,6 +58,14 @@ else {

# DisplayMode uses the Xrandr and XFree86-VideoMode extensions.
!deng_nodisplaymode {
# Check that the X11 extensions exist.
!system(pkg-config --exists xxf86vm) {
error(Missing dependency: X11 XFree86 video mode extension library (development headers). Alternatively disable display mode functionality with: CONFIG+=deng_nodisplaymode)
}
!system(pkg-config --exists xrandr) {
error(Missing dependency: X11 RandR extension library (development headers). Alternatively disable display mode functionality with: CONFIG+=deng_nodisplaymode)
}

QMAKE_CXXFLAGS += $$system(pkg-config xrandr xxf86vm --cflags)
LIBS += $$system(pkg-config xrandr xxf86vm --libs)
}
Expand Down

0 comments on commit 905c885

Please sign in to comment.