forked from dotnet/java-interop
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJava.Interop.targets
More file actions
28 lines (28 loc) · 1.39 KB
/
Java.Interop.targets
File metadata and controls
28 lines (28 loc) · 1.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Runtime Condition="'$(OS)' != 'Windows_NT'">mono</Runtime>
</PropertyGroup>
<Target Name="BuildJnienvGen"
Inputs="..\..\build-tools\jnienv-gen\jnienv-gen.csproj"
Outputs="$(JNIEnvGenPath)\jnienv-gen.exe">
<MSBuild
Projects="..\..\build-tools\jnienv-gen\jnienv-gen.csproj"
/>
</Target>
<Target Name="BuildJniEnvironment_g_cs"
Inputs="$(JNIEnvGenPath)\jnienv-gen.exe"
Outputs="Java.Interop\JniEnvironment.g.cs;$(IntermediateOutputPath)\jni.c">
<MakeDir Directories="$(IntermediateOutputPath)" />
<Exec
Command="$(Runtime) "$(JNIEnvGenPath)\jnienv-gen.exe" Java.Interop\JniEnvironment.g.cs $(IntermediateOutputPath)\jni.c"
/>
</Target>
<Target Name="BuildInteropJar"
Inputs="@(CompileJavaInteropJar)"
Outputs="$(OutputPath)java-interop.jar">
<MakeDir Directories="$(OutputPath);$(IntermediateOutputPath)ji-classes" />
<Exec Command=""$(JavaCPath)" -source 1.5 -target 1.6 -d "$(IntermediateOutputPath)ji-classes" @(CompileJavaInteropJar -> '%(Identity)', ' ')" />
<Exec Command=""$(JarPath)" cf "$(OutputPath)java-interop.jar" -C "$(IntermediateOutputPath)ji-classes" ." />
</Target>
</Project>