这篇附录主要包含了我整理的与项目模板编译链接器设置相关的变量。
微软文档中有更详细的记载,链接:http://msdn.microsoft.com/en-us/library/ms168475%28v=vs.100%29.aspx
编译器变量
1: /*!警告等级*/
2: enum warninglevel
3: {
4: /*!关闭所有警告*/
5: warningLevel_0,
6: /*!W1*/
7: warningLevel_1,
8: /*!W2*/
9: warningLevel_2,
10: /*!W3*/
11: warningLevel_3,
12: /*!W4*/
13: warningLevel_4
14: };
15: /*!内联函数扩展*/
16: enum inlineexpansionoption
17: {
18: /*!禁用*/
19: expandDisable,
20: /*!适合于_inline*/
21: expandOnlyInline,
22: /*!任何适用项*/
23: expandAnySuitable
24:
25: };
26: /*!优化*/
27: enum optimization
28: {
29: /*!禁用*/
30: optimizeDisabled,
31: /*!使大小最小化*/
32: optimizeMinSpace,
33: /*!使速度最大化*/
34: optimizeMaxSpeed,
35: /*!全部优化*/
36: optimizeFull,
37: /*!无*/
38: optimizeCustom
39: };
40: /*!启用 C++ 异常*/
41: enum exceptionhandling
42: {
43: /*!否*/
44: cppExceptionHandlingNo,
45: /*!是*/
46: cppExceptionHandlingYes,
47: /*!是,且有SEH异常*/
48: cppExceptionHandlingYesWithSEH
49: };
50: /*!基本运行时检查*/
51: enum basicruntimechecks
52: {
53: /*!默认*/
54: runtimeBasicCheckNone,
55: /*!堆栈帧(/RTCs)*/
56: runtimeCheckStackFrame,
57: /*!未初始化的变量(/RTCu)*/
58: runtimeCheckUninitVariables,
59: /*!两者(/RTCsu)*/
60: runtimeBasicCheckAll
61:
62: };
63: /*!编译为*/
64: enum compileas
65: {
66: /*!默认*/
67: compileAsDefault,
68: /*!编译为 C 代码 (/TC)*/
69: compileAsC,
70: /*!编译为 C++ 代码 (/TP)*/
71: compileAsCPlusPlus
72: };
73: /*!运行库*/
74: enum runtimelibrary
75: {
76: /*!多线程(/MT)*/
77: rtMultiThreaded,
78: /*!多线程调试(/MTd)*/
79: rtMultiThreadedDebug,
80: /*!多线程 DLL(/MD)*/
81: rtMultiThreadedDLL,
82: /*!多线程调试 DLL(/MDd)*/
83: rtMultiThreadedDebugDLL
84: };
85: /*!预编译头*/
86: enum pchoption
87: {
88: /*!不使用*/
89: pchNone,
90: /*!创建*/
91: pchCreateUsingSpecific,
92: /*!使用*/
93: pchUseUsingSpecific,
94: };
95:
96: string AdditionalOptions; ///<附加选项
97: warninglevel WarningLevel; ///<警告等级
98: inlineexpansionoption InlineFunctionExpansion;///<内联函数扩展
99: optimization Optimization;///<优化
100: string PreprocessorDefinitions; ///<预处理器定义
101: bool MinimalRebuild;///< 启用最小重新生成 /GM
102: exceptionhandling ExceptionHandling;///<启用 C++ 异常
103: basicruntimechecks BasicRuntimeChecks;///<基本运行时检查
104: string ProgramDataBaseFileName;///<程序数据库文件名
105: compileas CompileAs; ///< 编译为
106: string AssemblerListingLocation;///< ASM 列表位置
107: runtimelibrary RuntimeLibrary;///<运行库
108: bool RuntimeTypeInfo; ///<启动运行时类型信息
109: pchoption UsePrecompiledHeader;///< 预编译头
110: string PrecompiledHeaderThrough;///<预编译头输出文件
111: string PrecompiledHeaderFile;///<预编译头文件
112: string ForcedIncludeFiles;///<强制包含文件
113: string AdditionalIncludeDirectories;///<附加包含目录
链接器变量
1: /*!启用增量链接*/
2: enum linkincremental
3: {
4: /*!Default*/
5: linkIncrementalDefault,
6: /*!否 (/INCREMENTAL:NO)*/
7: linkIncrementalNo,
8: /*!是 (/INCREMENTAL)*/
9: linkIncrementalYes
10: };
11:
12: bool GenerateManifest;///<生成清单 true: /MANIFEST | false: /MANIFEST:NO )
13: linkincremental LinkIncremental;///< 启用增量链接
14: bool GenerateDebugInformation;///< 生成调试信息
15: string ProgramDatabaseFile;///< 生成程序数据库文件
16: string AdditionalDependencies; ///< 附加依赖项
17: string AdditionalLibraryDirectories;///< 附加库目录
资源编译器变量
1: enum resourcelangid
2: {
3: /*!Default*/
4: rcUseDefault,
5: /*!Afrikaans*/
6: rcAfrikaans,
7: /*!Albanian*/
8: rcAlbanian,
9: /*!Arabic - Saudi Arabia*/
10: rcArabicSaudi,
11: /*!Arabic - Iraq*/
12: rcArabicIraq,
13: /*!Arabic - Egypt*/
14: rcArabicEgypt,
15: /*!Arabic - Libya*/
16: rcArabicLibya,
17: /*!Arabic - Algeria*/
18: rcArabicAlgeria,
19: /*!Arabic - Morocco*/
20: rcArabicMorocco,
21: /*! Arabic - Tunisia*/
22: rcArabicTunisia,
23: /*! Arabic - Oman*/
24: rcArabicOman,
25: /*! Arabic - Yemen*/
26: rcArabicYemen,
27: /*!Arabic - Syria*/
28: rcArabicSyria,
29: /*!Arabic - Jordan*/
30: rcArabicJordan,
31: /*! Arabic - Lebanon*/
32: rcArabicLebanon,
33: /*! Arabic - Kuwait*/
34: rcArabicKuwait,
35: /*! Arabic - UAE*/
36: rcArabicUnitedArabEmirates,
37: /*! Arabic - Bahrain*/
38: rcArabicBahrain,
39: /*! Arabic - Qatar*/
40: rcArabicQatar,
41: /*! Basque*/
42: rcBasque,
43: /*! Bulgarian*/
44: rcBulgarian,
45: /*! Belarusian*/
46: rcByelorussian,
47: /*! Catalan*/
48: rcCatalan,
49: /*! Chinese - Taiwan*/
50: rcChineseTaiwan,
51: /*! Chinese - PRC*/
52: rcChinesePRC,
53: /*! Chinese - Hong Kong*/
54: rcChineseHongKong,
55: /*! Chinese - Singapore*/
56: rcChineseSingapore,
57: /*! Croatian*/
58: rcCroatian,
59: /*! Czech*/
60: rcCzech,
61: /*! Danish*/
62: rcDanish,
63: /*! Dutch - Standard*/
64: rcDutchStandard,
65: /*! Dutch - Belgium*/
66: rcDutchBelgium,
67: /*! English - US*/
68: rcEnglishUS,
69: /*! English - Britain*/
70: rcEnglishBritain,
71: /*! English - Australia*/
72: rcEnglishAustralia,
73: /*! English - Canada*/
74: rcEnglishCanada,
75: /*! English - New Zealand*/
76: rcEnglishNewZealand,
77: /*! English - Ireland*/
78: rcEnglishIreland,
79: /*! English - South Africa*/
80: rcEnglishSouthAfrica,
81: /*! English - Jamaica*/
82: rcEnglishJamaica,
83: /*! English - Caribbean*/
84: rcEnglishCarribean,
85: /*! Estonian*/
86: rcEstonian,
87: /*!Farsi*/
88: rcFarsi,
89: /*!Finnish*/
90: rcFinnish,
91: /*!French - Standard*/
92: rcFrenchStandard,
93: /*! French - Belgium*/
94: rcFrenchBelgium,
95: /*! French - Canada*/
96: rcFrenchCanada,
97: /*! French - Switzerland*/
98: rcFrenchSwitzerland,
99: /*! French - Luxembourg*/
100: rcFrenchLuxembourg,
101: /*! German - Standard*/
102: rcGermanStandard,
103: /*! German - Switzerland*/
104: rcGermanSwitzerland,
105: /*! German - Austria*/
106: rcGermanAustria,
107: /*! German - Luxembourg*/
108: rcGermanLuxembourg,
109: /*! German - Lichtenstein*/
110: rcGermanLichtenstein,
111: /*! Greek*/
112: rcGreek,
113: /*!Hebrew*/
114: rcHebrew,
115: /*!Hungarian*/
116: rcHungarian,
117: /*!Icelandic*/
118: rcIcelandic,
119: /*!Indonesian*/
120: rcIndonesian,
121: /*!Italian - Standard*/
122: rcItalianStandard,
123: /*! Italian - Switzerland*/
124: rcItalianSwitzerland,
125: /*! Japanese*/
126: rcJapanese,
127: /*! Korean*/
128: rcKorean,
129: /*! Latvian*/
130: rcLatvian,
131: /*! Lithuanian*/
132: rcLithuanian,
133: /*! Norwegian - Bokmal*/
134: rcNorwegianBokmal,
135: /*! Norwegian - Nvnorsk*/
136: rcNorwegianNynorsk,
137: /*!Polish*/
138: rcPolish,
139: /*! Portuguese - Brazilian*/
140: rcPortugueseBrazilian,
141: /*!Portuguese - Standard*/
142: rcPortugueseStandard,
143: /*!Romanian*/
144: rcRomanian,
145: /*!Russian*/
146: rcRussian,
147: /*!Slovak*/
148: rcSlovak,
149: /*!Spanish - Traditional*/
150: rcSpanishTraditional,
151: /*!Spanish - Mexico*/
152: rcSpanishMexico,
153: /*!Spanish - Modern*/
154: rcSpanishModern,
155: /*! Spanish - Guatemala*/
156: rcSpanishGuatemala,
157: /*! Spanish - Costa Rica*/
158: rcSpanishCostaRica,
159: /*! Spanish - Panama*/
160: rcSpanishPanama,
161: /*! Spanish - Dominican Republic*/
162: rcSpanishDominicanRepublic,
163: /*! Spanish - Venezuela*/
164: rcSpanishVenezuela,
165: /*! Spanish - Colombia*/
166: rcSpanishColombia,
167: /*! Spanish - Peru*/
168: rcSpanishPeru,
169: /*! Spanish - Argentina*/
170: rcSpanishArgentina,
171: /*! Spanish - Ecuador*/
172: rcSpanishEcuador,
173: /*! Spanish - Chile*/
174: rcSpanishChile,
175: /*! Spanish - Uruguay*/
176: rcSpanishUruguay,
177: /*! Spanish - Paraguay*/
178: rcSpanishParaguay,
179: /*! Spanish - Bolivia*/
180: rcSpanishBolivia,
181: /*! Swedish*/
182: rcSwedish,
183: /*! Thai*/
184: rcThai,
185: /*! Turkish*/
186: rcTurkish,
187: /*! Ukrainian*/
188: rcUkrainian,
189: /*! Serbian*/
190: rcSerbian,
191: /*! Urdu*/
192: rcUrdu
193: };
194: resourcelangid Culture;///< 文化
195: string AdditionalIncludeDirectories;///< 附加包含目录
196: string PreprocessorDefinitions;///< 预处理器定义