2012-11-10 00:39:18 -06:00
|
|
|
// Do not modify this file, it was automatically generated by CMake.
|
2008-05-05 18:23:24 +00:00
|
|
|
|
2011-12-14 20:24:52 -06:00
|
|
|
#ifndef CONFIG_H_
|
|
|
|
#define CONFIG_H_
|
2008-05-05 18:23:24 +00:00
|
|
|
|
2009-05-21 17:42:42 +00:00
|
|
|
#cmakedefine HAVE_STRCASECMP
|
2008-05-05 18:23:24 +00:00
|
|
|
|
2009-05-21 17:42:42 +00:00
|
|
|
#cmakedefine HAVE_STRNCASECMP
|
|
|
|
|
2023-09-06 22:49:27 -04:00
|
|
|
#cmakedefine HAVE_STRTOKS
|
|
|
|
#ifdef HAVE_STRTOKS
|
|
|
|
// strtok_s is the actual C11 standard rather than posix strtok_r
|
|
|
|
// but its also an optional standard, MSVC supports it, so alias it
|
|
|
|
#define HAVE_STRTOKR
|
|
|
|
#define strtok_r strtok_s
|
|
|
|
#else
|
2021-06-09 19:32:58 +00:00
|
|
|
#cmakedefine HAVE_STRTOKR // spelled oddly to differ from wx's similar test
|
2023-09-06 22:49:27 -04:00
|
|
|
#endif
|
2013-12-10 17:41:34 -06:00
|
|
|
|
2013-02-10 19:41:49 -05:00
|
|
|
// Handle platform differences in math.h
|
|
|
|
#cmakedefine HAVE_MATH_H
|
|
|
|
|
|
|
|
// Handle platform differences in C++ cmath.
|
|
|
|
#cmakedefine HAVE_CXX_CMATH
|
|
|
|
|
|
|
|
#cmakedefine HAVE_CMATH_ASINH
|
|
|
|
|
|
|
|
#cmakedefine HAVE_CMATH_ACOSH
|
|
|
|
|
|
|
|
#cmakedefine HAVE_CMATH_ATANH
|
|
|
|
|
|
|
|
#cmakedefine HAVE_CMATH_ISINF
|
|
|
|
|
2020-04-03 13:01:01 -04:00
|
|
|
#if !defined( HAVE_CLOCK_GETTIME )
|
2012-01-13 03:46:02 -06:00
|
|
|
#cmakedefine HAVE_CLOCK_GETTIME
|
2020-04-03 13:01:01 -04:00
|
|
|
#endif
|
2013-02-10 19:41:49 -05:00
|
|
|
|
2012-01-13 03:46:02 -06:00
|
|
|
#cmakedefine HAVE_GETTIMEOFDAY_FUNC
|
|
|
|
|
2009-05-21 17:42:42 +00:00
|
|
|
#cmakedefine MALLOC_IN_STDLIB_H
|
|
|
|
|
|
|
|
#if !defined( MALLOC_IN_STDLIB_H )
|
|
|
|
#include <malloc.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#cmakedefine HAVE_ISO646_H
|
|
|
|
|
|
|
|
#if defined( HAVE_ISO646_H )
|
|
|
|
#include <iso646.h>
|
|
|
|
#endif
|
|
|
|
|
2016-08-16 10:27:09 +02:00
|
|
|
#if !defined( HAVE_STRCASECMP )
|
|
|
|
#define strcasecmp stricmp
|
2009-05-21 17:42:42 +00:00
|
|
|
#endif
|
|
|
|
|
2016-08-16 10:27:09 +02:00
|
|
|
#if !defined( HAVE_STRNCASECMP )
|
|
|
|
#define strncasecmp strnicmp
|
2009-05-21 17:42:42 +00:00
|
|
|
#endif
|
|
|
|
|
2023-12-19 15:19:57 +00:00
|
|
|
// Does the compiler support the -Wunused-const-variable warning
|
|
|
|
#cmakedefine HAVE_WUNUSED_CONST_VARIABLE
|
|
|
|
|
2020-07-03 02:59:19 +01:00
|
|
|
// Does the compiler support the -Wimplicit-int-float-conversion warning
|
|
|
|
#cmakedefine HAVE_WIMPLICIT_FLOAT_CONVERSION
|
|
|
|
|
2022-09-24 02:11:41 +01:00
|
|
|
// Does the compiler support the -Winconsistent-missing-override
|
|
|
|
#cmakedefine HAVE_WINCONSISTENT_MISSING_OVERRIDE
|
|
|
|
|
2012-11-10 00:39:18 -06:00
|
|
|
// Use Posix getc_unlocked() instead of getc() when it's available.
|
|
|
|
#cmakedefine HAVE_FGETC_NOLOCK
|
2012-10-09 10:31:36 -04:00
|
|
|
|
2012-11-10 00:39:18 -06:00
|
|
|
// Warning!!! Using wxGraphicContext for rendering is experimental.
|
2014-01-08 08:47:39 -06:00
|
|
|
#cmakedefine USE_WX_GRAPHICS_CONTEXT 1
|
2009-11-05 08:52:41 +00:00
|
|
|
|
2012-04-07 14:05:56 -04:00
|
|
|
/// The legacy file format revision of the *.brd file created by this build
|
2014-01-08 08:47:39 -06:00
|
|
|
#define LEGACY_BOARD_FILE_VERSION 2
|
2011-12-14 20:24:52 -06:00
|
|
|
|
2015-04-08 13:27:04 -04:00
|
|
|
/// The install prefix defined during CMake configuration or fall back to CMAKE_INSTALL_PREFIX.
|
|
|
|
#define DEFAULT_INSTALL_PATH "@DEFAULT_INSTALL_PATH@"
|
2015-02-03 15:42:33 -05:00
|
|
|
|
2015-02-14 19:23:54 -05:00
|
|
|
/// The wxPython version found during configuration.
|
|
|
|
#if defined( KICAD_SCRIPTING_WXPYTHON )
|
2015-02-18 20:47:34 -05:00
|
|
|
#define WXPYTHON_VERSION "@WXPYTHON_VERSION@"
|
2015-02-14 19:23:54 -05:00
|
|
|
#endif
|
|
|
|
|
2021-01-21 21:28:38 -05:00
|
|
|
#define PYTHON_VERSION_MAJOR @PYTHON_VERSION_MAJOR@
|
|
|
|
#define PYTHON_VERSION_MINOR @PYTHON_VERSION_MINOR@
|
|
|
|
|
2014-02-03 13:26:18 -06:00
|
|
|
/// A file extension with a leading '.' is a suffix, and this one is used on
|
|
|
|
/// top level program modules which implement the KIFACE.
|
2016-09-20 11:59:43 -04:00
|
|
|
#define KIFACE_SUFFIX "@KIFACE_SUFFIX@"
|
|
|
|
#define KIFACE_PREFIX "@KIFACE_PREFIX@"
|
2014-02-03 13:26:18 -06:00
|
|
|
|
2018-06-20 19:57:18 +02:00
|
|
|
/// Allows scripts install directory to be referenced by the program code.
|
|
|
|
#define PYTHON_DEST "@PYTHON_DEST@"
|
|
|
|
|
2023-11-13 23:08:53 -05:00
|
|
|
#define PYTHON_SITE_PACKAGE_PATH "@PYTHON_SITE_PACKAGE_PATH@"
|
|
|
|
|
2021-01-12 08:19:59 -08:00
|
|
|
/// Allows scripts install directory to be referenced by the program code.
|
2021-04-04 08:48:02 +02:00
|
|
|
#define KICAD_DATA "@KICAD_DATA@"
|
2021-01-12 08:19:59 -08:00
|
|
|
|
2021-03-29 15:37:11 +02:00
|
|
|
/// Allows KiCad stock EDA library data (templates, symbols, footprints, 3dmodels)
|
|
|
|
/// directory to be referenced by the program code.
|
|
|
|
#define KICAD_LIBRARY_DATA "@KICAD_LIBRARY_DATA@"
|
|
|
|
|
2021-04-05 19:05:42 +02:00
|
|
|
/// Allows documentation install directory to be referenced by the program code.
|
|
|
|
#define KICAD_DOCS "@KICAD_DOCS@"
|
|
|
|
|
2021-01-23 11:22:39 -05:00
|
|
|
// Plugins directory
|
2021-04-04 08:48:02 +02:00
|
|
|
#define KICAD_PLUGINDIR "@CMAKE_INSTALL_FULL_LIBDIR@"
|
2021-01-23 11:22:39 -05:00
|
|
|
|
2020-07-11 16:33:41 -04:00
|
|
|
/// ngspice version string detected by pkg-config when available.
|
2021-04-04 08:48:02 +02:00
|
|
|
#cmakedefine NGSPICE_BUILD_VERSION "@NGSPICE_BUILD_VERSION@"
|
2020-07-11 16:33:41 -04:00
|
|
|
|
|
|
|
/// When pkg-config config is not available for ngspice, use ngspice/config.h for version.
|
|
|
|
#cmakedefine NGSPICE_HAVE_CONFIG_H
|
|
|
|
|
2021-06-15 22:52:16 -04:00
|
|
|
/// Path to the python executable that should be used by KiCad
|
|
|
|
#define PYTHON_EXECUTABLE "@PYTHON_EXECUTABLE@"
|
|
|
|
|
2011-12-14 20:24:52 -06:00
|
|
|
#endif // CONFIG_H_
|