[vlmc-devel] [PATCH 12/14] Main: Mark WITH_GUI on Widget-related code
Hugo Beauzée-Luyssen
hugo at beauzee.fr
Tue Apr 12 14:12:45 CEST 2016
On 04/11/2016 08:09 AM, Yikai Lu wrote:
> ---
> src/Main/main.cpp | 6 ++++--
> 1 file changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/src/Main/main.cpp b/src/Main/main.cpp
> index 3a082ac..b72b84a 100644
> --- a/src/Main/main.cpp
> +++ b/src/Main/main.cpp
> @@ -34,11 +34,12 @@
> #include "Project/Project.h"
> #include "Backend/IBackend.h"
> #include "Main/Core.h"
> -
> +#ifdef WITH_GUI
> #include "Gui/MainWindow.h"
> #include "Gui/IntroDialog.h"
> #include "Gui/LanguageHelper.h"
> #include "Gui/wizard/firstlaunch/FirstLaunchWizard.h"
> +#endif
>
> #include <QApplication>
> #include <QColor>
> @@ -77,6 +78,7 @@ VLMCmainCommon( const QCoreApplication &app, Backend::IBackend** backend )
> * \param argv
> * \return Return value of vlmc
> */
> +#ifdef WITH_GUI
> int
> VLMCGuimain( int argc, char **argv )
> {
> @@ -165,7 +167,7 @@ VLMCGuimain( int argc, char **argv )
> w.show();
> return app.exec();
> }
> -
> +#endif
> /**
> * VLMC Entry point
> * \brief this is the VLMC entry point
>
That seems good enough for now, but we probably want to split the 2
files at some point.
More information about the Vlmc-devel
mailing list