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