mirror of
https://github.com/webmproject/libwebp.git
synced 2024-12-25 21:28:22 +01:00
3661b98069
The goal is not to replace our autotools configuration, but to provide a minimal CMake file that can build the lib, cwebp and dwebp. Change-Id: I3be343bd698d118c5f00172449d232d87e868f23
147 lines
4.2 KiB
C
147 lines
4.2 KiB
C
/* Adapted from the autotools src/webp/config.h.in. */
|
|
|
|
/* Define if building universal (internal helper macro) */
|
|
/* TODO: handle properly in CMake */
|
|
#cmakedefine AC_APPLE_UNIVERSAL_BUILD 1
|
|
|
|
/* Set to 1 if __builtin_bswap16 is available */
|
|
#cmakedefine HAVE_BUILTIN_BSWAP16 1
|
|
|
|
/* Set to 1 if __builtin_bswap32 is available */
|
|
#cmakedefine HAVE_BUILTIN_BSWAP32 1
|
|
|
|
/* Set to 1 if __builtin_bswap64 is available */
|
|
#cmakedefine HAVE_BUILTIN_BSWAP64 1
|
|
|
|
/* Define to 1 if you have the <dlfcn.h> header file. */
|
|
#cmakedefine HAVE_DLFCN_H 1
|
|
|
|
/* Define to 1 if you have the <GLUT/glut.h> header file. */
|
|
#cmakedefine HAVE_GLUT_GLUT_H 1
|
|
|
|
/* Define to 1 if you have the <GL/glut.h> header file. */
|
|
#cmakedefine HAVE_GL_GLUT_H 1
|
|
|
|
/* Define to 1 if you have the <inttypes.h> header file. */
|
|
#cmakedefine HAVE_INTTYPES_H 1
|
|
|
|
/* Define to 1 if you have the <memory.h> header file. */
|
|
#cmakedefine HAVE_MEMORY_H 1
|
|
|
|
/* Define to 1 if you have the <OpenGL/glut.h> header file. */
|
|
#cmakedefine HAVE_OPENGL_GLUT_H 1
|
|
|
|
/* Have PTHREAD_PRIO_INHERIT. */
|
|
#cmakedefine HAVE_PTHREAD_PRIO_INHERIT @HAVE_PTHREAD_PRIO_INHERIT@
|
|
|
|
/* Define to 1 if you have the <shlwapi.h> header file. */
|
|
#cmakedefine HAVE_SHLWAPI_H 1
|
|
|
|
/* Define to 1 if you have the <stdint.h> header file. */
|
|
#cmakedefine HAVE_STDINT_H 1
|
|
|
|
/* Define to 1 if you have the <stdlib.h> header file. */
|
|
#cmakedefine HAVE_STDLIB_H 1
|
|
|
|
/* Define to 1 if you have the <strings.h> header file. */
|
|
#cmakedefine HAVE_STRINGS_H 1
|
|
|
|
/* Define to 1 if you have the <string.h> header file. */
|
|
#cmakedefine HAVE_STRING_H 1
|
|
|
|
/* Define to 1 if you have the <sys/stat.h> header file. */
|
|
#cmakedefine HAVE_SYS_STAT_H 1
|
|
|
|
/* Define to 1 if you have the <sys/types.h> header file. */
|
|
#cmakedefine HAVE_SYS_TYPES_H 1
|
|
|
|
/* Define to 1 if you have the <unistd.h> header file. */
|
|
#cmakedefine HAVE_UNISTD_H 1
|
|
|
|
/* Define to 1 if you have the <wincodec.h> header file. */
|
|
#cmakedefine HAVE_WINCODEC_H 1
|
|
|
|
/* Define to 1 if you have the <windows.h> header file. */
|
|
#cmakedefine HAVE_WINDOWS_H 1
|
|
|
|
/* Define to the sub-directory in which libtool stores uninstalled libraries.
|
|
*/
|
|
/* TODO: handle properly in CMake */
|
|
#cmakedefine LT_OBJDIR "@LT_OBJDIR@"
|
|
|
|
/* Name of package */
|
|
#cmakedefine PACKAGE "@PROJECT_NAME@"
|
|
|
|
/* Define to the address where bug reports for this package should be sent. */
|
|
#cmakedefine PACKAGE_BUGREPORT "@PACKAGE_BUGREPORT@"
|
|
|
|
/* Define to the full name of this package. */
|
|
#cmakedefine PACKAGE_NAME "@PACKAGE_NAME@"
|
|
|
|
/* Define to the full name and version of this package. */
|
|
#cmakedefine PACKAGE_STRING "@PACKAGE_STRING@"
|
|
|
|
/* Define to the one symbol short name of this package. */
|
|
#cmakedefine PACKAGE_TARNAME "@PACKAGE_TARNAME@"
|
|
|
|
/* Define to the home page for this package. */
|
|
#cmakedefine PACKAGE_URL "@PACKAGE_URL@"
|
|
|
|
/* Define to the version of this package. */
|
|
#cmakedefine PACKAGE_VERSION "@PACKAGE_VERSION@"
|
|
|
|
/* Define to necessary symbol if this constant uses a non-standard name on
|
|
your system. */
|
|
#cmakedefine PTHREAD_CREATE_JOINABLE 1
|
|
|
|
/* Define to 1 if you have the ANSI C header files. */
|
|
#cmakedefine STDC_HEADERS 1
|
|
|
|
/* Version number of package */
|
|
#cmakedefine VERSION "@VERSION@"
|
|
|
|
/* Enable experimental code */
|
|
#cmakedefine WEBP_EXPERIMENTAL_FEATURES 1
|
|
|
|
/* Define to 1 to force aligned memory operations */
|
|
#cmakedefine WEBP_FORCE_ALIGNED 1
|
|
|
|
/* Set to 1 if AVX2 is supported */
|
|
#cmakedefine WEBP_HAVE_AVX2 1
|
|
|
|
/* Set to 1 if GIF library is installed */
|
|
#cmakedefine WEBP_HAVE_GIF 1
|
|
|
|
/* Set to 1 if OpenGL is supported */
|
|
#cmakedefine WEBP_HAVE_GL 1
|
|
|
|
/* Set to 1 if JPEG library is installed */
|
|
#cmakedefine WEBP_HAVE_JPEG 1
|
|
|
|
/* Set to 1 if PNG library is installed */
|
|
#cmakedefine WEBP_HAVE_PNG 1
|
|
|
|
/* Set to 1 if SSE2 is supported */
|
|
#cmakedefine WEBP_HAVE_SSE2 1
|
|
|
|
/* Set to 1 if SSE4.1 is supported */
|
|
#cmakedefine WEBP_HAVE_SSE41 1
|
|
|
|
/* Set to 1 if TIFF library is installed */
|
|
#cmakedefine WEBP_HAVE_TIFF 1
|
|
|
|
/* Undefine this to disable thread support. */
|
|
#cmakedefine WEBP_USE_THREAD 1
|
|
|
|
/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
|
|
significant byte first (like Motorola and SPARC, unlike Intel). */
|
|
#if defined AC_APPLE_UNIVERSAL_BUILD
|
|
# if defined __BIG_ENDIAN__
|
|
# define WORDS_BIGENDIAN 1
|
|
# endif
|
|
#else
|
|
# ifndef WORDS_BIGENDIAN
|
|
# undef WORDS_BIGENDIAN
|
|
# endif
|
|
#endif
|