John Emmas
bb520c26ad
When building any program that uses Gtkmm (with Atkmm support) ALL modules need to agree about the status of GTKMM_ATKMM_ENABLED. Otherwise 'Gtk::Widget' can have different sizes in different modules. If that happens we can end up with all manner of inexplicable run-time crashes and hangs. GTKMM_ATKMM_ENABLED gets #defined in 'gtkmmconfig.h'. So let's #include that file at the earliest possible opportunity (where we know it'll then have a consistent value for every compilation unit).
93 lines
2.7 KiB
Plaintext
93 lines
2.7 KiB
Plaintext
#ifndef _TARGETSXS_H_
|
|
#define _TARGETSXS_H_
|
|
|
|
#pragma warning( disable : 4244 4250 4275 4996 )
|
|
|
|
#ifndef LV2_SUPPORT
|
|
#define LV2_SUPPORT 1
|
|
#define HAVE_SUIL 1
|
|
#define HAVE_LV2 1
|
|
#define HAVE_LV2_1_2_0 1
|
|
/* Comment out the above lines to build Mixbus without LV2 support */
|
|
#endif
|
|
|
|
#ifndef WINDOWS_VST_SUPPORT
|
|
#define WINDOWS_VST_SUPPORT
|
|
/* Comment out the above line to build Mixbus without VST support */
|
|
#endif
|
|
|
|
#ifndef JACK_32_64
|
|
#define JACK_32_64
|
|
/* Shouldn't really be needed but make sure that any structs we
|
|
obtain from libjack will have 1-byte packing alignment where
|
|
necessary (belt & braces approach to be on the safe side) */
|
|
#endif
|
|
|
|
#ifdef _DEBUG
|
|
#define _SECURE_SCL 1
|
|
#define _HAS_ITERATOR_DEBUGGING 1
|
|
/* #define to zero for a more conventional Debug build */
|
|
#endif
|
|
|
|
#if !defined(DEBUG) && !defined(NDEBUG)
|
|
/* Assume a debuggable Release build (RDC build) */
|
|
#define RDC_BUILD 1
|
|
#endif
|
|
|
|
#ifndef __midl
|
|
#if defined(_DEBUG) || defined (DEBUG)
|
|
/* Experimental - link to the lowest DebugCRT so we can run on another system */
|
|
#define _SXS_ASSEMBLY_VERSION "8.0.50727.42"
|
|
#else
|
|
#define _SXS_ASSEMBLY_VERSION "8.0.50727.6195"
|
|
#endif
|
|
#define _CRT_ASSEMBLY_VERSION _SXS_ASSEMBLY_VERSION
|
|
#define _MFC_ASSEMBLY_VERSION _SXS_ASSEMBLY_VERSION
|
|
#define _ATL_ASSEMBLY_VERSION _SXS_ASSEMBLY_VERSION
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
__declspec(selectany) int _forceCRTManifest;
|
|
__declspec(selectany) int _forceMFCManifest;
|
|
__declspec(selectany) int _forceAtlDllManifest;
|
|
__declspec(selectany) int _forceCRTManifestRTM;
|
|
__declspec(selectany) int _forceMFCManifestRTM;
|
|
__declspec(selectany) int _forceAtlDllManifestRTM;
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
#endif
|
|
|
|
/* 'stdint.h' conflicts with various other libraries so
|
|
let's #include stdint.h first to ensure one consistent
|
|
implementation for commonly used integer types. */
|
|
#include <stdint.h>
|
|
|
|
/* When building Gtkmm with Atkmm support, ALL modules need
|
|
to agree about the status of GTKMM_ATKMM_ENABLED. Otherwise
|
|
we end up with all manner of imexplicable run time crashes
|
|
and hangs (due to Gtk::Widget having different sizes in
|
|
different modules). GTKMM_ATKMM_ENABLED gets #defined in
|
|
'gtkmmconfig.h'. So let's #include that file here, where
|
|
we know it'll get #included for every compilation unit. */
|
|
#include <gtkmmconfig.h>
|
|
|
|
#if defined(_MSC_VER) && !defined(__MINGW__) && !defined(__MINGW32__)
|
|
/* Define these libraries as getting built as DLLs */
|
|
#define LIBAUDIOGRAPHER_DLL
|
|
#define LIBARDOUR_DLL
|
|
#define LIBMIDIPP_DLL
|
|
#define LIBPBD_DLL
|
|
#define LIBCONTROLCP_DLL
|
|
#define LIBGTKMM2EXT_DLL
|
|
#define LIBEVORAL_DLL
|
|
#define LIBTIMECODE_DLL
|
|
|
|
#if (INCLUDE_ARDOUR_MISCELLANEOUS)
|
|
#include <ardourext/misc.h>
|
|
#endif
|
|
#endif
|
|
|
|
#endif /*_TARGETSXS_H_*/
|