-
Notifications
You must be signed in to change notification settings - Fork 4
/
Configure.h.in
77 lines (60 loc) · 2.49 KB
/
Configure.h.in
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
/*
The MIT License (MIT)
Copyright (c) 2016 Liav Turkia
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
*/
#pragma once
#ifndef MACE_CORE_CONFIGURE_H
#define MACE_CORE_CONFIGURE_H
/*
=======================================
Meta variables
=======================================
*/
#define MACE_VERSION @MACE_VERSION@
#define MACE_VERSION_MAJOR @MACE_VERSION_MAJOR@
#define MACE_VERSION_MINOR @MACE_VERSION_MINOR@
#define MACE_VERSION_PATCH @MACE_VERSION_PATCH@
#cmakedefine MACE_TESTS 1
#cmakedefine MACE_DEMOS 1
/*
=======================================
Libraries
=======================================
*/
#cmakedefine MACE_POSIX 1
#cmakedefine MACE_WINAPI 1
#if !defined(MACE_POSIX) && !defined(MACE_WINAPI)
# error "Error in configuration process: this system is unsupported. It must have either windows.h or unistd.h"
#elif defined(MACE_POSIX) && defined(MACE_WINAPI)
# error "Error in configuration process: this system has been detected to have both Winapi and POSIX."
#endif
/*
=======================================
Operating System
=======================================
*/
#cmakedefine MACE_OSX 1
#cmakedefine MACE_WINDOWS 1
#cmakedefine MACE_UNIX 1
#if !(defined(MACE_OSX)||defined(MACE_WINDOWS)||defined(MACE_UNIX))
# error "Error in configuration process: problem detecting valid operating system: couldn't detect system"
#elif defined(MACE_OSX) && defined(MACE_WINDOWS) && defined(MACE_UNIX)
# error "Error in configuration process: problem detecting valid operating system: multiple systems detected"
#endif
#cmakedefine MACE_BIG_ENDIAN 1
#ifndef MACE_BIG_ENDIAN
# define MACE_LITTLE_ENDIAN 1
#endif//MACE_BIG_ENDIAN
#cmakedefine MACE_SHARED_LIBS 1
#cmakedefine MACE_STATIC_LIBS 1
#define MACE_POINTER_SIZE @CMAKE_SIZEOF_VOID_P@
#if MACE_POINTER_SIZE == 4
# define MACE_32_BIT 1
#elif MACE_POINTER_SIZE == 8
# define MACE_64_BIT 1
#endif
#define MACE_DYNAMIC_LIBRARY_PREFIX @CMAKE_SHARED_LIBRARY_PREFIX@
#define MACE_DYNAMIC_LIBRARY_SUFFIX @CMAKE_SHARED_LIBRARY_SUFFIX@
#endif//MACE_CORE_CONFIGURE_H