Skip to content
Snippets Groups Projects
Commit a62c1069 authored by stijn's avatar stijn
Browse files

msvc: Allow overriding of build options with custom file

- by default look for a user.props in the msvc directory, which is more convenient
  than the built-in way of looking for such file in the user's home directory
- make git ignore the file
parent 6f218d74
No related branches found
No related tags found
No related merge requests found
...@@ -33,5 +33,7 @@ tests/*.out ...@@ -33,5 +33,7 @@ tests/*.out
###################### ######################
__pycache__/ __pycache__/
# Customized Makefile overrides # Customized Makefile/project overrides
######################
GNUmakefile GNUmakefile
user.props
...@@ -72,7 +72,9 @@ ...@@ -72,7 +72,9 @@
<Import Project="msvc/common.props" /> <Import Project="msvc/common.props" />
<Import Project="msvc/release.props" /> <Import Project="msvc/release.props" />
</ImportGroup> </ImportGroup>
<PropertyGroup Label="UserMacros" /> <PropertyGroup Label="UserMacros">
<CustomPropsFile Condition="'$(CustomPropsFile)'==''">msvc/user.props</CustomPropsFile>
</PropertyGroup>
<PropertyGroup /> <PropertyGroup />
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile /> <ClCompile />
...@@ -94,6 +96,7 @@ ...@@ -94,6 +96,7 @@
</ItemGroup> </ItemGroup>
<Import Project="msvc/sources.props" /> <Import Project="msvc/sources.props" />
<Import Project="msvc/genhdr.targets" /> <Import Project="msvc/genhdr.targets" />
<Import Project="$(CustomPropsFile)" Condition="exists('$(CustomPropsFile)')" />
<Target Name="GenHeaders" BeforeTargets="BuildGenerateSources" DependsOnTargets="GenerateHeaders"> <Target Name="GenHeaders" BeforeTargets="BuildGenerateSources" DependsOnTargets="GenerateHeaders">
</Target> </Target>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment