src/Version.h

Wed, 12 Mar 2014 16:20:40 +0200

author
Santeri Piippo <crimsondusk64@gmail.com>
date
Wed, 12 Mar 2014 16:20:40 +0200
changeset 654
a74f2ff353b8
parent 651
747e84062279
permissions
-rw-r--r--

- added a long int overload to StringFormatArg

634
5ef894f699d7 - separated version stuff to new files to allow version changes be compiled near-instantly
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
1 /*
5ef894f699d7 - separated version stuff to new files to allow version changes be compiled near-instantly
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
2 * LDForge: LDraw parts authoring CAD
5ef894f699d7 - separated version stuff to new files to allow version changes be compiled near-instantly
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
3 * Copyright (C) 2013, 2014 Santeri Piippo
5ef894f699d7 - separated version stuff to new files to allow version changes be compiled near-instantly
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
4 *
5ef894f699d7 - separated version stuff to new files to allow version changes be compiled near-instantly
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
5 * This program is free software: you can redistribute it and/or modify
5ef894f699d7 - separated version stuff to new files to allow version changes be compiled near-instantly
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
6 * it under the terms of the GNU General Public License as published by
5ef894f699d7 - separated version stuff to new files to allow version changes be compiled near-instantly
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
7 * the Free Software Foundation, either version 3 of the License, or
5ef894f699d7 - separated version stuff to new files to allow version changes be compiled near-instantly
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
8 * (at your option) any later version.
5ef894f699d7 - separated version stuff to new files to allow version changes be compiled near-instantly
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
9 *
5ef894f699d7 - separated version stuff to new files to allow version changes be compiled near-instantly
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
10 * This program is distributed in the hope that it will be useful,
5ef894f699d7 - separated version stuff to new files to allow version changes be compiled near-instantly
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
5ef894f699d7 - separated version stuff to new files to allow version changes be compiled near-instantly
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
5ef894f699d7 - separated version stuff to new files to allow version changes be compiled near-instantly
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
13 * GNU General Public License for more details.
5ef894f699d7 - separated version stuff to new files to allow version changes be compiled near-instantly
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
14 *
5ef894f699d7 - separated version stuff to new files to allow version changes be compiled near-instantly
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
15 * You should have received a copy of the GNU General Public License
5ef894f699d7 - separated version stuff to new files to allow version changes be compiled near-instantly
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
5ef894f699d7 - separated version stuff to new files to allow version changes be compiled near-instantly
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
17 */
5ef894f699d7 - separated version stuff to new files to allow version changes be compiled near-instantly
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
18
651
747e84062279 - doxygenified Version.h
Santeri Piippo <crimsondusk64@gmail.com>
parents: 641
diff changeset
19 //! \file Version.h
747e84062279 - doxygenified Version.h
Santeri Piippo <crimsondusk64@gmail.com>
parents: 641
diff changeset
20 //! Contains macros related to application name and version.
747e84062279 - doxygenified Version.h
Santeri Piippo <crimsondusk64@gmail.com>
parents: 641
diff changeset
21
634
5ef894f699d7 - separated version stuff to new files to allow version changes be compiled near-instantly
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
22 #pragma once
651
747e84062279 - doxygenified Version.h
Santeri Piippo <crimsondusk64@gmail.com>
parents: 641
diff changeset
23
747e84062279 - doxygenified Version.h
Santeri Piippo <crimsondusk64@gmail.com>
parents: 641
diff changeset
24 //! The application name.
634
5ef894f699d7 - separated version stuff to new files to allow version changes be compiled near-instantly
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
25 #define APPNAME "LDForge"
651
747e84062279 - doxygenified Version.h
Santeri Piippo <crimsondusk64@gmail.com>
parents: 641
diff changeset
26
747e84062279 - doxygenified Version.h
Santeri Piippo <crimsondusk64@gmail.com>
parents: 641
diff changeset
27 //! The unix-style name of the application. used in filenames
634
5ef894f699d7 - separated version stuff to new files to allow version changes be compiled near-instantly
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
28 #define UNIXNAME "ldforge"
651
747e84062279 - doxygenified Version.h
Santeri Piippo <crimsondusk64@gmail.com>
parents: 641
diff changeset
29
747e84062279 - doxygenified Version.h
Santeri Piippo <crimsondusk64@gmail.com>
parents: 641
diff changeset
30 //! The major version number.
634
5ef894f699d7 - separated version stuff to new files to allow version changes be compiled near-instantly
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
31 #define VERSION_MAJOR 0
651
747e84062279 - doxygenified Version.h
Santeri Piippo <crimsondusk64@gmail.com>
parents: 641
diff changeset
32
747e84062279 - doxygenified Version.h
Santeri Piippo <crimsondusk64@gmail.com>
parents: 641
diff changeset
33 //! The minor version number.
747e84062279 - doxygenified Version.h
Santeri Piippo <crimsondusk64@gmail.com>
parents: 641
diff changeset
34 #define VERSION_MINOR 3
747e84062279 - doxygenified Version.h
Santeri Piippo <crimsondusk64@gmail.com>
parents: 641
diff changeset
35
747e84062279 - doxygenified Version.h
Santeri Piippo <crimsondusk64@gmail.com>
parents: 641
diff changeset
36 //! The patch level version number.
747e84062279 - doxygenified Version.h
Santeri Piippo <crimsondusk64@gmail.com>
parents: 641
diff changeset
37 #define VERSION_PATCH 0
747e84062279 - doxygenified Version.h
Santeri Piippo <crimsondusk64@gmail.com>
parents: 641
diff changeset
38
747e84062279 - doxygenified Version.h
Santeri Piippo <crimsondusk64@gmail.com>
parents: 641
diff changeset
39 //! The build ID, use either BUILD_INTERNAL or BUILD_RELEASE
634
5ef894f699d7 - separated version stuff to new files to allow version changes be compiled near-instantly
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
40 #define BUILD_ID BUILD_INTERNAL
5ef894f699d7 - separated version stuff to new files to allow version changes be compiled near-instantly
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
41
651
747e84062279 - doxygenified Version.h
Santeri Piippo <crimsondusk64@gmail.com>
parents: 641
diff changeset
42 //! The build code for internal builds
634
5ef894f699d7 - separated version stuff to new files to allow version changes be compiled near-instantly
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
43 #define BUILD_INTERNAL 0
651
747e84062279 - doxygenified Version.h
Santeri Piippo <crimsondusk64@gmail.com>
parents: 641
diff changeset
44
747e84062279 - doxygenified Version.h
Santeri Piippo <crimsondusk64@gmail.com>
parents: 641
diff changeset
45 //! The build code for release builds.
634
5ef894f699d7 - separated version stuff to new files to allow version changes be compiled near-instantly
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
46 #define BUILD_RELEASE 1
5ef894f699d7 - separated version stuff to new files to allow version changes be compiled near-instantly
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
47
5ef894f699d7 - separated version stuff to new files to allow version changes be compiled near-instantly
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
48 // =============================================
5ef894f699d7 - separated version stuff to new files to allow version changes be compiled near-instantly
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
49 #ifdef DEBUG
5ef894f699d7 - separated version stuff to new files to allow version changes be compiled near-instantly
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
50 # undef RELEASE
5ef894f699d7 - separated version stuff to new files to allow version changes be compiled near-instantly
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
51 #endif // DEBUG
5ef894f699d7 - separated version stuff to new files to allow version changes be compiled near-instantly
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
52
5ef894f699d7 - separated version stuff to new files to allow version changes be compiled near-instantly
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
53 #ifdef RELEASE
5ef894f699d7 - separated version stuff to new files to allow version changes be compiled near-instantly
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
54 # undef DEBUG
641
425b169a82aa - changed header guards into #pragma once
Santeri Piippo <crimsondusk64@gmail.com>
parents: 634
diff changeset
55 #endif // RELEASE

mercurial