diff --git a/src/Mono.Android/Mono.Android.csproj b/src/Mono.Android/Mono.Android.csproj index cbf72ec0d..9dead3293 100644 --- a/src/Mono.Android/Mono.Android.csproj +++ b/src/Mono.Android/Mono.Android.csproj @@ -304,5 +304,10 @@ generator False + + {52C7D9B6-E8C8-47D0-9471-652D278D7D77} + jcw-gen + False + \ No newline at end of file diff --git a/src/Mono.Android/Mono.Android.targets b/src/Mono.Android/Mono.Android.targets index f68569ae0..f311f0f2c 100644 --- a/src/Mono.Android/Mono.Android.targets +++ b/src/Mono.Android/Mono.Android.targets @@ -67,8 +67,45 @@ Command="$(ManagedRuntime) $(Generator) $(_ApiLevel) $(_Out) $(_Codegen) $(_Fixup) $(_Enums1) $(_Enums2) $(_Versions) $(_Annotations) $(_Assembly) $(_TypeMap) $(_Dirs) $(_Api)" /> + + <_CommonJavaSources Include="java\**\*.java" /> + + + + + ..\..\external\Java.Interop\bin\$(Configuration)\jcw-gen.exe + <_LibDirs>-L "$(OutputPath)" -L "$(OutputPath)..\v1.0\" -L "$(OutputPath)..\v1.0\Facades" + <_Assembly>"$(OutputPath)$(AssemblyName).dll" + <_Out>-o "$(IntermediateOutputPath)android-$(AndroidApiLevel).jcw\src" + + + + <_JavaSources Include="$(IntermediateOutputPath)android-$(AndroidApiLevel).jcw\src\**\*.java" /> + + + + <_Target>-source 1.6 -target 1.6 + <_D>-d "$(IntermediateOutputPath)android-$(AndroidApiLevel).jcw\bin" + <_AndroidJar>"$(AndroidToolchainDirectory)\sdk\platforms\android-$(AndroidApiLevel)\android.jar" + + + + - +