|
From: Tapio V. <aa...@us...> - 2010-05-16 16:31:22
|
Module: performous
Branch: instrumentgraph
Commit: c4a4ccf83e08b2a3ff73b2fce3c23dd512cda22e
Author: Tapio Vierros <tap...@gm...>
Date: Tue May 11 12:45:35 2010 +0300
Output compilation status of optional features with version info.
---
game/main.cc | 24 ++++++++++++++++++++++++
1 files changed, 24 insertions(+), 0 deletions(-)
diff --git a/game/main.cc b/game/main.cc
index fea8426..2e7066f 100644
--- a/game/main.cc
+++ b/game/main.cc
@@ -284,6 +284,8 @@ template <typename Container> void confOverride(Container const& c, std::string
std::copy(c.begin(), c.end(), std::back_inserter(sl));
}
+void outputOptionalFeatureStatus();
+
int main(int argc, char** argv) try {
#ifdef USE_GETTEXT
// initialize gettext
@@ -299,6 +301,7 @@ int main(int argc, char** argv) try {
std::cout << PACKAGE " " VERSION << std::endl;
signalSetup();
+ outputOptionalFeatureStatus();
std::ios::sync_with_stdio(false); // We do not use C stdio
std::srand(std::time(NULL));
// Parse commandline options
@@ -410,3 +413,24 @@ int main(int argc, char** argv) try {
std::cerr << "FATAL ERROR: " << e.what() << std::endl;
}
+void outputOptionalFeatureStatus() {
+ std::cout << " Internationalization: " <<
+ #ifdef USE_GETTEXT
+ "Enabled"
+ #else
+ "Disabled"
+ #endif
+ << std::endl << " MIDI I/O: " <<
+ #ifdef USE_PORTMIDI
+ "Enabled"
+ #else
+ "Disabled"
+ #endif
+ << std::endl << " Webcam support: " <<
+ #ifdef USE_OPENCV
+ "Enabled"
+ #else
+ "Disabled"
+ #endif
+ << std::endl;
+}
|