From b2677cfc63ee140a500e08891524e3be73a99664 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Thu, 16 Mar 2017 12:33:23 +0100 Subject: [PATCH] Add tab to system info to show some build configuration flags Would be nice if there was a way to automatically get them all ... there might be with some CMake trickery? --- UI/DevScreens.cpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/UI/DevScreens.cpp b/UI/DevScreens.cpp index a13cb8ef3c..e1af31079a 100644 --- a/UI/DevScreens.cpp +++ b/UI/DevScreens.cpp @@ -437,6 +437,26 @@ void SystemInfoScreen::CreateViews() { deviceSpecs->Add(new InfoItem("Display resolution", temp)); #endif + ViewGroup *buildConfigScroll = new ScrollView(ORIENT_VERTICAL, new LinearLayoutParams(FILL_PARENT, FILL_PARENT)); + buildConfigScroll->SetTag("DevSystemInfoBuildConfig"); + LinearLayout *buildConfig = new LinearLayout(ORIENT_VERTICAL); + buildConfig->SetSpacing(0); + buildConfigScroll->Add(buildConfig); + tabHolder->AddTab("Build Config", buildConfigScroll); + + buildConfig->Add(new ItemHeader("Build Configuration")); +#ifdef _DEBUG + buildConfig->Add(new InfoItem("_DEBUG", "")); +#else + buildConfig->Add(new InfoItem("NDEBUG", "")); +#endif +#ifdef USING_GLES2 + buildConfig->Add(new InfoItem("USING_GLES2", "")); +#endif +#ifdef MOBILE_DEVICE + buildConfig->Add(new InfoItem("MOBILE_DEVICE", "")); +#endif + ViewGroup *cpuExtensionsScroll = new ScrollView(ORIENT_VERTICAL, new LinearLayoutParams(FILL_PARENT, FILL_PARENT)); cpuExtensionsScroll->SetTag("DevSystemInfoCPUExt"); LinearLayout *cpuExtensions = new LinearLayout(ORIENT_VERTICAL);