CREATE_PROJECT: Add Text console debugger feature

Add feature flag to create_project to set USE_TEXT_CONSOLE_FOR_DEBUGGER
with --enable-text-console like configure script
This commit is contained in:
sluicebox 2019-04-22 05:51:09 -07:00 committed by Matan Bareket
parent 82353c5068
commit 8c32927f39
2 changed files with 23 additions and 20 deletions

View file

@ -1077,8 +1077,9 @@ const Feature s_features[] = {
{ "eventrecorder", "ENABLE_EVENTRECORDER", "", false, "Event recorder support"},
{ "updates", "USE_UPDATES", "", false, "Updates support"},
{ "dialogs", "USE_SYSDIALOGS", "", true, "System dialogs support"},
{ "langdetect", "USE_DETECTLANG", "", true, "System language detection support" } // This feature actually depends on "translation", there
{ "langdetect", "USE_DETECTLANG", "", true, "System language detection support" }, // This feature actually depends on "translation", there
// is just no current way of properly detecting this...
{ "text-console", "USE_TEXT_CONSOLE_FOR_DEBUGGER", "", false, "Text console debugger" } // This feature is always applied in xcode projects
};
const Tool s_tools[] = {

View file

@ -1137,7 +1137,9 @@ void XcodeProvider::setupDefines(const BuildSetup &setup) {
REMOVE_DEFINE(_defines, "IPHONE_IOS7");
REMOVE_DEFINE(_defines, "IPHONE_SANDBOXED");
REMOVE_DEFINE(_defines, "SDL_BACKEND");
if (!CONTAINS_DEFINE(_defines, "USE_TEXT_CONSOLE_FOR_DEBUGGER")) {
ADD_DEFINE(_defines, "USE_TEXT_CONSOLE_FOR_DEBUGGER");
}
ADD_DEFINE(_defines, "CONFIG_H");
ADD_DEFINE(_defines, "UNIX");
ADD_DEFINE(_defines, "SCUMMVM");