20,741
edits
No edit summary |
|||
| Line 51: | Line 51: | ||
{{Main article|Developing using CMake}} | {{Main article|Developing using CMake}} | ||
We should add separate build options to explicitly disable certain features individually | We should add separate build options to explicitly disable certain features individually. | ||
Knowing that [[PUI]] contains legacy OpenGL code and knowing it's scheduled to be removed anyway because it isn't compatible with modern OpenGL, we will disable it completely without | Knowing that [[PUI]] contains legacy OpenGL code and knowing it's scheduled to be removed anyway because it isn't compatible with modern OpenGL, we will disable it completely without | ||
| Line 69: | Line 67: | ||
option(SYSTEM_CPPUNIT "Set to ON to build Flightgear with the system's CppUnit library") | option(SYSTEM_CPPUNIT "Set to ON to build Flightgear with the system's CppUnit library") | ||
option(DISABLE_PUI "Set to ON to build Flightgear without PUI support") | option(DISABLE_PUI "Set to ON to build Flightgear without PUI support") | ||
if(DISABLE_PUI) | |||
add_definitions(-DDISABLE_PUI) | |||
endif(DISABLE_PUI) | |||
</syntaxhighlight> | </syntaxhighlight> | ||
| Line 83: | Line 86: | ||
// Create and register the XML GUI. | // Create and register the XML GUI. | ||
//////////////////////////////////////////////////////////////////// | //////////////////////////////////////////////////////////////////// | ||
# | #ifndef DISABLE_PUI | ||
globals->add_subsystem("gui", new NewGUI, SGSubsystemMgr::INIT); | globals->add_subsystem("gui", new NewGUI, SGSubsystemMgr::INIT); | ||
#endif | #endif | ||
| Line 124: | Line 127: | ||
{ "hires-screen-capture", do_hires_screen_capture }, | { "hires-screen-capture", do_hires_screen_capture }, | ||
{ "tile-cache-reload", do_tile_cache_reload }, | { "tile-cache-reload", do_tile_cache_reload }, | ||
# | #ifndef DISABLE_PUI | ||
{ "dialog-new", do_dialog_new }, | { "dialog-new", do_dialog_new }, | ||
{ "dialog-show", do_dialog_show }, | { "dialog-show", do_dialog_show }, | ||