Let's admit it it's time to move to gradle #3014

This commit is contained in:
rusefillc 2022-10-16 02:18:36 -04:00
parent fe4e0b5e1f
commit 5b7523b1eb
2 changed files with 13 additions and 6 deletions

View File

@ -86,11 +86,7 @@
</javac>
</target>
<target name="native_header">
<javah classpath="io/src/main/java" destdir="../unit_tests/native" class="com.rusefi.native_.EngineLogic"/>
</target>
<target name="test" depends="compile, copy_c_sources">
<target name="test" depends="compile, copy_c_sources">
<junit fork="yes"
maxmemory="512m"
printsummary="yes"
@ -121,7 +117,7 @@
</copy>
</target>
<target name="jar" depends="compile, native_header, copy_c_sources">
<target name="jar" depends="compile, copy_c_sources">
<mkdir dir="build/jar"/>
<delete file="${jar_file}"/>
<echo message="Building ${jar_file}"/>

View File

@ -31,4 +31,15 @@ dependencies {
testFixturesImplementation global_libs.mockito
testFixturesApi global_libs.annotations
testFixturesApi global_libs.junit
}
compileJava {
doLast {
// gradle java plugin always generates JNI headers
copy {
from 'build/generated/sources/headers/java/main'
into "../../unit_tests/native"
include 'com*.h'
}
}
}