Debian Codegraph @

Source/exehead/config.h

raw
1 /*
2 * config.h
3 *
4 * This file is a part of NSIS.
5 *
6 * Copyright (C) 1999-2026 Nullsoft and Contributors
7 *
8 * Licensed under the zlib/libpng license (the "License");
9 * you may not use this file except in compliance with the License.
10 *
11 * Licence details can be found in the file COPYING.
12 *
13 * This software is provided 'as-is', without any express or implied
14 * warranty.
15 *
16 * Reviewed for Unicode support by Jim Park -- 08/22/2007
17 */
18
19 #ifndef NSIS_CONFIG_H
20 #define NSIS_CONFIG_H
21
22 #ifndef APSTUDIO_INVOKED // keep msdev's resource editor from mangling the .rc file
23
24 #include <nsis-sconf.h>
25
26 #ifndef NSIS_CONFIG_VISIBLE_SUPPORT
27 #ifdef NSIS_CONFIG_LICENSEPAGE
28 #undef NSIS_CONFIG_LICENSEPAGE
29 #endif
30 #ifdef NSIS_CONFIG_COMPONENTPAGE
31 #undef NSIS_CONFIG_COMPONENTPAGE
32 #endif
33 #ifdef NSIS_SUPPORT_BGBG
34 #undef NSIS_SUPPORT_BGBG
35 #endif
36 #ifdef NSIS_CONFIG_ENHANCEDUI_SUPPORT
37 #undef NSIS_CONFIG_ENHANCEDUI_SUPPORT
38 #endif
39 #endif
40
41 #ifdef NSIS_CONFIG_ENHANCEDUI_SUPPORT
42 #ifndef NSIS_SUPPORT_HWNDS
43 #define NSIS_SUPPORT_HWNDS
44 #endif
45 #endif
46
47 #ifdef NSIS_CONFIG_LOG_ODS
48 #ifndef NSIS_CONFIG_LOG
49 #error NSIS_CONFIG_LOG_ODS relies on NSIS_CONFIG_LOG, but NSIS_CONFIG_LOG is not defined
50 #endif
51 #endif
52
53 #ifdef NSIS_CONFIG_LOG_STDOUT
54 #ifndef NSIS_CONFIG_LOG
55 #error NSIS_CONFIG_LOG_STDOUT relies on NSIS_CONFIG_LOG, but NSIS_CONFIG_LOG is not defined
56 #endif
57 #endif
58
59 #ifdef NSIS_CONFIG_LOG_TIMESTAMP
60 #ifndef NSIS_CONFIG_LOG
61 #error NSIS_CONFIG_LOG_TIMESTAMP relies on NSIS_CONFIG_LOG, but NSIS_CONFIG_LOG is not defined
62 #endif
63 #endif
64
65 #if defined(NSIS_CONFIG_CRC_SUPPORT) && defined(NSIS_CONFIG_VISIBLE_SUPPORT)
66 #define _NSIS_CONFIG_VERIFYDIALOG
67 #endif
68
69 #if defined(NSIS_CONFIG_UNINSTALL_SUPPORT) && defined(NSIS_CONFIG_VISIBLE_SUPPORT)
70 #define _NSIS_CONFIG_UNINSTDLG
71 #endif
72
73 #if defined(NSIS_CONFIG_UNINSTALL_SUPPORT) && defined(NSIS_CONFIG_VISIBLE_SUPPORT)
74 #define _NSIS_CONFIG_UNINSTDLG
75 #endif
76
77 #ifdef EXEHEAD
78 #ifdef NSIS_CONFIG_COMPRESSION_SUPPORT
79 #ifndef NSIS_COMPRESS_USE_ZLIB
80 #ifndef NSIS_COMPRESS_USE_BZIP2
81 #ifndef NSIS_COMPRESS_USE_LZMA
82 #error compression is enabled but zlib, bzip2 and lzma are disabled.
83 #endif
84 #endif
85 #endif
86 #endif
87
88 #ifdef NSIS_COMPRESS_USE_ZLIB
89 #ifdef NSIS_COMPRESS_USE_BZIP2
90 #error both zlib and bzip2 are enabled.
91 #endif
92 #ifdef NSIS_COMPRESS_USE_LZMA
93 #error both zlib and lzma are enabled.
94 #endif
95 #endif
96 #ifdef NSIS_COMPRESS_USE_BZIP2
97 #ifdef NSIS_COMPRESS_USE_LZMA
98 #error both bzip2 and lzma are enabled.
99 #endif
100 #endif
101
102 #ifdef NSIS_CONFIG_COMPRESSION_SUPPORT
103 #ifdef NSIS_COMPRESS_WHOLE
104 #ifdef NSIS_CONFIG_VISIBLE_SUPPORT
105 #ifndef _NSIS_CONFIG_VERIFYDIALOG
106 #define _NSIS_CONFIG_VERIFYDIALOG
107 #endif
108 #endif
109 #endif
110 #endif
111 #endif // EXEHEAD
112
113 #ifdef NSIS_COMPRESS_WHOLE
114 #ifndef NSIS_CONFIG_COMPRESSION_SUPPORT
115 #error NSIS_COMPRESS_WHOLE defined, NSIS_CONFIG_COMPRESSION_SUPPORT not
116 #endif
117 #endif
118
119 #ifdef NSIS_CONFIG_CRC_ANAL
120 #ifndef NSIS_CONFIG_CRC_SUPPORT
121 #error NSIS_CONFIG_CRC_ANAL defined but NSIS_CONFIG_CRC_SUPPORT not
122 #endif
123 #endif
124
125 #ifndef NSIS_COMPRESS_BZIP2_LEVEL
126 #define NSIS_COMPRESS_BZIP2_LEVEL 9
127 #endif
128
129 #ifdef NSIS_CONFIG_PLUGIN_SUPPORT
130 #ifndef NSIS_SUPPORT_RMDIR
131 #error NSIS_CONFIG_PLUGIN_SUPPORT relies on NSIS_SUPPORT_RMDIR, but NSIS_SUPPORT_RMDIR is not defined
132 #endif
133 #ifndef NSIS_SUPPORT_FILE
134 #error NSIS_CONFIG_PLUGIN_SUPPORT relies on NSIS_SUPPORT_FILE, but NSIS_SUPPORT_FILE is not defined
135 #endif
136 #ifndef NSIS_SUPPORT_ACTIVEXREG
137 #error NSIS_CONFIG_PLUGIN_SUPPORT relies on NSIS_SUPPORT_ACTIVEXREG, but NSIS_SUPPORT_ACTIVEXREG is not defined
138 #endif
139 #ifndef NSIS_SUPPORT_STACK
140 #error NSIS_CONFIG_PLUGIN_SUPPORT relies on NSIS_SUPPORT_STACK, but NSIS_SUPPORT_STACK is not defined
141 #endif
142 #ifndef NSIS_SUPPORT_FNUTIL
143 #error NSIS_CONFIG_PLUGIN_SUPPORT relies on NSIS_SUPPORT_FNUTIL, but NSIS_SUPPORT_FNUTIL is not defined
144 #endif
145 #ifndef NSIS_SUPPORT_DELETE
146 #error NSIS_CONFIG_PLUGIN_SUPPORT relies on NSIS_SUPPORT_DELETE, but NSIS_SUPPORT_DELETE is not defined
147 #endif
148 #ifndef NSIS_SUPPORT_MESSAGEBOX
149 #error NSIS_CONFIG_PLUGIN_SUPPORT relies on NSIS_SUPPORT_MESSAGEBOX, but NSIS_SUPPORT_MESSAGEBOX is not defined
150 #endif
151 #endif
152
153 #if NSIS_MAX_INST_TYPES > 32
154 #error NSIS_MAX_INST_TYPES > 32
155 #endif
156
157 #ifndef NSIS_DEFAULT_LANG
158 #define NSIS_DEFAULT_LANG 1033
159 #endif
160
161 #endif//!APSTUDIO_INVOKED
162
163 #endif // NSIS_CONFIG_H