When building with MSVC some of the header file stuff is only relevant in early versi...
[ardour.git] / msvc_extra_headers / ardourext / sys / targetsxs.h.input
index 6653041d8a064f212e2b9d4efb000f6c1b645fda..aa0970024112597de9455adf75d01fb832737d71 100644 (file)
@@ -1,16 +1,18 @@
 #ifndef _TARGETSXS_H_
 #define _TARGETSXS_H_
 
-#pragma warning( disable : 4996 )
+#pragma warning( disable : 4244 4250 4275 4996 )
 
-#ifndef HAVE_LV2
-#define HAVE_SUIL
-#define HAVE_LV2
+#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 VST_SUPPORT
-#define VST_SUPPORT
+#ifndef WINDOWS_VST_SUPPORT
+#define WINDOWS_VST_SUPPORT
 /* Comment out the above line to build Mixbus without VST support */
 #endif
 
 /* #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
+
+#if (defined (_MSC_VER) && (_MSC_VER == 1400))
 #ifndef __midl
 #if defined(_DEBUG) || defined (DEBUG)
 /* Experimental - link to the lowest DebugCRT so we can run on another system */
@@ -51,14 +59,34 @@ __declspec(selectany) int _forceAtlDllManifestRTM;
 }
 #endif
 #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>
 
-#if (BUILDING_ARDOUR)
+/* 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