Advertisement
Guest User

Untitled

a guest
May 24th, 2016
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.62 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <Project DefaultTargets="Build" ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  3. <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
  4. <ClCompile>
  5. <PrecompiledHeader>Create</PrecompiledHeader>
  6. <WarningLevel>Level4</WarningLevel>
  7. <Optimization>Disabled</Optimization>
  8. <PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;_USRDLL;ELEC_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
  9. <RuntimeTypeInfo>false</RuntimeTypeInfo>
  10. <AdditionalIncludeDirectories>
  11. </AdditionalIncludeDirectories>
  12. <EnableEnhancedInstructionSet>AdvancedVectorExtensions</EnableEnhancedInstructionSet>
  13. </ClCompile>
  14. <Link>
  15. <SubSystem>Windows</SubSystem>
  16. <GenerateDebugInformation>true</GenerateDebugInformation>
  17. </Link>
  18. </ItemDefinitionGroup>
  19. <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
  20. <ClCompile>
  21. <WarningLevel>Level4</WarningLevel>
  22. <PrecompiledHeader>Create</PrecompiledHeader>
  23. <Optimization>MaxSpeed</Optimization>
  24. <FunctionLevelLinking>true</FunctionLevelLinking>
  25. <IntrinsicFunctions>true</IntrinsicFunctions>
  26. <PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;_USRDLL;ELEC_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
  27. <CompileAsManaged>
  28. </CompileAsManaged>
  29. <RuntimeTypeInfo>false</RuntimeTypeInfo>
  30. <AdditionalIncludeDirectories>
  31. </AdditionalIncludeDirectories>
  32. <EnableEnhancedInstructionSet>StreamingSIMDExtensions2</EnableEnhancedInstructionSet>
  33. </ClCompile>
  34. <Link>
  35. <SubSystem>Windows</SubSystem>
  36. <GenerateDebugInformation>true</GenerateDebugInformation>
  37. <EnableCOMDATFolding>true</EnableCOMDATFolding>
  38. <OptimizeReferences>true</OptimizeReferences>
  39. </Link>
  40. </ItemDefinitionGroup>
  41.  
  42. tree = etree.parse(xml)
  43. ns = {'ns': 'http://schemas.microsoft.com/developer/msbuild/2003'}
  44.  
  45. debug = tree.xpath('//ns:ItemDefinitionGroup[@Condition="'$(Configuration)|$(Platform)'=='Release|x64'"]', namespaces=ns)
  46. for d in debug:
  47. print(d)
  48. for g in d:
  49. print(g)
  50.  
  51. <Element {http://schemas.microsoft.com/developer/msbuild/2003}ClCompile at 0x7f95a2eb2548>
  52. Level4
  53. Create
  54. MaxSpeed
  55. true
  56. true
  57. WIN32;NDEBUG;_WINDOWS;_USRDLL;ELEC_EXPORTS;%(PreprocessorDefinitions)
  58.  
  59.  
  60. false
  61.  
  62.  
  63. StreamingSIMDExtensions2
  64. <Element {http://schemas.microsoft.com/developer/msbuild/2003}Link at 0x7f95a2eb25c8>
  65. Windows
  66. true
  67. true
  68. true
  69. No dependencies
  70.  
  71. tree.xpath('//ns:ItemDefinitionGroup[@Condition="'$(Configuration)|$(Platform)'=='Release|x64'"]/ClCompile/Optimization', namespaces=ns)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement