8000 Adding python version defines to unit test project · jbw3/pythonnet@56e5268 · GitHub
[go: up one dir, main page]

Skip to content

Commit 56e5268

Browse files
author
John Wilkes
committed
Adding python version defines to unit test project
1 parent 23aef26 commit 56e5268

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed

src/embed_tests/Python.EmbeddingTest.csproj

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -26,45 +26,41 @@
2626
</PropertyGroup>
2727
<PropertyGroup Condition=" '$(Configuration)' == 'DebugMono'">
2828
<DebugSymbols>true</DebugSymbols>
29-
<DefineConstants Condition="'$(DefineConstants)' == ''">DEBUG;TRACE</DefineConstants>
29+
<DefineConstants Condition="'$(DefineConstants)' == ''">PYTHON2;PYTHON27;UCS4;TRACE;DEBUG</DefineConstants>
3030
<DebugType>full</DebugType>
3131
</PropertyGroup>
3232
<PropertyGroup Condition=" '$(Configuration)' == 'ReleaseMono'">
33-
<DefineConstants Condition="'$(DefineConstants)' == ''">
34-
</DefineConstants>
33+
<DefineConstants Condition="'$(DefineConstants)' == ''">PYTHON2;PYTHON27;UCS4</DefineConstants>
3534
<Optimize>true</Optimize>
3635
<DebugType>pdbonly</DebugType>
3736
</PropertyGroup>
3837
<PropertyGroup Condition=" '$(Configuration)' == 'DebugWin'">
3938
<DebugSymbols>true</DebugSymbols>
40-
<DefineConstants Condition="'$(DefineConstants)' == ''">DEBUG;TRACE</DefineConstants>
39+
<DefineConstants Condition="'$(DefineConstants)' == ''">PYTHON2;PYTHON27;UCS2;TRACE;DEBUG</DefineConstants>
4140
<DebugType>full</DebugType>
4241
</PropertyGroup>
4342
<PropertyGroup Condition=" '$(Configuration)' == 'ReleaseWin'">
44-
<DefineConstants Condition="'$(DefineConstants)' == ''">
45-
</DefineConstants>
43+
<DefineConstants Condition="'$(DefineConstants)' == ''">PYTHON2;PYTHON27;UCS2</DefineConstants>
4644
<Optimize>true</Optimize>
4745
<DebugType>pdbonly</DebugType>
4846
</PropertyGroup>
4947
<PropertyGroup Condition=" '$(Configuration)' == 'DebugMonoPY3'">
5048
<DebugSymbols>true</DebugSymbols>
51-
<DefineConstants Condition="'$(DefineConstants)' == ''">DEBUG;TRACE</DefineConstants>
49+
<DefineConstants Condition="'$(DefineConstants)' == ''">PYTHON3;PYTHON36;UCS4;TRACE;DEBUG</DefineConstants>
5250
<DebugType>full</DebugType>
5351
</PropertyGroup>
5452
<PropertyGroup Condition=" '$(Configuration)' == 'ReleaseMonoPY3'">
55-
<DefineConstants Condition="'$(DefineConstants)' == ''">
56-
</DefineConstants>
53+
<DefineConstants Condition="'$(DefineConstants)' == ''">PYTHON3;PYTHON36;UCS4</DefineConstants>
5754
<Optimize>true</Optimize>
5855
<DebugType>pdbonly</DebugType>
5956
</PropertyGroup>
6057
<PropertyGroup Condition=" '$(Configuration)' == 'DebugWinPY3'">
6158
<DebugSymbols>true</DebugSymbols>
62-
<DefineConstants Condition="'$(DefineConstants)' == ''">DEBUG;TRACE</DefineConstants>
59+
<DefineConstants Condition="'$(DefineConstants)' == ''">PYTHON3;PYTHON36;UCS2;TRACE;DEBUG</DefineConstants>
6360
<DebugType>full</DebugType>
6461
</PropertyGroup>
6562
<PropertyGroup Condition=" '$(Configuration)' == 'ReleaseWinPY3'">
66-
<DefineConstants Condition="'$(DefineConstants)' == ''">
67-
</DefineConstants>
63+
<DefineConstants Condition="'$(DefineConstants)' == ''">PYTHON3;PYTHON36;UCS2</DefineConstants>
6864
<Optimize>true</Optimize>
6965
<DebugType>pdbonly</DebugType>
7066
</PropertyGroup>

0 commit comments

Comments
 (0)
0