pjproject-vs14-common-config.props 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  3. <ImportGroup Label="PropertySheets">
  4. <Import Project="pjproject-vs14-api-def.props" />
  5. </ImportGroup>
  6. <Choose>
  7. <When Condition="'$(Platform)'=='ARM' ">
  8. <PropertyGroup>
  9. <API_Family Condition="'$(API_Family)'=='WinDesktop'">UWP</API_Family>
  10. </PropertyGroup>
  11. </When>
  12. <When Condition="'$(Platform)'=='Win32' Or '$(Platform)'=='x64'">
  13. <PropertyGroup>
  14. <API_Family Condition="'$(API_Family)'=='WinPhone8'">UWP</API_Family>
  15. </PropertyGroup>
  16. </When>
  17. </Choose>
  18. <PropertyGroup>
  19. <API_Family Condition="'$(API_Family)'==''">WinDesktop</API_Family>
  20. <PreprocessorDef></PreprocessorDef>
  21. <DefaultToolset>v140</DefaultToolset>
  22. </PropertyGroup>
  23. <Choose>
  24. <When Condition="'$(API_Family)'=='WinDesktop'">
  25. <PropertyGroup>
  26. <BuildToolset>v140</BuildToolset>
  27. <PreprocessorDef Condition="'$(Platform)'=='Win32'">WIN32;PJ_WIN32=1;PJ_M_I386=1;</PreprocessorDef>
  28. <PreprocessorDef Condition="'$(Platform)'=='x64'">WIN64;PJ_WIN64=1;PJ_M_X86_64=1;</PreprocessorDef>
  29. <PreprocessorDef Condition="'$(Platform)'=='ARM64'">PJ_M_ARM64=1;</PreprocessorDef>
  30. </PropertyGroup>
  31. </When>
  32. <When Condition="'$(API_Family)'=='UWP'">
  33. <PropertyGroup>
  34. <BuildToolset>v140</BuildToolset>
  35. <PreprocessorDef>PJ_WIN32_UWP;UNICODE;_UNICODE;</PreprocessorDef>
  36. <PreprocessorDef Condition="'$(Platform)'=='ARM'">$(PreprocessorDef);PJ_M_ARMV7=1;</PreprocessorDef>
  37. <PlatformVersion>10.0.10586.0</PlatformVersion>
  38. <MinPlatformVersion>10.0.10240.0</MinPlatformVersion>
  39. <AppTypeRev>10.0</AppTypeRev>
  40. <WindowsTargetPlatformVersion>$(PlatformVersion)</WindowsTargetPlatformVersion>
  41. <WindowsTargetPlatformMinVersion>$(MinPlatformVersion)</WindowsTargetPlatformMinVersion>
  42. <AppContainerApplication>true</AppContainerApplication>
  43. <ApplicationType>Windows Store</ApplicationType>
  44. <ApplicationTypeRevision>$(AppTypeRev)</ApplicationTypeRevision>
  45. <TargetPlatformIdentifier>UAP</TargetPlatformIdentifier>
  46. <TargetPlatformVersion>$(PlatformVersion)</TargetPlatformVersion>
  47. <TargetPlatformMinVersion>$(MinPlatformVersion)</TargetPlatformMinVersion>
  48. </PropertyGroup>
  49. </When>
  50. <When Condition="'$(API_Family)'=='WinPhone8'">
  51. <PropertyGroup>
  52. <BuildToolset>v110_wp80</BuildToolset>
  53. <PreprocessorDef>PJ_WIN32_WINPHONE8;PJ_M_ARMV7=1;UNICODE;_UNICODE;</PreprocessorDef>
  54. </PropertyGroup>
  55. </When>
  56. </Choose>
  57. <ItemDefinitionGroup>
  58. <ClCompile>
  59. <PreprocessorDefinitions>$(PreprocessorDef);%(PreprocessorDefinitions)</PreprocessorDefinitions>
  60. <MinimalRebuild Condition="'$(API_Family)'=='UWP'">false</MinimalRebuild>
  61. </ClCompile>
  62. </ItemDefinitionGroup>
  63. </Project>