|
23 | 23 | <WarningLevel>4</WarningLevel> |
24 | 24 | <ConsolePause>false</ConsolePause> |
25 | 25 | <AllowUnsafeBlocks>true</AllowUnsafeBlocks> |
| 26 | + <JNIEnvGenPath>$(OutputPath)</JNIEnvGenPath> |
26 | 27 | </PropertyGroup> |
27 | 28 | <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> |
28 | 29 | <Optimize>true</Optimize> |
|
32 | 33 | <ConsolePause>false</ConsolePause> |
33 | 34 | <DefineConstants>INTEROP</DefineConstants> |
34 | 35 | <AllowUnsafeBlocks>true</AllowUnsafeBlocks> |
| 36 | + <JNIEnvGenPath>$(OutputPath)</JNIEnvGenPath> |
| 37 | + </PropertyGroup> |
| 38 | + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'XAIntegrationDebug|AnyCPU' "> |
| 39 | + <DebugSymbols>true</DebugSymbols> |
| 40 | + <DebugType>full</DebugType> |
| 41 | + <Optimize>false</Optimize> |
| 42 | + <OutputPath>..\..\bin\XAIntegrationDebug</OutputPath> |
| 43 | + <DefineConstants>DEBUG;INTEROP;FEATURE_HANDLES_ARE_INTPTRS</DefineConstants> |
| 44 | + <ErrorReport>prompt</ErrorReport> |
| 45 | + <WarningLevel>4</WarningLevel> |
| 46 | + <ConsolePause>false</ConsolePause> |
| 47 | + <AllowUnsafeBlocks>true</AllowUnsafeBlocks> |
| 48 | + <JNIEnvGenPath>..\..\bin\Debug</JNIEnvGenPath> |
35 | 49 | </PropertyGroup> |
36 | 50 | <ItemGroup> |
37 | 51 | <Compile Include="Properties\AssemblyInfo.cs" /> |
38 | 52 | <Compile Include="Java.Interop\JavaPeerableExtensions.cs" /> |
39 | 53 | <Compile Include="Java.Interop\JavaVM.cs" /> |
40 | | - <Compile Include="Java.Interop\JniAllocObjectRef.cs" /> |
41 | | - <Compile Include="Java.Interop\JniReferenceSafeHandle.cs" /> |
42 | 54 | <Compile Include="Java.Interop\JniEnvironment.cs" /> |
43 | 55 | <Compile Include="Java.Interop\JniEnvironment.g.cs" /> |
44 | 56 | <Compile Include="Java.Interop\JniEnvironment.References.cs" /> |
|
53 | 65 | <Compile Include="Java.Interop\JniStaticFieldInfo.cs" /> |
54 | 66 | <Compile Include="Java.Interop\JniType.cs" /> |
55 | 67 | <Compile Include="Java.Interop\JValue.cs" /> |
56 | | - <Compile Include="Java.Interop\JniGlobalReference.cs" /> |
57 | | - <Compile Include="Java.Interop\JniWeakGlobalReference.cs" /> |
58 | | - <Compile Include="Java.Interop\JniLocalReference.cs" /> |
59 | 68 | <Compile Include="Java.Interop\JavaException.cs" /> |
60 | 69 | <Compile Include="Java.Interop\JniNativeMethodRegistration.cs" /> |
61 | 70 | <Compile Include="Java.Interop\JavaObject.cs" /> |
|
99 | 108 | <Compile Include="Java.Interop\JniMarshalMethod.cs" /> |
100 | 109 | <Compile Include="Java.Interop\ManagedPeer.cs" /> |
101 | 110 | </ItemGroup> |
| 111 | + <ItemGroup Condition=" !$(Configuration.StartsWith('XAIntegration')) "> |
| 112 | + <Compile Include="Java.Interop\JniAllocObjectRef.cs" /> |
| 113 | + <Compile Include="Java.Interop\JniGlobalReference.cs" /> |
| 114 | + <Compile Include="Java.Interop\JniLocalReference.cs" /> |
| 115 | + <Compile Include="Java.Interop\JniReferenceSafeHandle.cs" /> |
| 116 | + <Compile Include="Java.Interop\JniWeakGlobalReference.cs" /> |
| 117 | + </ItemGroup> |
102 | 118 | <ItemGroup> |
103 | 119 | <CompileJavaInteropJar Include="java\com\xamarin\android\internal\JavaProxyObject.java" /> |
104 | 120 | <CompileJavaInteropJar Include="java\com\xamarin\android\internal\JavaProxyThrowable.java" /> |
|
115 | 131 | <PropertyGroup> |
116 | 132 | <Runtime Condition="'$(OS)' != 'Windows_NT'">mono</Runtime> |
117 | 133 | </PropertyGroup> |
118 | | - <Target Name="BuildJniEnvironment_g_cs" Inputs="$(OutputPath)\jnienv-gen.exe" Outputs="Java.Interop\JniEnvironment.g.cs"> |
119 | | - <Exec Command="$(Runtime) "$(OutputPath)\jnienv-gen.exe" Java.Interop\JniEnvironment.g.cs" /> |
| 134 | + <Target Name="BuildJniEnvironment_g_cs" Inputs="$(JNIEnvGenPath)\jnienv-gen.exe" Outputs="Java.Interop\JniEnvironment.g.cs;$(OutputPath)\jni.c"> |
| 135 | + <Exec Command="$(Runtime) "$(JNIEnvGenPath)\jnienv-gen.exe" Java.Interop\JniEnvironment.g.cs $(OutputPath)\jni.c" /> |
120 | 136 | </Target> |
121 | 137 | <ItemGroup> |
122 | | - <JavaInteropJar Include="%24%28OutputPath%29java-interop.jar" /> |
| 138 | + <JavaInteropJar Include="$(OutputPath)java-interop.jar" /> |
123 | 139 | </ItemGroup> |
124 | 140 | <Target Name="BuildInteropJar" Inputs="@(CompileJavaInteropJar)" Outputs="@(JavaInteropJar)"> |
125 | 141 | <MakeDir Directories="$(OutputPath)ji-classes" /> |
|
0 commit comments