paths.props 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  3. <PropertyGroup>
  4. <PyPathsIncluded>True</PyPathsIncluded>
  5. <!-- The properties below specify the directory structure.
  6. This defaults to, for example for Configuration = Debug and Platform = x64:
  7. micropython [PyBaseDir]
  8. |- ...
  9. |- ports/windows [PyWinDir]
  10. |- ...
  11. |- micropython.exe
  12. |- build [PyBuildDir]
  13. |- Debugx64 [PyOutDir]
  14. | |- ...
  15. | |- micropython.exe
  16. | |- micropython.map
  17. | |- obj [PyIntDir]
  18. |- genhdr
  19. Note that the micropython executable will be copied from PyOutDir
  20. to PyWinDir after each build. -->
  21. <!-- Start from project root -->
  22. <PyBaseDir>$([System.IO.Path]::GetFullPath(`$(MSBuildThisFileDirectory)..\..\..`))\</PyBaseDir>
  23. <PyWinDir>$(PyBaseDir)ports\windows\</PyWinDir>
  24. <PyBuildDir Condition="'$(PyBuildDir)' == ''">$(PyWinDir)build\</PyBuildDir>
  25. <!-- All include directories needed for uPy -->
  26. <PyIncDirs>$(PyBaseDir);$(PyWinDir);$(PyBuildDir);$(PyWinDir)msvc</PyIncDirs>
  27. <!-- Within PyBuildDir different subdirectories are used based on configuration and platform.
  28. By default these are chosen based on the Configuration and Platform properties, but
  29. this file might be imported by other projects (to figure out where the artifacts go
  30. or what the include files are) and those projects might already contain conflicting
  31. Configuration/Platform properties, so allow to override these -->
  32. <PyPlatform Condition="'$(PyPlatform)' == ''">$(Platform)</PyPlatform>
  33. <PyConfiguration Condition="'$(PyConfiguration)' == ''">$(Configuration)</PyConfiguration>
  34. <!-- The final destination directories -->
  35. <PyOutDir>$(PyBuildDir)$(PyConfiguration)$(PyPlatform)\</PyOutDir>
  36. <PyIntDir>$(PyOutDir)obj\</PyIntDir>
  37. </PropertyGroup>
  38. </Project>