When building with MSVC, allow for the fact that Mixbus and Ardour can be using diffe...
[ardour.git] / msvc_extra_headers / ardourext / sys / targetsxs.h.input
1 #ifndef _TARGETSXS_H_
2 #define _TARGETSXS_H_
3
4 #pragma warning( disable : 4244 4250 4275 4996 )
5
6 #ifndef LV2_SUPPORT
7 #define LV2_SUPPORT   1
8 #define HAVE_SUIL     1
9 #define HAVE_LV2      1
10 #define HAVE_LV2_1_2_0 1
11 /* Comment out the above lines to build Mixbus without LV2 support */
12 #endif
13
14 #ifndef WINDOWS_VST_SUPPORT
15 #define WINDOWS_VST_SUPPORT
16 /* Comment out the above line to build Mixbus without VST support */
17 #endif
18
19 #ifndef CURRENT_SESSION_FILE_VERSION
20 #ifdef  MIXBUS
21 #define CURRENT_SESSION_FILE_VERSION 5990
22 #else
23 #define CURRENT_SESSION_FILE_VERSION 5990
24 #endif
25 #endif
26
27 #ifndef JACK_32_64
28 #define JACK_32_64
29 /* Shouldn't really be needed but make sure that any structs we
30    obtain from libjack will have 1-byte packing alignment where
31    necessary (belt & braces approach to be on the safe side) */
32 #endif
33
34 #ifdef _DEBUG
35 #define _SECURE_SCL 1
36 #define _HAS_ITERATOR_DEBUGGING 1
37 /* #define to zero for a more conventional Debug build */
38 #endif
39
40 #if !defined(DEBUG) && !defined(NDEBUG)
41 /* Assume a debuggable Release build (RDC build) */
42 #define RDC_BUILD 1
43 #endif
44
45 #if (defined (_MSC_VER) && (_MSC_VER == 1400))
46 #ifndef __midl
47 #if defined(_DEBUG) || defined (DEBUG)
48 /* Experimental - link to the lowest DebugCRT so we can run on another system */
49 #define _SXS_ASSEMBLY_VERSION "8.0.50727.42"
50 #else
51 #define _SXS_ASSEMBLY_VERSION "8.0.50727.6195"
52 #endif
53 #define _CRT_ASSEMBLY_VERSION _SXS_ASSEMBLY_VERSION
54 #define _MFC_ASSEMBLY_VERSION _SXS_ASSEMBLY_VERSION
55 #define _ATL_ASSEMBLY_VERSION _SXS_ASSEMBLY_VERSION
56
57 #ifdef __cplusplus
58 extern "C" {
59 #endif
60 __declspec(selectany) int _forceCRTManifest;
61 __declspec(selectany) int _forceMFCManifest;
62 __declspec(selectany) int _forceAtlDllManifest;
63 __declspec(selectany) int _forceCRTManifestRTM;
64 __declspec(selectany) int _forceMFCManifestRTM;
65 __declspec(selectany) int _forceAtlDllManifestRTM;
66 #ifdef __cplusplus
67 }
68 #endif
69 #endif
70 #endif
71
72 /* 'stdint.h' conflicts with various other libraries so
73    let's #include stdint.h first to ensure one consistent
74    implementation for commonly used integer types. */
75 #include <stdint.h>
76
77 /* When building Gtkmm with Atkmm support, ALL modules need
78    to agree about the status of GTKMM_ATKMM_ENABLED. Otherwise
79    we end up with all manner of imexplicable run time crashes
80    and hangs (due to Gtk::Widget having different sizes in
81    different modules). GTKMM_ATKMM_ENABLED gets #defined in
82    'gtkmmconfig.h'. So let's #include that file here, where
83    we know it'll get #included for every compilation unit. */
84 #include <gtkmmconfig.h>
85
86 #if defined(_MSC_VER) && !defined(__MINGW__) && !defined(__MINGW32__)
87 /* Define these libraries as getting built as DLLs */
88 #define LIBAUDIOGRAPHER_DLL
89 #define LIBARDOUR_DLL
90 #define LIBMIDIPP_DLL
91 #define LIBPBD_DLL
92 #define LIBCONTROLCP_DLL
93 #define LIBGTKMM2EXT_DLL
94 #define LIBEVORAL_DLL
95 #define LIBTIMECODE_DLL
96
97 #if (INCLUDE_ARDOUR_MISCELLANEOUS)
98 #include <ardourext/misc.h>
99 #endif
100 #endif
101
102 #endif /*_TARGETSXS_H_*/