File: configure_launcher.h.in

package info (click to toggle)
freespace2-launcher-wxlauncher 0.11.0%2Bdfsg-3
  • links: PTS, VCS
  • area: contrib
  • in suites: bullseye
  • size: 2,368 kB
  • sloc: cpp: 13,446; python: 797; makefile: 12; sh: 12
file content (42 lines) | stat: -rw-r--r-- 1,115 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#ifndef CONFIGURE_LAUNCHER_H_
#define CONFIGURE_LAUNCHER_H_
// File is modified by the build system to tell the launcher where stuff
// is located
#cmakedefine RESOURCES_PATH "${RESOURCES_PATH}"
#cmakedefine HELP_HTB_LOCATION "${HELP_HTB_LOCATION}"

#cmakedefine01 USE_SPEECH
#cmakedefine01 USE_JOYSTICK
#cmakedefine01 USE_OPENAL
#cmakedefine01 PLATFORM_USES_REGISTRY
#cmakedefine01 PROFILE_DEBUGGING

#cmakedefine01 HAS_SDL

#cmakedefine VERSION_MAJOR ${VERSION_MAJOR}
#cmakedefine VERSION_MINOR ${VERSION_MINOR}
#cmakedefine VERSION_PATCH ${VERSION_PATCH}

// If cmake did not define these, it means they are zero
#ifndef VERSION_MAJOR
#define VERSION_MAJOR 0
#endif
#ifndef VERSION_MINOR
#define VERSION_MINOR 0
#endif
#ifndef VERSION_PATCH
#define VERSION_PATCH 0
#endif

// What platform am I on
#cmakedefine01 IS_WIN32
#cmakedefine01 IS_LINUX
#cmakedefine01 IS_APPLE

#if (IS_WIN32 + IS_LINUX + IS_APPLE) > 1
#error "Only one of IS_WIN32, IS_LINUX, and IS_APPLE may evaluate to true"
#elif (IS_WIN32 + IS_LINUX + IS_APPLE) < 1
#error "One of IS_WIN32, IS_LINUX, IS_APPLE must evaluate to true"
#endif

#endif