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