PageRenderTime 56ms CodeModel.GetById 19ms RepoModel.GetById 0ms app.codeStats 0ms

/templates/vc10.mpd

https://bitbucket.org/snaewe/mpc
Unknown | 857 lines | 857 code | 0 blank | 0 comment | 0 complexity | 6d5ff7f74ff721d9709b567b4d97135f MD5 | raw file
  1. <?xml version="<%xml_version("1.0")%>" encoding="<%encoding("utf-8")%>"?>
  2. <Project DefaultTargets="Build" ToolsVersion="<%toolsversion%>" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  3. <ItemGroup Label="ProjectConfigurations">
  4. <%foreach(platforms)%>
  5. <%foreach(configurations)%>
  6. <ProjectConfiguration Include="<%configuration%>|<%platform%>">
  7. <Configuration><%configuration%></Configuration>
  8. <Platform><%platform%></Platform>
  9. </ProjectConfiguration>
  10. <%endfor%>
  11. <%endfor%>
  12. </ItemGroup>
  13. <PropertyGroup Label="Globals">
  14. <ProjectName><%project_name%></ProjectName>
  15. <ProjectGuid>{<%guid%>}</ProjectGuid>
  16. <RootNamespace><%project_name%></RootNamespace>
  17. <%if(managed)%>
  18. <Keyword>ManagedCProj</Keyword>
  19. <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
  20. <%else%>
  21. <Keyword><%if(UseOfMFC)%>MFCProj<%else%><%platform("Win32")%>Proj<%endif%></Keyword>
  22. <%endif%>
  23. </PropertyGroup>
  24. <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
  25. <%foreach(platforms)%>
  26. <%foreach(configurations)%>
  27. <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='<%configuration%>|<%platform%>'" Label="Configuration">
  28. <ConfigurationType><%if(type_is_dynamic)%>DynamicLibrary<%else%><%if(type_is_static && staticname)%>StaticLibrary<%else%><%if(custom_only)%>Utility<%else%><%if(makeoutput)%>Makefile<%else%>Application<%endif%><%endif%><%endif%><%endif%></ConfigurationType>
  29. <%if(UseOfMFC)%>
  30. <UseOfMfc><%UseOfMFC%></UseOfMfc>
  31. <%endif%>
  32. <%if(UseOfATL)%>
  33. <UseOfAtl><%UseOfATL%></UseOfAtl>
  34. <%endif%>
  35. <UseDebugLibraries><%if(debug_prj)%>true<%else%>false<%endif%></UseDebugLibraries>
  36. <%if(unicode)%>
  37. <CharacterSet>Unicode</CharacterSet>
  38. <%else%>
  39. <CharacterSet>NotSet</CharacterSet>
  40. <%endif%>
  41. <%if(PlatformToolset)%>
  42. <PlatformToolset><%PlatformToolset%></PlatformToolset>
  43. <%endif%>
  44. <%if(managed)%>
  45. <CLRSupport><%if(compares(managed,0))%>false<%else%><%if(compares(managed,1))%>true<%else%><%if(compares(managed,2))%>Pure<%else%><%if(compares(managed,3))%>Safe<%else%><%managed%><%endif%><%endif%><%endif%><%endif%></CLRSupport>
  46. <%endif%>
  47. <%if(WholeProgramOptimization)%>
  48. <WholeProgramOptimization>true</WholeProgramOptimization>
  49. <%endif%>
  50. </PropertyGroup>
  51. <%endfor%>
  52. <%endfor%>
  53. <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
  54. <ImportGroup Label="ExtensionSettings">
  55. </ImportGroup>
  56. <%foreach(platforms)%>
  57. <%foreach(configurations)%>
  58. <ImportGroup Condition="'$(Configuration)|$(Platform)'=='<%configuration%>|<%platform%>'" Label="PropertySheets">
  59. <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
  60. </ImportGroup>
  61. <%endfor%>
  62. <%endfor%>
  63. <PropertyGroup Label="UserMacros" />
  64. <PropertyGroup>
  65. <_ProjectFileVersion><%prversion%></_ProjectFileVersion>
  66. <%foreach(platforms)%>
  67. <%foreach(configurations)%>
  68. <%if(makeoutput)%>
  69. <LinkIncremental><%if(debug_prj)%>true<%else%>false<%endif%></LinkIncremental>
  70. <NMakePreprocessorDefinitions><%if(unicode)%>UNICODE;_UNICODE;<%endif%><%if(type_is_dynamic)%><%foreach(dynamicflags)%><%dynamicflag%>;<%endfor%><%endif%><%if(need_staticflags)%><%foreach(staticflags)%><%staticflag%>;<%endfor%><%endif%><%if(pch_header)%><%foreach(pch_defines)%><%pch_define%>;<%endfor%><%endif%><%foreach(defines common_defines cpu_defines platform_defines macros)%><%define%><%fornotlast(";")%><%endfor%><%if(macro_for_lib_modifier)%><%if(use_lib_modifier)%><%if(lib_modifier)%>;MPC_LIB_MODIFIER=&quot;<%lib_modifier%>&quot;<%endif%><%endif%><%endif%>;$(NMakePreprocessorDefinitions)</NMakePreprocessorDefinitions>
  71. <%if(includes)%>
  72. <NMakeIncludeSearchPath><%foreach(includes)%><%include%>;<%endfor%>$(NMakeIncludeSearchPath)</NMakeIncludeSearchPath>
  73. <%endif%>
  74. <%if(ForcedIncludeFiles)%>
  75. <NMakeForcedIncludes><%ForcedIncludeFiles%>;%(NMakeForcedIncludes)</NMakeForcedIncludes>
  76. <%endif%>
  77. <%if(NMakeAssemblySearchPath)%>
  78. <NMakeAssemblySearchPath><%NMakeAssemblySearchPath%>;$(NMakeAssemblySearchPath)</NMakeAssemblySearchPath>
  79. <%endif%>
  80. <%if(NMakeForcedUsingAssemblies)%>
  81. <NMakeForcedUsingAssemblies><%NMakeForcedUsingAssemblies%>;$(NMakeForcedUsingAssemblies)</NMakeForcedUsingAssemblies>
  82. <%endif%>
  83. <%if(compile_flags)%>
  84. <AdditionalOptions><%compile_flags%></AdditionalOptions>
  85. <%endif%>
  86. <NMakeBuildCommandLine><%makebuild%> CONF=<%configuration%></NMakeBuildCommandLine>
  87. <NMakeReBuildCommandLine><%makerebuild%> CONF=<%configuration%></NMakeReBuildCommandLine>
  88. <NMakeCleanCommandLine><%makeclean%> CONF=<%configuration%></NMakeOutput>
  89. <NMakeOutput><%makeoutput%></NMakeOutput>
  90. <%else%>
  91. <OutDir Condition="'$(Configuration)|$(Platform)'=='<%configuration%>|<%platform%>'"><%if(type_is_dynamic)%><%if(dllout)%><%dllout%>\<%else%><%libout%>\<%endif%><%else%><%if(type_is_static)%><%libout%>\<%else%><%if(exeout)%><%exeout%>\<%if(windows_style)%><%output_dir("Debug")%>\<%endif%><%else%><%if(windows_style)%><%output_dir("Debug")%>\<%else%><%output_dir(".")%>\<%endif%><%endif%><%endif%><%endif%></OutDir>
  92. <IntDir Condition="'$(Configuration)|$(Platform)'=='<%configuration%>|<%platform%>'"><%intermediate_dir%>\<%noextension(project_file)%>\<%if(output_subdir)%><%output_subdir%>\<%endif%></IntDir>
  93. <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='<%configuration%>|<%platform%>'"><%if(debug_prj)%>true<%else%>false<%endif%></LinkIncremental>
  94. <TargetName Condition="'$(Configuration)|$(Platform)'=='<%configuration%>|<%platform%>'"><%if(type_is_dynamic)%><%libname_prefix%><%sharedname%><%if(use_lib_modifier)%><%lib_modifier%><%endif%><%else%><%if(type_is_static)%><%libname_prefix%><%staticname%><%if(use_lib_modifier)%><%lib_modifier%><%endif%><%else%><%exename%><%if(use_exe_modifier)%><%lib_modifier%><%endif%><%endif%><%endif%></TargetName>
  95. <%if(type_is_static && staticname && !compares(lib_ext, .lib))%>
  96. <TargetExt Condition="'$(Configuration)|$(Platform)'=='<%configuration%>|<%platform%>'"><%lib_ext%></TargetExt>
  97. <%else%>
  98. <%if(!type_is_static)%>
  99. <%if(exename || sharedname || staticname)%>
  100. <%if(type_is_dynamic && !compares(dll_ext, .dll))%>
  101. <TargetExt Condition="'$(Configuration)|$(Platform)'=='<%configuration%>|<%platform%>'"><%dll_ext%></TargetExt>
  102. <%else%>
  103. <%if(!type_is_dynamic && !compares(exe_ext, .exe))%>
  104. <TargetExt Condition="'$(Configuration)|$(Platform)'=='<%configuration%>|<%platform%>'"><%exe_ext%></TargetExt>
  105. <%endif%>
  106. <%endif%>
  107. <%endif%>
  108. <%endif%>
  109. <%endif%>
  110. <CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='<%configuration%>|<%platform%>'">AllRules.ruleset</CodeAnalysisRuleSet>
  111. <CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='<%configuration%>|<%platform%>'" />
  112. <CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='<%configuration%>|<%platform%>'" />
  113. <%if(ReferencePath)%>
  114. <ReferencePath><%ReferencePath%>;$(ReferencePath)</ReferencePath>
  115. <%endif%>
  116. <%if(EmbedManifest || keyfile)%>
  117. <EmbedManifest Condition="'$(Configuration)|$(Platform)'=='<%configuration%>|<%platform%>'"><%if(EmbedManifest)%><%EmbedManifest%><%else%><%if(keyfile)%>false<%endif%><%endif%></EmbedManifest>
  118. <%endif%>
  119. <%if(keyfile)%>
  120. <LinkKeyFile Condition="'$(Configuration)|$(Platform)'=='<%configuration%>|<%platform%>'"><%keyfile%></LinkKeyFile>
  121. <%endif%>
  122. <%endif%>
  123. <%endfor%>
  124. <%endfor%>
  125. </PropertyGroup>
  126. <%foreach(platforms)%>
  127. <%foreach(configurations)%>
  128. <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='<%configuration%>|<%platform%>'">
  129. <%if(prebuild)%>
  130. <PreBuildEvent>
  131. <Command><%eval(prebuild)%></Command>
  132. </PreBuildEvent>
  133. <%endif%>
  134. <Midl>
  135. <PreprocessorDefinitions><%foreach(midl_defines)%><%midl_define%>;<%endfor%>%(PreprocessorDefinitions)</PreprocessorDefinitions>
  136. <AdditionalIncludeDirectories><%foreach(midl_includes)%><%midl_include%>;<%endfor%>%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
  137. <TargetEnvironment><%platform%></TargetEnvironment>
  138. <%if(midl_notlb)%>
  139. <GenerateStublessProxies>false</GenerateStublessProxies>
  140. <%endif%>
  141. <TypeLibraryName>%(Filename).tlb</TypeLibraryName>
  142. <HeaderFileName>%(Filename).h</HeaderFileName>
  143. <InterfaceIdentifierFileName>%(Filename)_i.c</InterfaceIdentifierFileName>
  144. <ProxyFileName>%(Filename)_p.c</ProxyFileName>
  145. <%if(midl_flags)%>
  146. <AdditionalOptions><%midl_flags%></AdditionalOptions>
  147. <%endif%>
  148. </Midl>
  149. <ClCompile>
  150. <Optimization><%optimize("Disabled")%></Optimization>
  151. <%if(InlineFunctionExpansion)%>
  152. <InlineFunctionExpansion><%InlineFunctionExpansion%></InlineFunctionExpansion>
  153. <%endif%>
  154. <%if(EnableIntrinsicFunctions)%>
  155. <IntrinsicFunctions>true</IntrinsicFunctions>
  156. <%endif%>
  157. <%if(FavorSizeOrSpeed)%>
  158. <FavorSizeOrSpeed><%FavorSizeOrSpeed%></FavorSizeOrSpeed>
  159. <%endif%>
  160. <%if(OmitFramePointers)%>
  161. <OmitFramePointers><%OmitFramePointers%></OmitFramePointers>
  162. <%endif%>
  163. <%if(EnableFiberSafeOptimizations)%>
  164. <EnableFiberSafeOptimizations>true</EnableFiberSafeOptimizations>
  165. <%endif%>
  166. <%if(includes)%>
  167. <AdditionalIncludeDirectories><%foreach(includes)%><%include%>;<%endfor%>%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
  168. <%endif%>
  169. <%if(AdditionalUsingDirectories)%>
  170. <AdditionalUsingDirectories><%AdditionalUsingDirectories%>;%(AdditionalUsingDirectories)</AdditionalUsingDirectories>
  171. <%endif%>
  172. <PreprocessorDefinitions><%if(unicode)%>UNICODE;_UNICODE;<%endif%><%if(type_is_dynamic)%><%foreach(dynamicflags)%><%dynamicflag%>;<%endfor%><%endif%><%if(need_staticflags)%><%foreach(staticflags)%><%staticflag%>;<%endfor%><%endif%><%if(pch_header)%><%foreach(pch_defines)%><%pch_define%>;<%endfor%><%endif%><%foreach(defines common_defines cpu_defines platform_defines macros)%><%define%><%fornotlast(";")%><%endfor%><%if(macro_for_lib_modifier)%><%if(use_lib_modifier)%><%if(lib_modifier)%>;MPC_LIB_MODIFIER=&quot;<%lib_modifier%>&quot;<%endif%><%endif%><%endif%>;%(PreprocessorDefinitions)</PreprocessorDefinitions>
  173. <%if(IgnoreStandardIncludePath)%>
  174. <IgnoreStandardIncludePath>true</IgnoreStandardIncludePath>
  175. <%endif%>
  176. <%if(PreprocessToFile)%>
  177. <PreprocessToFile>true</PreprocessToFile>
  178. <%endif%>
  179. <%if(PreprocessSuppressLineNumbers)%>
  180. <PreprocessSuppressLineNumbers>true</PreprocessSuppressLineNumbers>
  181. <%endif%>
  182. <%if(PreprocessKeepComments)%>
  183. <PreprocessKeepComments>true</PreprocessKeepComments>
  184. <%endif%>
  185. <%if(StringPooling)%>
  186. <StringPooling>true</StringPooling>
  187. <%endif%>
  188. <%if(!optimize)%>
  189. <MinimalRebuild><%MinimalRebuild("true")%></MinimalRebuild>
  190. <%endif%>
  191. <%if(SmallerTypeCheck)%>
  192. <SmallerTypeCheck>true</SmallerTypeCheck>
  193. <%endif%>
  194. <RuntimeLibrary><%if(runtime_library)%><%runtime_library%><%else%><%if(type_is_static || need_staticflags)%><%if(debug_prj)%>MultiThreadedDebug<%else%>MultiThreaded<%endif%><%else%><%if(debug_prj)%>MultiThreadedDebugDLL<%else%>MultiThreadedDLL<%endif%><%endif%><%endif%></RuntimeLibrary>
  195. <%if(StructMemberAlignment)%>
  196. <StructMemberAlignment><%StructMemberAlignment%></StructMemberAlignment>
  197. <%endif%>
  198. <%if(BufferSecurityCheck)%>
  199. <BufferSecurityCheck><%BufferSecurityCheck%></BufferSecurityCheck>
  200. <%endif%>
  201. <%if(FunctionLevelLinking)%>
  202. <FunctionLevelLinking>true</FunctionLevelLinking>
  203. <%endif%>
  204. <%if(EnableEnhancedInstructionSet)%>
  205. <EnableEnhancedInstructionSet><%EnableEnhancedInstructionSet%></EnableEnhancedInstructionSet>
  206. <%endif%>
  207. <%if(FloatingPointModel)%>
  208. <FloatingPointModel><%FloatingPointModel%></FloatingPointModel>
  209. <%endif%>
  210. <%if(FloatingPointExceptions)%>
  211. <FloatingPointExceptions>true</FloatingPointExceptions>
  212. <%endif%>
  213. <%if(DisableLanguageExtensions)%>
  214. <DisableLanguageExtensions>true</DisableLanguageExtensions>
  215. <%endif%>
  216. <%if(TreatWChar_tAsBuiltInType)%>
  217. <TreatWChar_tAsBuiltInType><%TreatWChar_tAsBuiltInType%></TreatWChar_tAsBuiltInType>
  218. <%endif%>
  219. <%if(ForceConformanceInForLoopScope)%>
  220. <ForceConformanceInForLoopScope><%ForceConformanceInForLoopScope%></ForceConformanceInForLoopScope>
  221. <%endif%>
  222. <RuntimeTypeInfo><%RuntimeTypeInfo("true")%></RuntimeTypeInfo>
  223. <%if(OpenMP || OpenMPSupport)%>
  224. <OpenMPSupport>true</OpenMPSupport>
  225. <%endif%>
  226. <%if(pch_header)%>
  227. <PrecompiledHeader>Use</PrecompiledHeader>
  228. <%if(pch_header_output)%>
  229. <PrecompiledHeaderOutputFile><%pch_header_output%></PrecompiledHeaderOutputFile>
  230. <%endif%>
  231. <PrecompiledHeaderFile><%pch_header%></PrecompiledHeaderFile>
  232. <%endif%>
  233. <%if(ExceptionHandling)%>
  234. <ExceptionHandling><%ExceptionHandling%></ExceptionHandling>
  235. <%endif%>
  236. <%if(!managed)%>
  237. <%if(BasicRuntimeChecks)%>
  238. <BasicRuntimeChecks><%BasicRuntimeChecks%></BasicRuntimeChecks>
  239. <%endif%>
  240. <%endif%>
  241. <%if(ExpandAttributedSource)%>
  242. <ExpandAttributedSource>true</ExpandAttributedSource>
  243. <%endif%>
  244. <%if(AssemblerOutput)%>
  245. <AssemblerOutput>AssemblyCode</AssemblerOutput>
  246. <%endif%>
  247. <%if(AssemblerListingLocation)%>
  248. <AssemblerListingLocation><%AssemblerListingLocation%></AssemblerListingLocation>
  249. <%endif%>
  250. <%if(ObjectFileName)%>
  251. <ObjectFileName><%ObjectFileName%></ObjectFileName>
  252. <%endif%>
  253. <%if(pdbc)%>
  254. <ProgramDataBaseFileName><%if(type_is_static)%><%libout%>\<%libname_prefix%><%staticname%><%if(use_lib_modifier)%><%lib_modifier%><%endif%>.pdb<%else%><%intermediate_dir%>\<%noextension(project_file)%><%if(output_subdir)%>\<%output_subdir%><%endif%>\<%endif%></ProgramDataBaseFileName>
  255. <%else%>
  256. <%if(ProgramDataBaseFileName)%>
  257. <ProgramDataBaseFileName><%ProgramDataBaseFileName%></ProgramDataBaseFileName>
  258. <%endif%>
  259. <%endif%>
  260. <%if(GenerateXMLDocumentationFiles)%>
  261. <GenerateXMLDocumentationFiles><%GenerateXMLDocumentationFiles%></GenerateXMLDocumentationFiles>
  262. <%endif%>
  263. <%if(XMLDocumentationFileName)%>
  264. <XMLDocumentationFileName><%XMLDocumentationFileName%></XMLDocumentationFileName>
  265. <%endif%>
  266. <%if(BrowseInformation)%>
  267. <BrowseInformation>true</BrowseInformation>
  268. <%endif%>
  269. <%if(BrowseInformationFile)%>
  270. <BrowseInformationFile><%BrowseInformationFile%></BrowseInformationFile>
  271. <%endif%>
  272. <WarningLevel><%if(compares(warning_level, all))%>EnableAllWarnings<%else%><%if(compares(warning_level, none) || compares(warning_level, 0))%>TurnOffAllWarnings<%else%>Level<%warning_level("3")%><%endif%><%endif%></WarningLevel>
  273. <%if(!managed && debug_format)%>
  274. <DebugInformationFormat><%debug_format%></DebugInformationFormat>
  275. <%endif%>
  276. <%if(CallingConvention)%>
  277. <CallingConvention><%CallingConvention%></CallingConvention>
  278. <%endif%>
  279. <%if(CompileAs)%>
  280. <CompileAs><%CompileAs%></CompileAs>
  281. <%endif%>
  282. <%if(DisableSpecificWarnings)%>
  283. <DisableSpecificWarnings><%foreach(DisableSpecificWarnings)%><%DisableSpecificWarning%>;<%endfor%>%(DisableSpecificWarnings)</DisableSpecificWarnings>
  284. <%endif%>
  285. <%if(ForcedIncludeFiles)%>
  286. <ForcedIncludeFiles><%ForcedIncludeFiles%>;%(ForcedIncludeFiles)</ForcedIncludeFiles>
  287. <%endif%>
  288. <%if(ForcedUsingFiles)%>
  289. <ForcedUsingFiles><%ForcedUsingFiles%>;%(ForcedUsingFiles)</ForcedUsingFiles>
  290. <%endif%>
  291. <%if(ShowIncludes)%>
  292. <ShowIncludes>true</ShowIncludes>
  293. <%endif%>
  294. <%if(UndefinePreprocessorDefinitions)%>
  295. <UndefinePreprocessorDefinitions><%UndefinePreprocessorDefinitions%>;%(UndefinePreprocessorDefinitions)</UndefinePreprocessorDefinitions>
  296. <%endif%>
  297. <%if(UndefineAllPreprocessorDefinitions)%>
  298. <UndefineAllPreprocessorDefinitions>true</UndefineAllPreprocessorDefinitions>
  299. <%endif%>
  300. <%if(UseFullPaths)%>
  301. <UseFullPaths>true</UseFullPaths>
  302. <%endif%>
  303. <%if(OmitDefaultLibName)%>
  304. <OmitDefaultLibName>true</OmitDefaultLibName>
  305. <%endif%>
  306. <%if(ErrorReporting)%>
  307. <ErrorReporting><%ErrorReporting%></ErrorReporting>
  308. <%endif%>
  309. <%if(TreatSpecificWarningsAsErrors)%>
  310. <TreatSpecificWarningsAsErrors><%TreatSpecificWarningsAsErrors%>;%(TreatSpecificWarningsAsErrors)</TreatSpecificWarningsAsErrors>
  311. <%endif%>
  312. <%if(WarnAsError)%>
  313. <TreatWarningAsError>true</TreatWarningAsError>
  314. <%endif%>
  315. <%if(CompileAsManaged)%>
  316. <CompileAsManaged><%CompileAsManaged%></CompileAsManaged>
  317. <%endif%>
  318. <%if(MultiProcessorCompilation)%>
  319. <MultiProcessorCompilation>true</MultiProcessorCompilation>
  320. <%endif%>
  321. <%if(UseUnicodeForAssemblerListing)%>
  322. <UseUnicodeForAssemblerListing>true</UseUnicodeForAssemblerListing>
  323. <%endif%>
  324. <%if(compile_flags)%>
  325. <AdditionalOptions><%compile_flags%> %(AdditionalOptions)</AdditionalOptions>
  326. <%endif%>
  327. </ClCompile>
  328. <ResourceCompile>
  329. <PreprocessorDefinitions><%if(unicode)%>UNICODE;_UNICODE;<%endif%><%foreach(defines macros platform_defines)%><%define%>;<%endfor%>%(PreprocessorDefinitions)</PreprocessorDefinitions>
  330. <Culture><%culture("1033")%></Culture>
  331. <AdditionalIncludeDirectories><%foreach(includes)%><%include%>;<%endfor%>%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
  332. </ResourceCompile>
  333. <%if(prelink)%>
  334. <PreLinkEvent>
  335. <Command><%eval(prelink)%></Command>
  336. </PreLinkEvent>
  337. <%endif%>
  338. <%if(type_is_static)%>
  339. <Lib>
  340. <%if(staticname)%>
  341. <OutputFile><%libout%>\<%libname_prefix%><%staticname%><%if(use_lib_modifier)%><%lib_modifier%><%endif%><%lib_ext%></OutputFile>
  342. <%endif%>
  343. <AdditionalDependencies>%(AdditionalDependencies)</AdditionalDependencies>
  344. <AdditionalLibraryDirectories><%foreach(libpaths)%><%libpath%>;<%endfor%>%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
  345. <%if(SuppressStartupBanner)%>
  346. <SuppressStartupBanner>true</SuppressStartupBanner>
  347. <%endif%>
  348. <%if(ModuleDefinitionFile)%>
  349. <ModuleDefinitionFile><%ModuleDefinitionFile%></ModuleDefinitionFile>
  350. <%endif%>
  351. <%if(IgnoreAllDefaultLibraries)%>
  352. <IgnoreAllDefaultLibraries>true</IgnoreAllDefaultLibraries>
  353. <%endif%>
  354. <%if(ignore_default_library_names)%>
  355. <IgnoreSpecificDefaultLibraries><%foreach(ignore_default_library_names)%><%ignore_default_library_name%>;<%endfor%>%(IgnoreSpecificDefaultLibraries)</IgnoreSpecificDefaultLibraries>
  356. <%endif%>
  357. <%if(ExportNamedFunctions)%>
  358. <ExportNamedFunctions><%ExportNamedFunctions%></ExportNamedFunctions>
  359. <%endif%>
  360. <%if(ForceSymbolReferences)%>
  361. <ForceSymbolReferences><%ForceSymbolReferences%></ForceSymbolReferences>
  362. <%endif%>
  363. <%if(UseUnicodeResponseFiles)%>
  364. <UseUnicodeResponseFiles>true</UseUnicodeResponseFiles>
  365. <%endif%>
  366. <%if(ErrorReporting)%>
  367. <ErrorReporting><%ErrorReporting%></ErrorReporting>
  368. <%endif%>
  369. <%if(TreatLibWarningAsErrors)%>
  370. <TreatLibWarningAsErrors>true</TreatLibWarningAsErrors>
  371. <%endif%>
  372. <%if(TargetMachine)%>
  373. <!--
  374. Though we can set TargetMachine explicitly, VC++
  375. can figure it out by project type. We don't need
  376. to set it by ourselves.
  377. -->
  378. <!-- <TargetMachine><%TargetMachine%></TargetMachine>-->
  379. <%endif%>
  380. <%if(SubSystem)%>
  381. <SubSystem><%SubSystem%></SubSystem>
  382. <%endif%>
  383. <%if(MinimumRequiredVersion)%>
  384. <MinimumRequiredVersion><%MinimumRequiredVersion%></MinimumRequiredVersion>
  385. <%endif%>
  386. <%if(RemoveObjects)%>
  387. <RemoveObjects><%RemoveObjects%>;%(RemoveObjects)</RemoveObjects>
  388. <%endif%>
  389. <%if(Verbose)%>
  390. <Verbose>true</Verbose>
  391. <%endif%>
  392. <%if(LinkTimeCodeGeneration)%>
  393. <LinkTimeCodeGeneration>true</LinkTimeCodeGeneration>
  394. <%endif%>
  395. <%if(lib_options)%>
  396. <AdditionalOptions><%lib_options%> %(AdditionalOptions)</AdditionalOptions>
  397. <%endif%>
  398. </Lib>
  399. <%else%>
  400. <Link>
  401. <%if(SubSystem)%>
  402. <SubSystem><%SubSystem%></SubSystem>
  403. <%endif%>
  404. <%if(GenerateDebugInformation)%>
  405. <GenerateDebugInformation><%GenerateDebugInformation%></GenerateDebugInformation>
  406. <%endif%>
  407. <AdditionalDependencies><%foreach(reverse(libs))%><%libname_prefix%><%lib%><%if(use_lib_modifier)%><%lib_modifier%><%endif%><%lib_ext%>;<%endfor%><%foreach(reverse(lit_libs))%><%lit_lib%>.lib;<%endfor%><%foreach(reverse(pure_libs))%> <%pure_lib%>;<%endfor%>%(AdditionalDependencies)</AdditionalDependencies>
  408. <%if(exename || sharedname || staticname)%>
  409. <OutputFile>$(OutDir)<%if(type_is_dynamic)%><%libname_prefix%><%sharedname%><%if(use_lib_modifier)%><%lib_modifier%><%endif%><%dll_ext%><%else%><%exename%><%if(use_exe_modifier)%><%lib_modifier%><%endif%><%exe_ext%><%endif%></OutputFile>
  410. <%endif%>
  411. <%if(ShowProgress)%>
  412. <ShowProgress><%ShowProgress%></ShowProgress>
  413. <%endif%>
  414. <%if(win_version)%>
  415. <Version><%win_version%></Version>
  416. <%endif%>
  417. <%if(SuppressStartupBanner)%>
  418. <SuppressStartupBanner>true</SuppressStartupBanner>
  419. <%endif%>
  420. <%if(RegisterOutput)%>
  421. <RegisterOutput>true</RegisterOutput>
  422. <%endif%>
  423. <%if(PerUserRedirection)%>
  424. <PerUserRedirection>true</PerUserRedirection>
  425. <%endif%>
  426. <AdditionalLibraryDirectories><%foreach(libpaths)%><%libpath%>;<%endfor%>%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
  427. <%if(LinkStatus)%>
  428. <LinkStatus>true</LinkStatus>
  429. <%endif%>
  430. <%if(PreventDllBinding)%>
  431. <PreventDllBinding>true</PreventDllBinding>
  432. <%endif%>
  433. <%if(LinkWarnAsError)%>
  434. <TreatLinkerWarningAsErrors>true</TreatLinkerWarningAsErrors>
  435. <%endif%>
  436. <%if(ForceFileOutput)%>
  437. <ForceFileOutput><%ForceFileOutput%></ForceFileOutput>
  438. <%endif%>
  439. <%if(CreateHotPatchableImage)%>
  440. <CreateHotPatchableImage><%CreateHotPatchableImage%></CreateHotPatchableImage>
  441. <%endif%>
  442. <%if(SpecifySectionAttributes)%>
  443. <SpecifySectionAttributes><%SpecifySectionAttributes%></SpecifySectionAttributes>
  444. <%endif%>
  445. <%if(IgnoreAllDefaultLibraries)%>
  446. <IgnoreAllDefaultLibraries>true</IgnoreAllDefaultLibraries>
  447. <%endif%>
  448. <%if(ignore_default_library_names)%>
  449. <IgnoreSpecificDefaultLibraries><%foreach(ignore_default_library_names)%><%ignore_default_library_name%>;<%endfor%>%(IgnoreSpecificDefaultLibraries)</IgnoreSpecificDefaultLibraries>
  450. <%endif%>
  451. <%if(ModuleDefinitionFile)%>
  452. <ModuleDefinitionFile><%ModuleDefinitionFile%></ModuleDefinitionFile>
  453. <%else%>
  454. <%foreach(source_files)%>
  455. <%if(ends_with(source_file,\.def))%>
  456. <ModuleDefinitionFile><%source_file%></ModuleDefinitionFile>
  457. <%endif%>
  458. <%endfor%>
  459. <%endif%>
  460. <%if(AddModuleNamesToAssembly)%>
  461. <AddModuleNamesToAssembly><%AddModuleNamesToAssembly%>;%(AddModuleNamesToAssembly)</AddModuleNamesToAssembly>
  462. <%endif%>
  463. <%if(EmbedManagedResourceFile)%>
  464. <EmbedManagedResourceFile><%EmbedManagedResourceFile%>;%(EmbedManagedResourceFile)</EmbedManagedResourceFile>
  465. <%endif%>
  466. <%if(ForceSymbolReferences)%>
  467. <ForceSymbolReferences><%ForceSymbolReferences%>;%(ForceSymbolReferences)</ForceSymbolReferences>
  468. <%endif%>
  469. <%if(DelayLoadDLLs)%>
  470. <DelayLoadDLLs><%DelayLoadDLLs%>;%(DelayLoadDLLs)</DelayLoadDLLs>
  471. <%endif%>
  472. <%if(AssemblyLinkResource)%>
  473. <AssemblyLinkResource><%AssemblyLinkResource%>;%(AssemblyLinkResource)</AssemblyLinkResource>
  474. <%endif%>
  475. <%if(GenerateManifest)%>
  476. <GenerateManifest>true</GenerateManifest>
  477. <%endif%>
  478. <%if(ManifestFile)%>
  479. <ManifestFile><%ManifestFile%></ManifestFile>
  480. <%endif%>
  481. <%if(AdditionalManifestDependencies)%>
  482. <AdditionalManifestDependencies><%AdditionalManifestDependencies%>;%(AdditionalManifestDependencies)</AdditionalManifestDependencies>
  483. <%endif%>
  484. <%if(AllowIsolation)%>
  485. <AllowIsolation>true</AllowIsolation>
  486. <%endif%>
  487. <%if(AllowIsolation)%>
  488. <AllowIsolation>true</AllowIsolation>
  489. <%endif%>
  490. <%if(UACExecutionLevel)%>
  491. <UACExecutionLevel><%UACExecutionLevel%></UACExecutionLevel>
  492. <%endif%>
  493. <%if(UACUIAccess)%>
  494. <UACUIAccess>true</UACUIAccess>
  495. <%endif%>
  496. <%if(pdbl)%>
  497. <%if(sharedname)%>
  498. <ProgramDatabaseFile>$(OutDir)\<%libname_prefix%><%sharedname%><%if(use_lib_modifier)%><%lib_modifier%><%endif%>.pdb</ProgramDatabaseFile>
  499. <%else%>
  500. <%if(exename)%>
  501. <ProgramDatabaseFile>$(OutDir)\<%exename%><%if(use_exe_modifier)%><%lib_modifier%><%endif%>.pdb</ProgramDatabaseFile>
  502. <%endif%>
  503. <%endif%>
  504. <%endif%>
  505. <%if(StripPrivateSymbols)%>
  506. <StripPrivateSymbols><%StripPrivateSymbols%></StripPrivateSymbols>
  507. <%endif%>
  508. <%if(GenerateMapFile)%>
  509. <GenerateMapFile>true</GenerateMapFile>
  510. <%endif%>
  511. <%if(MapFileName)%>
  512. <MapFileName><%MapFileName%></MapFileName>
  513. <%endif%>
  514. <%if(MapExports)%>
  515. <MapExports>true</MapExports>
  516. <%endif%>
  517. <%if(AssemblyDebug)%>
  518. <AssemblyDebug>true</AssemblyDebug>
  519. <%endif%>
  520. <%if(MinimumRequiredVersion)%>
  521. <MinimumRequiredVersion><%MinimumRequiredVersion%></MinimumRequiredVersion>
  522. <%endif%>
  523. <%if(HeapReserveSize)%>
  524. <HeapReserveSize><%HeapReserveSize%></HeapReserveSize>
  525. <%endif%>
  526. <%if(HeapCommitSize)%>
  527. <HeapCommitSize><%HeapCommitSize%></HeapCommitSize>
  528. <%endif%>
  529. <%if(StackReserveSize)%>
  530. <StackReserveSize><%StackReserveSize%></StackReserveSize>
  531. <%endif%>
  532. <%if(StackCommitSize)%>
  533. <StackCommitSize><%StackCommitSize%></StackCommitSize>
  534. <%endif%>
  535. <%if(LargeAddressAware)%>
  536. <LargeAddressAware>true</LargeAddressAware>
  537. <%endif%>
  538. <%if(TerminalServerAware)%>
  539. <TerminalServerAware>true</TerminalServerAware>
  540. <%endif%>
  541. <%if(SwapRunFromCD)%>
  542. <SwapRunFromCD>true</SwapRunFromCD>
  543. <%endif%>
  544. <%if(SwapRunFromNet)%>
  545. <SwapRunFromNET>true</SwapRunFromNET>
  546. <%endif%>
  547. <%if(Driver)%>
  548. <Driver><%Driver%></Driver>
  549. <%endif%>
  550. <%if(OptimizeReferences || optimize)%>
  551. <OptimizeReferences>true</OptimizeReferences>
  552. <%endif%>
  553. <%if(EnableCOMDATFolding || optimize)%>
  554. <EnableCOMDATFolding>true</EnableCOMDATFolding>
  555. <%endif%>
  556. <%if(FunctionOrder)%>
  557. <FunctionOrder><%FunctionOrder%></FunctionOrder>
  558. <%endif%>
  559. <%if(ProfileGuidedDatabase)%>
  560. <ProfileGuidedDatabase><%ProfileGuidedDatabase%></ProfileGuidedDatabase>
  561. <%endif%>
  562. <%if(LinkTimeCodeGeneration)%>
  563. <LinkTimeCodeGeneration><%LinkTimeCodeGeneration%></LinkTimeCodeGeneration>
  564. <%endif%>
  565. <%if(MidlCommandFile)%>
  566. <MidlCommandFile><%MidlCommandFile%></MidlCommandFile>
  567. <%endif%>
  568. <%if(IgnoreEmbeddedIDL)%>
  569. <IgnoreEmbeddedIDL>true</IgnoreEmbeddedIDL>
  570. <%endif%>
  571. <%if(MergedIDLBaseFileName)%>
  572. <MergedIDLBaseFileName><%MergedIDLBaseFileName%></MergedIDLBaseFileName>
  573. <%endif%>
  574. <%if(TypeLibraryFile)%>
  575. <TypeLibraryFile><%TypeLibraryFile%></TypeLibraryFile>
  576. <%endif%>
  577. <%if(TypeLibraryResourceID)%>
  578. <TypeLibraryResourceID><%TypeLibraryResourceID%></TypeLibraryResourceID>
  579. <%endif%>
  580. <%if(unicode && unicode_mfc_entry && exename && source_files)%>
  581. <EntryPointSymbol><%unicode_mfc_entry%></EntryPointSymbol>
  582. <%else%>
  583. <%if(EntryPointSymbol)%>
  584. <EntryPointSymbol><%EntryPointSymbol%></EntryPointSymbol>
  585. <%endif%>
  586. <%endif%>
  587. <%if(NoEntryPoint)%>
  588. <NoEntryPoint>true</NoEntryPoint>
  589. <%endif%>
  590. <%if(SetChecksum)%>
  591. <SetChecksum>true</SetChecksum>
  592. <%endif%>
  593. <%if(BaseAddress)%>
  594. <BaseAddress><%BaseAddress%></BaseAddress>
  595. <%endif%>
  596. <%if(RandomizedBaseAddress)%>
  597. <RandomizedBaseAddress>true</RandomizedBaseAddress>
  598. <%endif%>
  599. <%if(FixedBaseAddress)%>
  600. <FixedBaseAddress>true</FixedBaseAddress>
  601. <%endif%>
  602. <%if(DataExecutionPrevention)%>
  603. <DataExecutionPrevention>true</DataExecutionPrevention>
  604. <%endif%>
  605. <%if(TurnOffAssemblyGeneration)%>
  606. <TurnOffAssemblyGeneration>true</TurnOffAssemblyGeneration>
  607. <%endif%>
  608. <%if(SupportUnloadOfDelayLoadedDLL)%>
  609. <SupportUnloadOfDelayLoadedDLL>true</SupportUnloadOfDelayLoadedDLL>
  610. <%endif%>
  611. <%if(SupportNobindOfDelayLoadedDLL)%>
  612. <SupportNobindOfDelayLoadedDLL>true</SupportNobindOfDelayLoadedDLL>
  613. <%endif%>
  614. <%if(ImportLibrary)%>
  615. <ImportLibrary><%ImportLibrary%></ImportLibrary>
  616. <%else%>
  617. <%if(type_is_dynamic && sharedname)%>
  618. <ImportLibrary><%libout%>\<%libname_prefix%><%sharedname%><%if(use_lib_modifier)%><%lib_modifier%><%endif%><%lib_ext%></ImportLibrary>
  619. <%endif%>
  620. <%endif%>
  621. <%if(MergeSections)%>
  622. <MergeSections><%MergeSections%></MergeSections>
  623. <%endif%>
  624. <%if(TargetMachine)%>
  625. <!--
  626. Though we can set TargetMachine explicitly, VC++
  627. can figure it out by project type. We don't need
  628. to set it by ourselves.
  629. -->
  630. <!-- <TargetMachine><%TargetMachine%></TargetMachine>-->
  631. <%endif%>
  632. <%if(Profile)%>
  633. <Profile>true</Profile>
  634. <%endif%>
  635. <%if(CLRThreadAttribute)%>
  636. <CLRThreadAttribute><%CLRThreadAttribute%></CLRThreadAttribute>
  637. <%endif%>
  638. <%if(CLRImageType)%>
  639. <CLRImageType><%CLRImageType%></CLRImageType>
  640. <%endif%>
  641. <%if(KeyFile)%>
  642. <KeyFile><%KeyFile%></KeyFile>
  643. <%endif%>
  644. <%if(KeyContainer)%>
  645. <KeyContainer><%KeyContainer%></KeyContainer>
  646. <%endif%>
  647. <%if(DelaySign)%>
  648. <DelaySign>true</DelaySign>
  649. <%endif%>
  650. <%if(CLRUnmanagedCodeCheck)%>
  651. <CLRUnmanagedCodeCheck>true</CLRUnmanagedCodeCheck>
  652. <%endif%>
  653. <%if(LinkErrorReporting)%>
  654. <LinkErrorReporting><%LinkErrorReporting%></LinkErrorReporting>
  655. <%endif%>
  656. <%if(SectionAlignment)%>
  657. <SectionAlignment><%SectionAlignment%></SectionAlignment>
  658. <%endif%>
  659. <%if(CLRSupportLastError)%>
  660. <CLRSupportLastError><%CLRSupportLastError%></CLRSupportLastError>
  661. <%endif%>
  662. <%if(ImageHasSafeExceptionHandlers)%>
  663. <ImageHasSafeExceptionHandlers>true</ImageHasSafeExceptionHandlers>
  664. <%endif%>
  665. <%if(!source_files)%>
  666. <AdditionalOptions>/noentry<%if(link_options)%> <%link_options%><%endif%><%if(release_link_options && !debug_prj)%> <%release_link_options%><%endif%> %(AdditionalOptions)</AdditionalOptions>
  667. <%else%>
  668. <%if(link_options || release_link_options && !debug_prj)%>
  669. <AdditionalOptions><%link_options%><%if(release_link_options && !debug_prj)%> <%release_link_options%><%endif%> %(AdditionalOptions)</AdditionalOptions>
  670. <%endif%>
  671. <%endif%>
  672. </Link>
  673. <%endif%>
  674. <%if(postbuild)%>
  675. <PostBuildEvent>
  676. <Command><%eval(postbuild)%></Command>
  677. </PostBuildEvent>
  678. <%endif%>
  679. <!-- "postclean" was made-up by MPC for use by vs_postclean.pl.
  680. Check if msbuild has any support for a custom post-cleaning step
  681. <%if(postclean)%>
  682. <Tool
  683. Name="VCPostCleanEventTool"
  684. CommandLine="<%eval(postclean)%>"
  685. />
  686. <%endif%> -->
  687. <!-- No known equivalent for DeploymentTool in vc10:
  688. <%if(deploymenttool)%>
  689. <DeploymentTool
  690. ForceDirty="-1"
  691. RemoteDirectory="<%deployment_directory%>"
  692. RegisterOutput="0"
  693. AdditionalFiles=""
  694. />
  695. <%endif%>
  696. -->
  697. </ItemDefinitionGroup>
  698. <%endfor%>
  699. <%endfor%>
  700. <ItemGroup>
  701. <%if(after && add_references)%>
  702. <!-- MPC ADD DEPENDENCIES -->
  703. <%endif%>
  704. <%foreach(AssemblyReferences)%>
  705. <Reference Include="<%AssemblyReference%>" />
  706. <%endfor%>
  707. <%foreach(comreferences)%>
  708. <COMReference Include="<%comreference->_default%>">
  709. <Guid><%lc(comreference->guid)%></Guid>
  710. <VersionMajor><%comreference->majorver("1")%></VersionMajor>
  711. <VersionMinor><%comreference->minorver("0")%></VersionMinor>
  712. <Lcid><%comreference->lcid("0")%></Lcid>
  713. <WrapperTool><%comreference->wrapper("tlbimp")%></WrapperTool>
  714. <Isolated><%comreference->isolated("false")%></Isolated>
  715. <%if(comreference->copylocal)%>
  716. <Private><%comreference->copylocal%></Private>
  717. <%endif%>
  718. <%if(comreference->refout)%>
  719. <ReferenceOutputAssembly><%comreference->refout%></ReferenceOutputAssembly>
  720. <%endif%>
  721. <%if(comreference->clsa)%>
  722. <CopyLocalSatelliteAssemblies><%comreference->clsa%></CopyLocalSatelliteAssemblies>
  723. <%endif%>
  724. </COMReference>
  725. <%endfor%>
  726. </ItemGroup>
  727. <%if(exename || sharedname || staticname)%>
  728. <%if(source_files)%>
  729. <ItemGroup>
  730. <%if(pch_source)%>
  731. <ClCompile Include="<%pch_source%>">
  732. <%foreach(platforms)%>
  733. <%foreach(configurations)%>
  734. <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='<%configuration%>|<%platform%>'">Create</PrecompiledHeader>
  735. <%endfor%>
  736. <%endfor%>
  737. </ClCompile>
  738. <%endif%>
  739. <%foreach(source_files)%>
  740. <%if(ends_with(source_file,\.def))%>
  741. <None Include="<%source_file%>" />
  742. <%else%>
  743. <%if(ends_with(source_file,\.[io]dl))%>
  744. <Midl Include="<%source_File%>" />
  745. <%else%>
  746. <ClCompile Include="<%source_file%>">
  747. <%if(flag_overrides(source_file, buildflags) || flag_overrides(source_file, no_pch) || flag_overrides(source_file, managed))%>
  748. <%foreach(platforms)%>
  749. <%foreach(configurations)%>
  750. <%if(flag_overrides(source_file, no_pch))%>
  751. <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='<%configuration%>|<%platform%>'">NotUsing</PrecompiledHeader>
  752. <%endif%>
  753. <%if(flag_overrides(source_file, buildflags))%>
  754. <AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='<%configuration%>|<%platform%>'"><%flag_overrides(source_file, buildflags)%> %(AdditionalOptions)</AdditionalOptions>
  755. <%endif%>
  756. <%if(flag_overrides(source_file, managed))%>
  757. <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='<%configuration%>|<%platform%>'">Default</BasicRuntimeChecks>
  758. <CompileAsManaged Condition="'$(Configuration)|$(Platform)'=='<%configuration%>|<%platform%>'"><%if(compares(flag_overrides(source_file, managed),0))%>false<%else%><%if(compares(flag_overrides(source_file, managed),1))%>true<%else%><%if(compares(flag_overrides(source_file, managed),2))%>Pure<%else%><%if(compares(flag_overrides(source_file, managed),3))%>Safe<%else%><%flag_overrides(source_file, managed)%><%endif%><%endif%><%endif%><%endif%></CompileAsManaged>
  759. <%if(!ExceptionHandling || compares(ExceptionHandling, 'Sync'))%>
  760. <ExceptionHandling>Async</ExceptionHandling>
  761. <%endif%>
  762. <%endif%>
  763. <%endfor%>
  764. <%endfor%>
  765. <%endif%>
  766. <%if(duplicate_index(source_file))%>
  767. <ObjectFileName>$(IntDir)\%(Filename)<%duplicate_index(source_file)%>.obj</ObjectFileName>
  768. <%endif%>
  769. </ClCompile>
  770. <%endif%>
  771. <%endif%>
  772. <%endfor%>
  773. </ItemGroup>
  774. <%endif%>
  775. <%endif%>
  776. <%if(template_files)%>
  777. <ItemGroup>
  778. <%foreach(template_files)%>
  779. <ClCompile Include="<%template_file%>">
  780. <%foreach(platforms)%>
  781. <%foreach(configurations)%>
  782. <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='<%configuration%>|<%platform%>'">true</ExcludedFromBuild>
  783. <%endfor%>
  784. <%endfor%>
  785. </ClCompile>
  786. <%endfor%>
  787. </ItemGroup>
  788. <%endif%>
  789. <%if(header_files)%>
  790. <ItemGroup>
  791. <%foreach(header_files)%>
  792. <ClInclude Include="<%header_file%>" />
  793. <%endfor%>
  794. </ItemGroup>
  795. <%endif%>
  796. <%foreach(custom_types)%>
  797. <%if(custom_type->input_files)%>
  798. <ItemGroup>
  799. <%foreach(custom_type->input_files)%>
  800. <%if(custom_type->input_file->output_files)%>
  801. <CustomBuild Include="<%custom_type->input_file%>">
  802. <%foreach(platforms)%>
  803. <%foreach(configurations)%>
  804. <Command Condition="'$(Configuration)|$(Platform)'=='<%configuration%>|<%platform%>'"><%if(custom_type->libpath)%>setlocal&#x0D;&#x0A;PATH=%PATH%;<%custom_type->libpath%>&#x0D;&#x0A;<%endif%><%if(flag_overrides(custom_type->input_file, gendir))%>if not exist <%flag_overrides(custom_type->input_file, gendir)%> mkdir <%flag_overrides(custom_type->input_file, gendir)%>&#x0D;&#x0A;<%endif%><%foreach(custom_type->input_file->commands)%><%if(custom_type->input_file->command->gdir)%>if not exist <%custom_type->input_file->command->gdir%> mkdir <%custom_type->input_file->command->gdir%>&#x0D;&#x0A;<%endif%><%endfor%><%if(custom_type->input_file->commands)%><%foreach(custom_type->input_file->commands)%><%custom_type->input_file->command%> <%custom_type->input_file->command->flags%> &quot;<%custom_type->input_file%>&quot;<%if(custom_type->input_file->command->outopt)%> <%custom_type->input_file->command->outopt%> &quot;<%custom_type->input_file->command->outfile%>&quot;<%endif%><%fornotlast(" &amp;&amp; ")%><%endfor%><%else%><%if(flag_overrides(custom_type->input_file, command))%><%flag_overrides(custom_type->input_file, command)%><%else%><%custom_type->command%><%endif%> <%if(flag_overrides(custom_type->input_file, commandflags))%><%flag_overrides(custom_type->input_file, commandflags)%><%else%><%custom_type->commandflags%><%endif%> <%if(custom_type->output_option)%>&quot;<%custom_type->input_file%>&quot; <%custom_type->output_option%><%foreach(custom_type->input_file->output_files)%> &quot;<%if(flag_overrides(custom_type->input_file, gendir))%><%flag_overrides(custom_type->input_file, gendir)%>\<%basename(custom_type->input_file->output_file)%><%else%><%custom_type->input_file->output_file%><%endif%>&quot;<%endfor%><%else%>&quot;<%custom_type->input_file%>&quot;<%endif%><%endif%><%if(flag_overrides(custom_type->input_file, postcommand))%><%foreach(custom_type->input_file)%> &amp;&amp; <%flag_overrides(custom_type->input_file, postcommand)%><%endfor%><%else%><%if(custom_type->postcommand)%><%foreach(custom_type->input_file)%> &amp;&amp; <%custom_type->postcommand%><%endfor%><%endif%><%endif%><%if(pch_header)%><%if(custom_type->pch_postrule)%><%foreach(custom_type->input_file->source_output_files)%> &amp;&amp; echo #include &quot;<%pch_header%>&quot; &gt; temporary.src &amp;&amp; type &quot;<%if(flag_overrides(custom_type->input_file, gendir))%><%flag_overrides(custom_type->input_file, gendir)%>\<%basename(custom_type->input_file->source_output_file)%><%else%><%custom_type->input_file->source_output_file%><%endif%>&quot; &gt;&gt; temporary.src &amp;&amp; move /y temporary.src &quot;<%if(flag_overrides(custom_type->input_file, gendir))%><%flag_overrides(custom_type->input_file, gendir)%>\<%basename(custom_type->input_file->source_output_file)%><%else%><%custom_type->input_file->source_output_file%><%endif%>&quot;<%endfor%><%endif%><%endif%><%if(custom_type->libpath)%>&#x0D;&#x0A;endlocal<%endif%></Command>
  805. <Message Condition="'$(Configuration)|$(Platform)'=='<%configuration%>|<%platform%>'">Invoking <%if(custom_type->input_file->commands)%><%foreach(custom_type->input_file->commands)%><%custom_type->input_file->command%><%fornotlast(" and ")%><%endfor%><%else%><%if(flag_overrides(custom_type->input_file, command))%><%flag_overrides(custom_type->input_file, command)%><%else%><%custom_type->command%><%endif%><%endif%> on <%custom_type->input_file%></Message>
  806. <Outputs Condition="'$(Configuration)|$(Platform)'=='<%configuration%>|<%platform%>'"><%foreach(custom_type->input_file->output_files)%><%if(flag_overrides(custom_type->input_file, gendir))%><%flag_overrides(custom_type->input_file, gendir)%>\<%basename(custom_type->input_file->output_file)%><%else%><%custom_type->input_file->output_file%><%endif%><%fornotlast(";")%><%endfor%></Outputs>
  807. <%if(flag_overrides(custom_type->input_file, dependent) || custom_type->dependent || custom_type->input_file->dependencies || (!need_staticflags && (flag_overrides(custom_type->input_file, dependent_libs) || custom_type->dependent_libs)))%>
  808. <AdditionalInputs Condition="'$(Configuration)|$(Platform)'=='<%configuration%>|<%platform%>'"><%if(flag_overrides(custom_type->input_file, dependent))%><%foreach(dep, flag_overrides(custom_type->input_file, dependent))%><%dep%><%if(!has_extension(dep))%><%exe_ext%><%endif%><%fornotlast(";")%><%endfor%><%else%><%if(custom_type->dependent)%><%foreach(custom_type->dependent)%><%custom_type->dependent%><%if(!has_extension(custom_type->dependent))%><%exe_ext%><%endif%><%fornotlast(";")%><%endfor%><%endif%><%endif%><%foreach(custom_type->input_file->dependencies)%><%if(flag_overrides(custom_type->input_file, dependent) || custom_type->dependent)%>;<%else%><%fornotfirst(";")%><%endif%><%custom_type->input_file->dependencie%><%endfor%><%if(!need_staticflags)%><%if(flag_overrides(custom_type->input_file, dependent_libs))%><%foreach(dep_lib, flag_overrides(custom_type->input_file, dependent_libs))%><%if(flag_overrides(custom_type->input_file, dependent) || custom_type->dependent || custom_type->input_file->dependencies)%>;<%else%><%fornotfirst(";")%><%endif%><%dirname(dep_lib)%>\<%libname_prefix%><%basename(dep_lib)%><%if(use_lib_modifier)%><%lib_modifier%><%endif%><%dll_ext%><%endfor%><%else%><%if(custom_type->dependent_libs)%><%foreach(custom_type->dependent_libs)%><%if(flag_overrides(custom_type->input_file, dependent) || custom_type->dependent || custom_type->input_file->dependencies)%>;<%else%><%fornotfirst(";")%><%endif%><%dirname(custom_type->dependent_lib)%>\<%libname_prefix%><%basename(custom_type->dependent_lib)%><%if(use_lib_modifier)%><%lib_modifier%><%endif%><%dll_ext%><%endfor%><%endif%><%endif%><%endif%></AdditionalInputs>
  809. <%endif%>
  810. <%endfor%>
  811. <%endfor%>
  812. </CustomBuild>
  813. <%else%>
  814. <None Include="<%custom_type->input_file%>">
  815. <%foreach(platforms)%>
  816. <%foreach(configurations)%>
  817. <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='<%configuration%>|<%platform%>'">true</ExcludedFromBuild>
  818. <%endfor%>
  819. <%endfor%>
  820. </None>
  821. <%endif%>
  822. <%endfor%>
  823. </ItemGroup>
  824. <%endif%>
  825. <%endfor%>
  826. <%if(inline_files)%>
  827. <ItemGroup>
  828. <%foreach(inline_files)%>
  829. <None Include="<%inline_file%>" />
  830. <%endfor%>
  831. </ItemGroup>
  832. <%endif%>
  833. <%if(documentation_files)%>
  834. <ItemGroup>
  835. <%foreach(documentation_files)%>
  836. <CustomBuild Include="<%documentation_file%>">
  837. <FileType>Document</FileType>
  838. <%foreach(platforms)%>
  839. <%foreach(configurations)%>
  840. <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='<%configuration%>|<%platform%>'">true</ExcludedFromBuild>
  841. <%endfor%>
  842. <%endfor%>
  843. </CustomBuild>
  844. <%endfor%>
  845. </ItemGroup>
  846. <%endif%>
  847. <%if(resource_files && !type_is_static)%>
  848. <ItemGroup>
  849. <%foreach(resource_files)%>
  850. <<%if(ends_with(resource_file,\.rc))%>ResourceCompile<%else%>None<%endif%> Include="<%resource_file%>" />
  851. <%endfor%>
  852. </ItemGroup>
  853. <%endif%>
  854. <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
  855. <ImportGroup Label="ExtensionTargets">
  856. </ImportGroup>
  857. </Project>