mirror of
https://github.com/reactos/CMake.git
synced 2024-11-28 05:50:42 +00:00
cdf55d5cb4
This way, we can override only FOO_DEPRECATED to silence deprecation for a library.
42 lines
1016 B
CMake
42 lines
1016 B
CMake
|
|
#ifndef @INCLUDE_GUARD_NAME@
|
|
#define @INCLUDE_GUARD_NAME@
|
|
|
|
#ifdef @STATIC_DEFINE@
|
|
# define @EXPORT_MACRO_NAME@
|
|
# define @NO_EXPORT_MACRO_NAME@
|
|
#else
|
|
# ifndef @EXPORT_MACRO_NAME@
|
|
# ifdef @EXPORT_IMPORT_CONDITION@
|
|
/* We are building this library */
|
|
# define @EXPORT_MACRO_NAME@ @DEFINE_EXPORT@
|
|
# else
|
|
/* We are using this library */
|
|
# define @EXPORT_MACRO_NAME@ @DEFINE_IMPORT@
|
|
# endif
|
|
# endif
|
|
|
|
# ifndef @NO_EXPORT_MACRO_NAME@
|
|
# define @NO_EXPORT_MACRO_NAME@ @DEFINE_NO_EXPORT@
|
|
# endif
|
|
#endif
|
|
|
|
#ifndef @DEPRECATED_MACRO_NAME@
|
|
# define @DEPRECATED_MACRO_NAME@ @DEFINE_DEPRECATED@
|
|
#endif
|
|
|
|
#ifndef @DEPRECATED_MACRO_NAME@_EXPORT
|
|
# define @DEPRECATED_MACRO_NAME@_EXPORT @EXPORT_MACRO_NAME@ @DEPRECATED_MACRO_NAME@
|
|
#endif
|
|
|
|
#ifndef @DEPRECATED_MACRO_NAME@_NO_EXPORT
|
|
# define @DEPRECATED_MACRO_NAME@_NO_EXPORT @NO_EXPORT_MACRO_NAME@ @DEPRECATED_MACRO_NAME@
|
|
#endif
|
|
|
|
#cmakedefine01 DEFINE_NO_DEPRECATED
|
|
#if DEFINE_NO_DEPRECATED
|
|
# define @NO_DEPRECATED_MACRO_NAME@
|
|
#endif
|
|
|
|
#endif
|