mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 02:03:12 +02:00
The CMake scripts calculate the install path for python scripts by distutils.sysconfig.get_python_lib( plat_specific=0, standard_lib=0, prefix='' ) which generates a string in line with lib/python2.7/site-packages This string ends up in the CMake variable PYTHON_DEST and is used by the install step as destination directory for pcbnew.py. There has been a hard-coded assumption on the content of that string in PcbNew which is not compatible with FreeBSD 11.1. This commit eliminates the hard-coded assumption in PcbNew and reuses the install path as known by CMake. Fixes: lp:1777921 * https://bugs.launchpad.net/kicad/+bug/1777921 (cherry picked from commit dd3c24faf8372057436b9b001bbc3ffb3457fc05)
79 lines
2.0 KiB
CMake
79 lines
2.0 KiB
CMake
// Do not modify this file, it was automatically generated by CMake.
|
|
|
|
#ifndef CONFIG_H_
|
|
#define CONFIG_H_
|
|
|
|
#cmakedefine HAVE_STRCASECMP
|
|
|
|
#cmakedefine HAVE_STRNCASECMP
|
|
|
|
#cmakedefine HAVE_STRTOKR // spelled odly to differ from wx's similar test
|
|
|
|
// 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
|
|
|
|
#cmakedefine HAVE_CLOCK_GETTIME
|
|
|
|
#cmakedefine HAVE_GETTIMEOFDAY_FUNC
|
|
|
|
#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
|
|
|
|
#if !defined( HAVE_STRCASECMP )
|
|
#define strcasecmp stricmp
|
|
#endif
|
|
|
|
#if !defined( HAVE_STRNCASECMP )
|
|
#define strncasecmp strnicmp
|
|
#endif
|
|
|
|
// Use Posix getc_unlocked() instead of getc() when it's available.
|
|
#cmakedefine HAVE_FGETC_NOLOCK
|
|
|
|
// Warning!!! Using wxGraphicContext for rendering is experimental.
|
|
#cmakedefine USE_WX_GRAPHICS_CONTEXT 1
|
|
|
|
/// The legacy file format revision of the *.brd file created by this build
|
|
#define LEGACY_BOARD_FILE_VERSION 2
|
|
|
|
/// The install prefix defined during CMake configuration or fall back to CMAKE_INSTALL_PREFIX.
|
|
#define DEFAULT_INSTALL_PATH "@DEFAULT_INSTALL_PATH@"
|
|
|
|
/// The wxPython version found during configuration.
|
|
#if defined( KICAD_SCRIPTING_WXPYTHON )
|
|
#define WXPYTHON_VERSION "@WXPYTHON_VERSION@"
|
|
#endif
|
|
|
|
/// When defined, build the GITHUB_PLUGIN for pcbnew.
|
|
#cmakedefine BUILD_GITHUB_PLUGIN
|
|
|
|
/// A file extension with a leading '.' is a suffix, and this one is used on
|
|
/// top level program modules which implement the KIFACE.
|
|
#define KIFACE_SUFFIX "@KIFACE_SUFFIX@"
|
|
#define KIFACE_PREFIX "@KIFACE_PREFIX@"
|
|
|
|
/// Allows scripts install directory to be referenced by the program code.
|
|
#define PYTHON_DEST "@PYTHON_DEST@"
|
|
|
|
#endif // CONFIG_H_
|