13
13
<TargetFrameworkVersion >v4.0</TargetFrameworkVersion >
14
14
<FileAlignment >512</FileAlignment >
15
15
<SolutionDir Condition =" $(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'" >..\..\</SolutionDir >
16
+ <PythonBuildDir Condition =" '$(PythonBuildDir)' == ''" >$(SolutionDir)</PythonBuildDir >
16
17
<RestorePackages >true</RestorePackages >
17
18
</PropertyGroup >
18
19
<PropertyGroup Condition =" '$(Configuration)|$(Platform)' == 'DebugMono|x86'" >
19
20
<DebugSymbols >true</DebugSymbols >
20
21
<OutputPath >bin\x86\DebugMono\</OutputPath >
21
- <DefineConstants >DEBUG;TRACE</DefineConstants >
22
+ <DefineConstants Condition = " '$(DefineConstants)' == '' " >DEBUG;TRACE</DefineConstants >
22
23
<DebugType >full</DebugType >
23
24
<PlatformTarget >x86</PlatformTarget >
24
25
<ErrorReport >prompt</ErrorReport >
29
30
<PropertyGroup Condition =" '$(Configuration)|$(Platform)' == 'DebugMono|x64'" >
30
31
<DebugSymbols >true</DebugSymbols >
31
32
<OutputPath >bin\x64\DebugMono\</OutputPath >
32
- <DefineConstants >DEBUG;TRACE</DefineConstants >
33
+ <DefineConstants Condition = " '$(DefineConstants)' == '' " >DEBUG;TRACE</DefineConstants >
33
34
<DebugType >full</DebugType >
34
35
<PlatformTarget >x64</PlatformTarget >
35
36
<ErrorReport >prompt</ErrorReport >
39
40
</PropertyGroup >
40
41
<PropertyGroup Condition =" '$(Configuration)|$(Platform)' == 'ReleaseMono|x86'" >
41
42
<OutputPath >bin\x86\ReleaseMono\</OutputPath >
42
- <DefineConstants >
43
- </DefineConstants >
43
+ <DefineConstants Condition =" '$(DefineConstants)' == ''" ></DefineConstants >
44
44
<Optimize >true</Optimize >
45
45
<DebugType >pdbonly</DebugType >
46
46
<PlatformTarget >x86</PlatformTarget >
51
51
</PropertyGroup >
52
52
<PropertyGroup Condition =" '$(Configuration)|$(Platform)' == 'ReleaseMono|x64'" >
53
53
<OutputPath >bin\x64\ReleaseMono\</OutputPath >
54
- <DefineConstants >
55
- </DefineConstants >
54
+ <DefineConstants Condition =" '$(DefineConstants)' == ''" ></DefineConstants >
56
55
<Optimize >true</Optimize >
57
56
<DebugType >pdbonly</DebugType >
58
57
<PlatformTarget >x64</PlatformTarget >
64
63
<PropertyGroup Condition =" '$(Configuration)|$(Platform)' == 'DebugWin|x86'" >
65
64
<DebugSymbols >true</DebugSymbols >
66
65
<OutputPath >bin\x86\DebugWin\</OutputPath >
67
- <DefineConstants >TRACE;DEBUG;DEBUG_PRINT</DefineConstants >
66
+ <DefineConstants Condition = " '$(DefineConstants)' == '' " >TRACE;DEBUG;DEBUG_PRINT</DefineConstants >
68
67
<DebugType >full</DebugType >
69
68
<PlatformTarget >x86</PlatformTarget >
70
69
<ErrorReport >prompt</ErrorReport >
75
74
<PropertyGroup Condition =" '$(Configuration)|$(Platform)' == 'DebugWin|x64'" >
76
75
<DebugSymbols >true</DebugSymbols >
77
76
<OutputPath >bin\x64\DebugWin\</OutputPath >
78
- <DefineConstants >DEBUG;TRACE</DefineConstants >
77
+ <DefineConstants Condition = " '$(DefineConstants)' == '' " >DEBUG;TRACE</DefineConstants >
79
78
<DebugType >full</DebugType >
80
79
<PlatformTarget >x64</PlatformTarget >
81
80
<ErrorReport >prompt</ErrorReport >
85
84
</PropertyGroup >
86
85
<PropertyGroup Condition =" '$(Configuration)|$(Platform)' == 'ReleaseWin|x86'" >
87
86
<OutputPath >bin\x86\ReleaseWin\</OutputPath >
88
- <DefineConstants >
89
- </DefineConstants >
87
+ <DefineConstants Condition =" '$(DefineConstants)' == ''" ></DefineConstants >
90
88
<Optimize >true</Optimize >
91
89
<DebugType >pdbonly</DebugType >
92
90
<PlatformTarget >x86</PlatformTarget >
97
95
</PropertyGroup >
98
96
<PropertyGroup Condition =" '$(Configuration)|$(Platform)' == 'ReleaseWin|x64'" >
99
97
<OutputPath >bin\x64\ReleaseWin\</OutputPath >
100
- <DefineConstants >
101
- </DefineConstants >
98
+ <DefineConstants Condition =" '$(DefineConstants)' == ''" ></DefineConstants >
102
99
<Optimize >true</Optimize >
103
100
<DebugType >pdbonly</DebugType >
104
101
<PlatformTarget >x64</PlatformTarget >
122
119
<None Include =" packages.config" />
123
120
</ItemGroup >
124
121
<Import Project =" $(MSBuildToolsPath)\Microsoft.CSharp.targets" />
125
- <PropertyGroup >
126
- <PreBuildEvent >del "$(SolutionDir)clr.pyd"</PreBuildEvent >
127
- </PropertyGroup >
128
- <PropertyGroup >
129
- <PostBuildEvent >move "$(TargetPath)" "$(TargetDir)clr.pyd"
130
- copy "$(TargetDir)clr.pyd" "$(SolutionDir)"</PostBuildEvent >
131
- </PropertyGroup >
132
- <Import Project =" $(SolutionDir)\.nuget\NuGet.targets" Condition =" Exists('$(SolutionDir)\.nuget\NuGet.targets')" />
133
- <Import Project =" ../../packages/UnmanagedExports.1.2.3-Beta/tools/RGiesecke.DllExport.targets" Condition =" Exists('../../packages/UnmanagedExports.1.2.3-Beta/tools/RGiesecke.DllExport.targets')" />
134
- <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
135
- Other similar extension points exist, see Microsoft.Common.targets.
136
- <Target Name="BeforeBuild">
137
- </Target>
138
- <Target Name="AfterBuild">
122
+ <Import Project =" $(SolutionDir)\.nuget\NuGet.targets" Condition =" '$(NoNuGet)' != 'true' And Exists('$(SolutionDir)\.nuget\NuGet.targets')" />
123
+ <Import Project =" ..\..\packages\UnmanagedExports.1.2.3-Beta\tools\RGiesecke.DllExport.targets" Condition =" Exists('..\..\packages\UnmanagedExports.1.2.3-Beta\tools\RGiesecke.DllExport.targets')" />
124
+ <Target Name =" AfterBuild" DependsOnTargets =" RGieseckeDllExport" >
125
+ <Copy SourceFiles =" $(TargetPath)" DestinationFiles =" $(PythonBuildDir)\clr.pyd" />
139
126
</Target >
140
- -->
141
127
</Project >