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?
This commit is contained in:
Henrik Rydgård 2017-03-16 12:33:23 +01:00
parent 48c0b56db2
commit b2677cfc63

View file

@ -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);