1 /*
2 * Copyright (c) 2012-2021 Fredrik Mellbin
3 *
4 * This file is part of VapourSynth.
5 *
6 * VapourSynth is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
10 *
11 * VapourSynth is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with VapourSynth; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 */
20 
21 #include "VapourSynth.h"
22 
23 /*
24 
25     Note that the version is stored in several places, in addition to version.h it's also in:
26     src/cython/vapoursynth.pyx (__version__)
27     setup.py (version = "" near the bottom)
28     configure.ac (number on first line in [])
29     installer/vsinstaller.iss (Version define at top)
30     installer/setup.py (CURRENT_RELEASE at the top)
31     doc/conf.py (version = '' near the top)
32 
33 */
34 
35 #define XSTR(x) STR(x)
36 #define STR(x) #x
37 #define VAPOURSYNTH_CORE_VERSION 54
38 #if defined(VS_FRAME_GUARD) && !defined(NDEBUG)
39 #define VS_OPTIONS_TEXT "Options: Frame Guard + Extra Assertions\n"
40 #elif defined(VS_FRAME_GUARD)
41 #define VS_OPTIONS_TEXT "Options: Frame Guard\n"
42 #elif !defined(NDEBUG)
43 #define VS_OPTIONS_TEXT "Options: Extra Assertions\n"
44 #else
45 #define VS_OPTIONS_TEXT "Options: -\n"
46 #endif
47 #define VAPOURSYNTH_VERSION_STRING "VapourSynth Video Processing Library\n" \
48     "Copyright (c) 2012-2021 Fredrik Mellbin\n" \
49     "Core R" XSTR(VAPOURSYNTH_CORE_VERSION) "\n" \
50     "API R" XSTR(VAPOURSYNTH_API_MAJOR) "." XSTR(VAPOURSYNTH_API_MINOR) "\n" \
51     VS_OPTIONS_TEXT
52