CMake: add WITH_LINKER_LLD option for unix platforms
[blender-staging.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
21  * \ingroup creator
22  */
23
24 #ifdef WITH_BUILDINFO_HEADER
25 #  include "buildinfo.h"
26 #endif
27
28 #ifdef BUILD_DATE
29
30 extern char build_date[];
31 extern char build_time[];
32 extern char build_hash[];
33 extern unsigned long build_commit_timestamp;
34 extern char build_commit_date[];
35 extern char build_commit_time[];
36 extern char build_branch[];
37 extern char build_platform[];
38 extern char build_type[];
39 extern char build_cflags[];
40 extern char build_cxxflags[];
41 extern char build_linkflags[];
42 extern char build_system[];
43
44 /* Currently only these are defined in the header. */
45 char build_date[] = BUILD_DATE;
46 char build_time[] = BUILD_TIME;
47 char build_hash[] = BUILD_HASH;
48 unsigned long build_commit_timestamp = BUILD_COMMIT_TIMESTAMP;
49 char build_commit_date[16] = "\0";
50 char build_commit_time[16] = "\0";
51 char build_branch[] = BUILD_BRANCH;
52
53 char build_platform[] = BUILD_PLATFORM;
54 char build_type[] = BUILD_TYPE;
55
56 #  ifdef BUILD_CFLAGS
57 char build_cflags[] = BUILD_CFLAGS;
58 char build_cxxflags[] = BUILD_CXXFLAGS;
59 char build_linkflags[] = BUILD_LINKFLAGS;
60 char build_system[] = BUILD_SYSTEM;
61 #  else
62 char build_cflags[] = "unmaintained buildsystem alert!";
63 char build_cxxflags[] = "unmaintained buildsystem alert!";
64 char build_linkflags[] = "unmaintained buildsystem alert!";
65 char build_system[] = "unmaintained buildsystem alert!";
66 #  endif
67
68 #endif  // BUILD_DATE