diff options
author | Mikayla Hutchinson <m.j.hutchinson@gmail.com> | 2016-07-26 19:08:14 +0300 |
---|---|---|
committer | Mikayla Hutchinson <m.j.hutchinson@gmail.com> | 2016-07-26 19:08:14 +0300 |
commit | 02850812ea52f66fc5820f668575dd92da9afbc1 (patch) | |
tree | e13ae82cb16a3fd524b83e2d3661686d7ff57763 /main/before.Main.sln.targets | |
parent | bf4ea0cb04a450af3a5ad3bafa278667452675b5 (diff) |
Improve default build configuration when invoking xbuild directly
Diffstat (limited to 'main/before.Main.sln.targets')
-rw-r--r-- | main/before.Main.sln.targets | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/main/before.Main.sln.targets b/main/before.Main.sln.targets new file mode 100644 index 0000000000..100a95d8d1 --- /dev/null +++ b/main/before.Main.sln.targets @@ -0,0 +1,19 @@ +<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + + <!-- + Ensure that when a configuration is not provided, we use a good default + for the current OS. + --> + <Choose Condition="'$(Configuration)'==''"> + <When Condition="'$(OS)'!='Unix'"> + <PropertyGroup> + <Configuration>DebugWin32</Configuration> + </PropertyGroup> + </When> + <When Condition="Exists('/System/Library/Frameworks/CoreFoundation.framework')"> + <PropertyGroup> + <Configuration>DebugMac</Configuration> + </PropertyGroup> + </When> + </Choose> +</Project> |