2015-04-16 17:19:50 -04:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
2021-11-24 20:16:29 -05:00
|
|
|
<!-- Variant support. For compatibility with how it works for the other ports, this gets imported
|
|
|
|
early so variants cannot override build options like the ones specified in the rest of this file.
|
|
|
|
Use CustomPropsFile (see the .vcxproj file) for that. -->
|
2023-01-24 04:56:26 -05:00
|
|
|
<PropertyGroup Condition="'$(PyBuildingMpyCross)' != 'True'">
|
2021-11-24 20:16:29 -05:00
|
|
|
<PyVariant Condition="'$(PyVariant)' == ''">standard</PyVariant>
|
|
|
|
<PyBuild Condition="'$(PyBuild)' == ''">build-$(PyVariant)</PyBuild>
|
2023-01-23 05:33:27 -05:00
|
|
|
<PyProg Condition="'$(PyProg)' == ''">micropython</PyProg>
|
2021-11-24 20:16:29 -05:00
|
|
|
</PropertyGroup>
|
2015-04-16 17:19:50 -04:00
|
|
|
<ImportGroup Label="PropertySheets">
|
2015-11-12 03:42:12 -05:00
|
|
|
<Import Project="paths.props" Condition="'$(PyPathsIncluded)' != 'True'"/>
|
2023-01-24 04:56:26 -05:00
|
|
|
<Import Condition="'$(PyBuildingMpyCross)' != 'True'" Project="$(PyVariantDir)mpconfigvariant.props"/>
|
2015-04-16 17:19:50 -04:00
|
|
|
</ImportGroup>
|
|
|
|
<PropertyGroup Label="UserMacros" />
|
|
|
|
<PropertyGroup>
|
|
|
|
<OutDir>$(PyOutDir)</OutDir>
|
2015-11-12 03:42:12 -05:00
|
|
|
<IntDir>$(PyIntDir)</IntDir>
|
|
|
|
<PyFileCopyCookie>$(PyBuildDir)copycookie$(Configuration)$(Platform)</PyFileCopyCookie>
|
2017-08-11 09:33:39 -04:00
|
|
|
<CharacterSet>MultiByte</CharacterSet>
|
2015-04-16 17:19:50 -04:00
|
|
|
</PropertyGroup>
|
|
|
|
<ItemDefinitionGroup>
|
|
|
|
<ClCompile>
|
|
|
|
<AdditionalIncludeDirectories>$(PyIncDirs);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
2020-03-20 06:00:41 -04:00
|
|
|
<PreprocessorDefinitions>_USE_MATH_DEFINES;_CRT_SECURE_NO_WARNINGS;_CRT_NONSTDC_NO_WARNINGS;_MBCS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
2015-04-16 17:19:50 -04:00
|
|
|
<SDLCheck>false</SDLCheck>
|
|
|
|
<WarningLevel>Level1</WarningLevel>
|
|
|
|
<ExceptionHandling>false</ExceptionHandling>
|
2016-04-27 10:00:41 -04:00
|
|
|
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
|
|
|
<MinimalRebuild>false</MinimalRebuild>
|
2019-09-03 04:08:03 -04:00
|
|
|
<TreatWarningAsError>true</TreatWarningAsError>
|
2015-04-16 17:19:50 -04:00
|
|
|
</ClCompile>
|
|
|
|
<Link>
|
|
|
|
<GenerateDebugInformation>true</GenerateDebugInformation>
|
|
|
|
<GenerateMapFile>true</GenerateMapFile>
|
2022-06-07 05:24:42 -04:00
|
|
|
<AdditionalDependencies>Bcrypt.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
2015-04-16 17:19:50 -04:00
|
|
|
</Link>
|
|
|
|
</ItemDefinitionGroup>
|
2015-11-12 03:42:12 -05:00
|
|
|
<ItemGroup>
|
|
|
|
<PyOutputFiles Include="$(TargetPath)">
|
2017-08-14 06:12:30 -04:00
|
|
|
<Destination>$(PyTargetDir)%(FileName)%(Extension)</Destination>
|
2015-11-12 03:42:12 -05:00
|
|
|
</PyOutputFiles>
|
|
|
|
<PyCookieFiles Include="$(PyBuildDir)copycookie*" Exclude="$(PyFileCopyCookie)"/>
|
2021-11-24 20:16:29 -05:00
|
|
|
<QstrDependencies Include="$(PyVariantDir)mpconfigvariant.h"/>
|
2015-11-12 03:42:12 -05:00
|
|
|
</ItemGroup>
|
|
|
|
|
2021-11-25 10:50:10 -05:00
|
|
|
<!-- Helper for getting resulting executable path since it depends on other properties. -->
|
|
|
|
<Target Name="ShowTargetPath">
|
|
|
|
<Message Text="$(TargetPath)" Importance="high"/>
|
|
|
|
</Target>
|
|
|
|
|
2015-11-12 03:42:12 -05:00
|
|
|
<!-- Copy PyOutputFiles to their target destination.
|
|
|
|
To force this when switching between platforms/configurations which are already up-to-date (and as such,
|
|
|
|
for which a build wouldn't even start because all outputs are effectively newer than the inputs)
|
|
|
|
an empty file $(PyFileCopyCookie) is created serving as a record to indicate what was last copied,
|
|
|
|
and any previous records are deleted. So when switching between builds which are otherwise up-to-date
|
|
|
|
the tracker will notice a missing file and a build is started anyway (and it will just copy our files). -->
|
|
|
|
<Target Name="CopyFilesToWinDir" AfterTargets="Build"
|
|
|
|
Inputs="$(TargetPath)" Outputs="$(PyFileCopyCookie);@(PyOutputFiles->'%(Destination)')">
|
|
|
|
<Delete Files="@(PyCookieFiles)"/>
|
|
|
|
<Touch Files="$(PyFileCopyCookie)" AlwaysCreate="true"/>
|
|
|
|
<Copy SourceFiles="%(PyOutputFiles.Identity)" DestinationFiles="%(PyOutputFiles.Destination)"/>
|
|
|
|
<WriteLinesToFile File="$(TLogLocation)$(ProjectName).write.u.tlog" Lines="$(PyFileCopyCookie);@(PyOutputFiles->'%(Destination)')" Overwrite="True"/>
|
|
|
|
</Target>
|
2015-04-16 17:19:50 -04:00
|
|
|
</Project>
|