1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-26 03:52:01 +02:00

Added -DENABLED_LAUNCHER and -DENABLED_EDITOR defines

This commit is contained in:
Ivan Savenko 2022-12-28 17:56:22 +02:00
parent 42ecf05c47
commit 858fb97f42
3 changed files with 11 additions and 9 deletions

View File

@ -474,9 +474,11 @@ if(NOT TARGET minizip::minizip)
endif()
if(ENABLE_LAUNCHER)
add_definitions(-DENABLE_LAUNCHER)
add_subdirectory(launcher)
endif()
if(ENABLE_EDITOR)
add_definitions(-DENABLE_EDITOR)
add_subdirectory(mapeditor)
endif()
add_subdirectory(client)

View File

@ -66,8 +66,8 @@ void startGame(const QStringList & args)
void startEditor(const QStringList & args)
{
#ifndef Q_OS_IOS
startExecutable(pathToQString(VCMIDirs::get().editorPath()), args);
#ifdef ENABLE_EDITOR
startExecutable(pathToQString(VCMIDirs::get().mapEditorPath()), args);
#endif
}

View File

@ -69,7 +69,7 @@ MainWindow::MainWindow(QWidget * parent)
move(position);
}
#ifdef Q_OS_IOS
#ifndef ENABLE_EDITOR
ui->startEditorButton->hide();
#endif