Merging r50245 through r50247 from trunk into soc-2011-tomato
[blender.git] / source / creator / buildinfo.c
index db24b50b82df9dea1b8c4e455c70ba251ae1f4df..d747fe8e1ff58845c0cc24c2bfe3f9be11236f3e 100644 (file)
@@ -1,6 +1,4 @@
 /*
- * $Id$
- *
  * ***** BEGIN GPL LICENSE BLOCK *****
  *
  * This program is free software; you can redistribute it and/or
@@ -15,7 +13,7 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software Foundation,
- * Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  *
  * The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
  * All rights reserved.
  * ***** END GPL LICENSE BLOCK *****
  */
 
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
+/** \file creator/buildinfo.c
+ *  \ingroup creator
+ */
 
-#define STRINGIFY(x) XSTRINGIFY(x)
-#define XSTRINGIFY(x) #x
+
+#ifdef WITH_BUILDINFO_HEADER
+#  include "buildinfo.h"
+#endif
 
 #ifdef BUILD_DATE
-const char * build_date=STRINGIFY(BUILD_DATE);
-const char * build_time=STRINGIFY(BUILD_TIME);
-const char * build_rev=STRINGIFY(BUILD_REV);
-const char * build_platform=STRINGIFY(BUILD_PLATFORM);
-const char * build_type=STRINGIFY(BUILD_TYPE);
+
+/* currently only these are defined in the header */
+char build_date[] = BUILD_DATE;
+char build_time[] = BUILD_TIME;
+char build_rev[] = BUILD_REV;
+
+char build_platform[] = BUILD_PLATFORM;
+char build_type[] = BUILD_TYPE;
+
+#ifdef BUILD_CFLAGS
+char build_cflags[] = BUILD_CFLAGS;
+char build_cxxflags[] = BUILD_CXXFLAGS;
+char build_linkflags[] = BUILD_LINKFLAGS;
+char build_system[] = BUILD_SYSTEM;
+#else
+char build_cflags[] = "unmaintained buildsystem alert!";
+char build_cxxflags[] = "unmaintained buildsystem alert!";
+char build_linkflags[] = "unmaintained buildsystem alert!";
+char build_system[] = "unmaintained buildsystem alert!";
 #endif
+
+#endif // BUILD_DATE