[vlmc-devel] Main: Mark WITH_GUI on Widget-related code

Yikai Lu git at videolan.org
Tue Apr 12 15:56:36 CEST 2016


vlmc | branch: master | Yikai Lu <luyikei.qmltu at gmail.com> | Mon Apr 11 15:09:23 2016 +0900| [edbd5adf7347c203fa5ed5d9c362b6eb8f74eb72] | committer: Hugo Beauzée-Luyssen

Main: Mark WITH_GUI on Widget-related code

Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>

> https://code.videolan.org/videolan/vlmc/commit/edbd5adf7347c203fa5ed5d9c362b6eb8f74eb72
---

 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



More information about the Vlmc-devel mailing list