config.h.in 1.46 KB
Newer Older
Niklas Haas's avatar
Niklas Haas committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
/*
 * This file is part of libplacebo.
 *
 * libplacebo is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * libplacebo 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 Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with libplacebo.  If not, see <http://www.gnu.org/licenses/>.
 */

#ifndef LIBPLACEBO_CONFIG_H_
#define LIBPLACEBO_CONFIG_H_

21 22 23 24 25
// Increased any time the library changes in a fundamental/major way.
#define PL_MAJOR_VER @majorver@

// Increased any time the API changes. (Note: Does not reset when PL_MAJOR_VER
// is increased)
Niklas Haas's avatar
Niklas Haas committed
26 27
#define PL_API_VER @apiver@

28
// Increased any time a fix is made to a given API version.
29
#define PL_FIX_VER (pl_fix_ver())
30 31

// Friendly name (`git describe`) for the overall version of the library
32 33 34 35
#define PL_VERSION (pl_version())

int pl_fix_ver(void);
const char *pl_version(void);
36

Niklas Haas's avatar
Niklas Haas committed
37 38
// Feature tests. These aren't described in further detail, but may be useful
// for programmers wanting to programmatically check for feature support
Niklas Haas's avatar
Niklas Haas committed
39
// in their compiled libplacebo versions.
40
@extra_defs@
Niklas Haas's avatar
Niklas Haas committed
41

Niklas Haas's avatar
Niklas Haas committed
42
#endif // LIBPLACEBO_CONTEXT_H_