forked from lenmus/lenmus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlenmus_config.h.cmake
executable file
·100 lines (86 loc) · 4.6 KB
/
lenmus_config.h.cmake
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
//---------------------------------------------------------------------------------------
// LenMus Phonascus: The teacher of music
// Copyright (c) 2002-2018 LenMus project
//
// This program is free software; you can redistribute it and/or modify it under the
// terms of the GNU General Public License as published by the Free Software Foundation,
// either version 3 of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful, but WITHOUT ANY
// WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
// PARTICULAR PURPOSE. See the GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License along with this
// program. If not, see <http://www.gnu.org/licenses/>.
//
// For any comment, suggestion or feature request, please contact the manager of
// the project at cecilios@users.sourceforge.net
//
//---------------------------------------------------------------------------------------
#ifndef __LENMUS_CONFIG_H__
#define __LENMUS_CONFIG_H__
//==================================================================
// Template configuration file.
// Variables are replaced by CMake, depending on build settings
//==================================================================
//---------------------------------------------------------------------------------------
// program name, version and related. To support store brands
//---------------------------------------------------------------------------------------
#define LENMUS_APP_NAME "@LENMUS_APP_NAME@"
#define LENMUS_VENDOR_NAME "@LENMUS_VENDOR_NAME@"
#define LENMUS_VENDOR_SITE "@LENMUS_VENDOR_SITE@"
//--------------------------------------------------------------------------------------
// Paths and installation folders
//
// LENMUS_SOURCE_ROOT must always point to source tree root
// LENMUS_INSTALL_ROOT root to install shared non-modificable files (Linux only).
//
// In Debug build always use source tree. Binaries, config and logs in z_bin
// In Release mode, it depends on LENMUS_RELEASE_INSTALL:
//
// a) LENMUS_RELEASE_INSTALL == 0
// Release build but include Debug menu and use source tree.
// Binaries, config and logs in z_bin.
//
// b) LENMUS_RELEASE_INSTALL == 1
// Release build, to install or distribute.
// Use install root. No debug menu.
//
//--------------------------------------------------------------------------------------
#define LENMUS_TEST_SCORES_PATH @LENMUS_TEST_SCORES_PATH@
#define LENMUS_SOURCE_ROOT @LENMUS_SOURCE_ROOT@
#define LENMUS_INSTALL_ROOT "@LENMUS_INSTALL_ROOT@" //Linux only
//---------------------------------------------------------------------------------------
// build type
//
// LENMUS_DEBUG_BUILD determines if it is a Debug or a Release build.
//
// For Debug buils, LENMUS_RELEASE_INSTALL determines if it is a build for testing or
// for installation/distribution:
//
// a) LENMUS_RELEASE_INSTALL == 0 means it is a Release build for testing.
// The LENMUS_SOURCE_ROOT tree folders are used and debug menu is included.
//
// b) LENMUS_RELEASE_INSTALL == 1 means it is a Release build for
// installation/distribution. No debug menu is included. In Linux, the
// LENMUS_INSTALL_ROOT is used for shared non-modificable files and all others
// go to /home folder. In Windows, the installation root is used.
//---------------------------------------------------------------------------------------
#define LENMUS_DEBUG_BUILD @LENMUS_DEBUG_BUILD@
#define LENMUS_RELEASE_INSTALL @LENMUS_RELEASE_INSTALL@
//---------------------------------------------------------------------------------------
// include tests in build
//
// LENMUS_ENABLE_UNIT_TESTS determines if unit test are included in the build.
//
//---------------------------------------------------------------------------------------
#define LENMUS_ENABLE_UNIT_TESTS @LENMUS_ENABLE_UNIT_TESTS@
//---------------------------------------------------------------------------------------
// platform and compiler
//---------------------------------------------------------------------------------------
#define LENMUS_PLATFORM_WIN32 @LENMUS_PLATFORM_WIN32@
#define LENMUS_PLATFORM_UNIX @LENMUS_PLATFORM_UNIX@
#define LENMUS_PLATFORM_MAC @LENMUS_PLATFORM_MAC@
#define LENMUS_COMPILER_MSVC @LENMUS_COMPILER_MSVC@
#define LENMUS_COMPILER_GCC @LENMUS_COMPILER_GCC@
#endif // __LENMUS_CONFIG_H__