Skip to content

Commit c76fe1f

Browse files
committed
Added support for overriding build properties
1 parent 4a74b2c commit c76fe1f

File tree

4 files changed

+26
-0
lines changed

4 files changed

+26
-0
lines changed

Mono.Debugger.Soft/Mono.Debugger.Soft.csproj

+1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
<DefineConstants>MONO_DATACONVERTER_STATIC_METHODS</DefineConstants>
3535
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
3636
</PropertyGroup>
37+
<Import Project="..\Mono.Debugging.settings" />
3738
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
3839
<ItemGroup>
3940
<Compile Include="Mono.Debugger.Soft\AbsentInformationException.cs" />

Mono.Debugging.Soft/Mono.Debugging.Soft.csproj

+1
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@
7878
<Reference Include="System.Core" />
7979
<Reference Include="Mono.Posix" />
8080
</ItemGroup>
81+
<Import Project="..\Mono.Debugging.settings" />
8182
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
8283
<ItemGroup>
8384
<None Include="Makefile.am" />

Mono.Debugging.settings

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<!-- This optional import allows products that distribute the debugger libs to tweak settings that will affect its
4+
build, without having to fork the project unnecessarily. The Mono.Debugging.overrides file is a plain
5+
MSBuild file with additional properties, and can exist anywhere upwards from the current debugger-libs repo
6+
clone path, making it very flexible even if the project is submoduled.
7+
-->
8+
<PropertyGroup>
9+
<DebuggerLibsOverrides Condition="'$(DebuggerLibsOverrides)' == ''">$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildProjectDirectory), Mono.Debugging.overrides))\Mono.Debugging.overrides</DebuggerLibsOverrides>
10+
</PropertyGroup>
11+
<Import Project="$(DebuggerLibsOverrides)" Condition="Exists('$(DebuggerLibsOverrides)')" />
12+
13+
<!-- This is an example of a custom override file -->
14+
<!--
15+
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
16+
<PropertyGroup>
17+
<AssemblyName>$(AssemblyName.Replace('Mono', 'MyCompany'))</AssemblyName>
18+
<AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)MyCompany.snk</AssemblyOriginatorKeyFile>
19+
</PropertyGroup>
20+
</Project>
21+
-->
22+
</Project>
23+

Mono.Debugging/Mono.Debugging.csproj

+1
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@
125125
<Compile Include="Mono.Debugging.Client\RunToCursorBreakpoint.cs" />
126126
<Compile Include="Mono.Debugging.Evaluation\EnumerableElementGroup.cs" />
127127
</ItemGroup>
128+
<Import Project="..\Mono.Debugging.settings" />
128129
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
129130
<ItemGroup />
130131
<ItemGroup>

0 commit comments

Comments
 (0)