[vlmc-devel] [PATCH 12/14] Main: Mark WITH_GUI on Widget-related code

Yikai Lu luyikei.qmltu at gmail.com
Mon Apr 11 08:09:23 CEST 2016


---
 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
-- 
1.9.1



More information about the Vlmc-devel mailing list