Bug 146891

Summary: [GTK] cmake should permit build when enable_opengl=OFF and enable_wayland=ON
Product: WebKit Reporter: nick <unixman>
Component: WebKitGTKAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: bugs-noreply
Priority: P3    
Version: 420+   
Hardware: PC   
OS: Linux   

Description nick 2015-07-12 02:23:01 PDT
currently cmake allow genaration of makefile in case of  

-DENABLE_WAYLAND_TARGET=ON  -DENABLE_OPENGL=OFF but it shouldn't allow this.

Because of it results:

[ 83%] Building CXX object Source/WebCore/CMakeFiles/WebCorePlatformGTK.dir/platform/graphics/PlatformDisplay.cpp.o
In file included from /home/me/src/webkitgtk-2.9.3/Source/WebCore/platform/graphics/PlatformDisplay.cpp:37:0:
/home/me/src/webkitgtk-2.9.3/Source/WebCore/platform/graphics/wayland/PlatformDisplayWayland.h: In member function ‘bool WebCore::PlatformDisplayWayl
and::isInitialized()’:
/home/me/src/webkitgtk-2.9.3/Source/WebCore/platform/graphics/wayland/PlatformDisplayWayland.h:63:51: error: ‘m_eglDisplay’ was not declared in this 
scope
     bool isInitialized() { return m_compositor && m_eglDisplay != EGL_NO_DISPLAY && m_eglConfigChosen; }

in compilation stage later.

webkitgtk-2.9.3