mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-27 22:49:25 +02:00
Added -DENABLED_LAUNCHER and -DENABLED_EDITOR defines
This commit is contained in:
@@ -474,9 +474,11 @@ if(NOT TARGET minizip::minizip)
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(ENABLE_LAUNCHER)
|
if(ENABLE_LAUNCHER)
|
||||||
|
add_definitions(-DENABLE_LAUNCHER)
|
||||||
add_subdirectory(launcher)
|
add_subdirectory(launcher)
|
||||||
endif()
|
endif()
|
||||||
if(ENABLE_EDITOR)
|
if(ENABLE_EDITOR)
|
||||||
|
add_definitions(-DENABLE_EDITOR)
|
||||||
add_subdirectory(mapeditor)
|
add_subdirectory(mapeditor)
|
||||||
endif()
|
endif()
|
||||||
add_subdirectory(client)
|
add_subdirectory(client)
|
||||||
|
|||||||
@@ -63,14 +63,14 @@ void startGame(const QStringList & args)
|
|||||||
startExecutable(pathToQString(VCMIDirs::get().clientPath()), args);
|
startExecutable(pathToQString(VCMIDirs::get().clientPath()), args);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void startEditor(const QStringList & args)
|
void startEditor(const QStringList & args)
|
||||||
{
|
{
|
||||||
#ifndef Q_OS_IOS
|
#ifdef ENABLE_EDITOR
|
||||||
startExecutable(pathToQString(VCMIDirs::get().editorPath()), args);
|
startExecutable(pathToQString(VCMIDirs::get().mapEditorPath()), args);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef Q_OS_IOS
|
#ifndef Q_OS_IOS
|
||||||
void startExecutable(QString name, const QStringList & args)
|
void startExecutable(QString name, const QStringList & args)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -69,7 +69,7 @@ MainWindow::MainWindow(QWidget * parent)
|
|||||||
move(position);
|
move(position);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef Q_OS_IOS
|
#ifndef ENABLE_EDITOR
|
||||||
ui->startEditorButton->hide();
|
ui->startEditorButton->hide();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user