Open Broadcaster Software
Free, open source software for live streaming and recording
obs-config.h
Go to the documentation of this file.
1 /******************************************************************************
2  Copyright (C) 2014 by Hugh Bailey <obs.jim@gmail.com>
3 
4  This program is free software: you can redistribute it and/or modify
5  it under the terms of the GNU General Public License as published by
6  the Free Software Foundation, either version 2 of the License, or
7  (at your option) any later version.
8 
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  GNU General Public License for more details.
13 
14  You should have received a copy of the GNU General Public License
15  along with this program. If not, see <http://www.gnu.org/licenses/>.
16 ******************************************************************************/
17 
18 #pragma once
19 
20 /*
21  * LIBOBS_API_VER is returned by module_version in each module.
22  *
23  * Libobs uses semantic versioning. See http://semver.org/ for more
24  * information.
25  */
26 
27 /*
28  * Increment if major breaking API changes
29  */
30 #define LIBOBS_API_MAJOR_VER 25
31 
32 /*
33  * Increment if backward-compatible additions
34  *
35  * Reset to zero each major version
36  */
37 #define LIBOBS_API_MINOR_VER 0
38 
39 /*
40  * Increment if backward-compatible bug fix
41  *
42  * Reset to zero each major or minor version
43  */
44 #define LIBOBS_API_PATCH_VER 8
45 
46 #define MAKE_SEMANTIC_VERSION(major, minor, patch) \
47  ((major << 24) | (minor << 16) | patch)
48 
49 #define LIBOBS_API_VER \
50  MAKE_SEMANTIC_VERSION(LIBOBS_API_MAJOR_VER, LIBOBS_API_MINOR_VER, \
51  LIBOBS_API_PATCH_VER)
52 
53 #ifdef HAVE_OBSCONFIG_H
54 #include "obsconfig.h"
55 #else
56 #define OBS_VERSION "unknown"
57 #define OBS_DATA_PATH "../../data"
58 #define OBS_INSTALL_PREFIX ""
59 #define OBS_PLUGIN_DESTINATION "obs-plugins"
60 #define OBS_RELATIVE_PREFIX "../../"
61 #define OBS_RELEASE_CANDIDATE_MAJOR 0
62 #define OBS_RELEASE_CANDIDATE_MINOR 0
63 #define OBS_RELEASE_CANDIDATE_PATCH 0
64 #define OBS_RELEASE_CANDIDATE_VER 0
65 #define OBS_RELEASE_CANDIDATE 0
66 #endif
67 
68 #define OBS_INSTALL_DATA_PATH OBS_INSTALL_PREFIX OBS_DATA_PATH