0032308: Configuration - make Xlib dependency optional
authorkgv <kgv@opencascade.com>
Fri, 16 Apr 2021 13:12:16 +0000 (16:12 +0300)
committerbugmaster <bugmaster@opencascade.com>
Thu, 22 Apr 2021 11:50:46 +0000 (14:50 +0300)
commitb69e576af0462088673c42a88eddea6d54f8786a
tree21a07da06955879c917d30f62943fcf4c0d3c3e8
parente8e157df453a19d564ebfebdc5c67ecc5912885a
0032308: Configuration - make Xlib dependency optional

MACOSX_USE_GLX has been renamed to HAVE_XLIB and now configurable on Linux target.

Xw_Window.hxx now export class on non-Linux platforms.
OpenGl_Window now creates an off-screen EGL surface also in case of
window-less desktop setup (e.g. with disabled Xlib on Linux).

Draw_Window - code has been cleaned up.
Class definition has been unified across platforms when possible.
Unusued constructors have been removed.
Internal header files (MainWindow.h, init.h, etc.) have been renamed to .pxx
to avoid their unexpected distribution in "inc".
55 files changed:
CMakeLists.txt
adm/UDLIST
adm/cmake/occt_csf.cmake
adm/cmake/vardescr.cmake
adm/genconf.tcl
adm/genconfdeps.tcl
adm/genproj.tcl
adm/qmake/OccToolkit.pri
adm/scripts/wasm_build.bat
adm/templates/env.sh
src/AIS/AIS_ViewController.hxx
src/Aspect/Aspect_DisplayConnection.cxx
src/Aspect/Aspect_DisplayConnection.hxx
src/Aspect/Aspect_FBConfig.hxx
src/Aspect/Aspect_RenderingContext.hxx
src/Aspect/Aspect_XWD.hxx
src/Draw/CommandWindow.cxx [deleted file]
src/Draw/CommandWindow.h [deleted file]
src/Draw/DrawRessource.h [deleted file]
src/Draw/Draw_BasicCommands.cxx
src/Draw/Draw_View.cxx
src/Draw/Draw_View.hxx
src/Draw/Draw_Viewer.cxx
src/Draw/Draw_WNTCommandWindow.cxx [new file with mode: 0644]
src/Draw/Draw_WNTCommandWindow.pxx [new file with mode: 0644]
src/Draw/Draw_WNTInit.cxx [new file with mode: 0644]
src/Draw/Draw_WNTInit.pxx [new file with mode: 0644]
src/Draw/Draw_WNTMainWindow.cxx [new file with mode: 0644]
src/Draw/Draw_WNTMainWindow.pxx [new file with mode: 0644]
src/Draw/Draw_WNTRessource.pxx [new file with mode: 0644]
src/Draw/Draw_Window.cxx
src/Draw/Draw_Window.hxx
src/Draw/Draw_Window_1.mm
src/Draw/FILES
src/Draw/MainWindow.cxx [deleted file]
src/Draw/MainWindow.h [deleted file]
src/Draw/init.cxx [deleted file]
src/Draw/init.h [deleted file]
src/IVtkDraw/IVtkDraw.cxx
src/InterfaceGraphic/FILES [deleted file]
src/InterfaceGraphic/InterfaceGraphic.hxx [deleted file]
src/OpenGl/OpenGl_Context.cxx
src/OpenGl/OpenGl_Context.hxx
src/OpenGl/OpenGl_Context_1.mm
src/OpenGl/OpenGl_GlFunctions.cxx
src/OpenGl/OpenGl_GlFunctions.hxx
src/OpenGl/OpenGl_GraphicDriver.cxx
src/OpenGl/OpenGl_Window.cxx
src/OpenGl/OpenGl_Window_1.mm
src/TKService/PACKAGES
src/ViewerTest/ViewerTest_ViewerCommands.cxx
src/ViewerTest/ViewerTest_ViewerCommands_1.mm
src/Xw/Xw_Window.cxx
src/Xw/Xw_Window.hxx
tools/View/View_Widget.cxx