Merge branch 'blender2.7'
[blender.git] / source / creator / buildinfo.c
1 /*
2  * This program is free software; you can redistribute it and/or
3  * modify it under the terms of the GNU General Public License
4  * as published by the Free Software Foundation; either version 2
5  * of the License, or (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
10  * GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program; if not, write to the Free Software Foundation,
14  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15  *
16  * The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
17  * All rights reserved.
18  */
19
20 /** \file \ingroup creator
21  */
22
23
24 #ifdef WITH_BUILDINFO_HEADER
25 #  include "buildinfo.h"
26 #endif
27
28 #ifdef BUILD_DATE
29
30 /* currently only these are defined in the header */
31 char build_date[] = BUILD_DATE;
32 char build_time[] = BUILD_TIME;
33 char build_hash[] = BUILD_HASH;
34 unsigned long build_commit_timestamp = BUILD_COMMIT_TIMESTAMP;
35 char build_commit_date[16] = "\0";
36 char build_commit_time[16] = "\0";
37 char build_branch[] = BUILD_BRANCH;
38
39 char build_platform[] = BUILD_PLATFORM;
40 char build_type[] = BUILD_TYPE;
41
42 #ifdef BUILD_CFLAGS
43 char build_cflags[] = BUILD_CFLAGS;
44 char build_cxxflags[] = BUILD_CXXFLAGS;
45 char build_linkflags[] = BUILD_LINKFLAGS;
46 char build_system[] = BUILD_SYSTEM;
47 #else
48 char build_cflags[] = "unmaintained buildsystem alert!";
49 char build_cxxflags[] = "unmaintained buildsystem alert!";
50 char build_linkflags[] = "unmaintained buildsystem alert!";
51 char build_system[] = "unmaintained buildsystem alert!";
52 #endif
53
54 #endif // BUILD_DATE