forked from jbkauai/Operator-Console-Qt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathimatestdefines.h
125 lines (96 loc) · 2.89 KB
/
imatestdefines.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
#ifndef IMATESTDEFINES_H
#define IMATESTDEFINES_H
///
/// Define different keys for differing Imatest interfaces based on version
///
/// Set the Imatest version by adding the appropriate IMATEST version
/// to the DEFINES variable in OperatorConsole.pro. For example:
/// DEFINES += IMATEST_5_1
///
#if defined IMATEST_4_2
#define INI_INCLUDE_SUBSECTION
#define INI_SEPARATE_PARAMS
#define INI_V2_FORMAT
#define LOWER_CASE_INI_SECTIONS
#elif defined IMATEST_4_3
#define INI_SEPARATE_PARAMS
#define INI_V2_FORMAT
#define LOWER_CASE_INI_SECTIONS
#elif defined IMATEST_4_4
#define INI_SEPARATE_PARAMS
#define INI_V2_FORMAT
#define LOWER_CASE_INI_SECTIONS
#elif defined IMATEST_4_5
#define INI_SEPARATE_PARAMS
#define INI_V2_FORMAT
#define LOWER_CASE_INI_SECTIONS
#elif defined IMATEST_5_0
#define INI_SEPARATE_PARAMS
#define INI_V2_FORMAT
#define LOWER_CASE_INI_SECTIONS
#elif defined IMATEST_5_1
#define INI_SEPARATE_PARAMS
#define INI_V2_FORMAT
#define LOWER_CASE_INI_SECTIONS
#else
// All versions below 4.2
#define INI_INCLUDE_SUBSECTION
#endif
#ifdef DEMO_VERSION
#define NO_AUTHORIZATION
#endif
//
// These values are put into m_config, and get passed to the sfrplus and blemish functions
//
#ifdef INI_V2_FORMAT
#define INI_FILENAME "Data\\imatest-v2.ini"
#else
#define INI_FILENAME "Data\\imatest.ini"
#endif
#if defined IMATEST_4_2
#ifdef _M_X64
#define PROGRAMPATH "C:\\Program Files\\Imatest\\v4.2\\IT\\bin"
#else
#define PROGRAMPATH "C:\\Program Files (x86)\\Imatest\\v4.2\\IT\\bin"
#endif
#elif defined IMATEST_4_3
#ifdef _M_X64
#define PROGRAMPATH "C:\\Program Files\\Imatest\\v4.3\\IT\\bin"
#else
#define PROGRAMPATH "C:\\Program Files (x86)\\Imatest\\v4.3\\IT\\bin"
#endif
#elif defined IMATEST_4_4
#ifdef _M_X64
#define PROGRAMPATH "C:\\Program Files\\Imatest\\v4.4\\IT\\bin"
#else
#define PROGRAMPATH "C:\\Program Files (x86)\\Imatest\\v4.4\\IT\\bin"
#endif
#elif defined IMATEST_4_5
#ifdef _M_X64
#define PROGRAMPATH "C:\\Program Files\\Imatest\\v4.5\\IT\\bin"
#else
#define PROGRAMPATH "C:\\Program Files (x86)\\Imatest\\v4.5\\IT\\bin"
#endif
#elif defined IMATEST_5_0
#ifdef _M_X64
#define PROGRAMPATH "C:\\Program Files\\Imatest\\v5.0\\IT\\bin"
#else
#define PROGRAMPATH "C:\\Program Files (x86)\\Imatest\\v5.0\\IT\\bin"
#endif
#elif defined IMATEST_5_1
#ifdef _M_X64
#define PROGRAMPATH "C:\\Program Files\\Imatest\\v5.1\\IT\\bin"
#else
#define PROGRAMPATH "C:\\Program Files (x86)\\Imatest\\v5.1\\IT\\bin"
#endif
#else
#define PROGRAMPATH "C:\\Program Files (x86)\\Imatest\\v4.1\\IT\\bin"
#endif
#ifndef IMA_CALL_CONV
#ifdef _WIN32
#define IMA_CALL_CONV __cdecl
#else
#define IMA_CALL_CONV
#endif
#endif
#endif // IMATESTDEFINES_H