mirror of https://github.com/rusefi/rusefi.git
Let's admit it it's time to move to gradle #3014
This commit is contained in:
parent
fe4e0b5e1f
commit
5b7523b1eb
|
@ -86,11 +86,7 @@
|
||||||
</javac>
|
</javac>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="native_header">
|
<target name="test" depends="compile, copy_c_sources">
|
||||||
<javah classpath="io/src/main/java" destdir="../unit_tests/native" class="com.rusefi.native_.EngineLogic"/>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="test" depends="compile, copy_c_sources">
|
|
||||||
<junit fork="yes"
|
<junit fork="yes"
|
||||||
maxmemory="512m"
|
maxmemory="512m"
|
||||||
printsummary="yes"
|
printsummary="yes"
|
||||||
|
@ -121,7 +117,7 @@
|
||||||
</copy>
|
</copy>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="jar" depends="compile, native_header, copy_c_sources">
|
<target name="jar" depends="compile, copy_c_sources">
|
||||||
<mkdir dir="build/jar"/>
|
<mkdir dir="build/jar"/>
|
||||||
<delete file="${jar_file}"/>
|
<delete file="${jar_file}"/>
|
||||||
<echo message="Building ${jar_file}"/>
|
<echo message="Building ${jar_file}"/>
|
||||||
|
|
|
@ -31,4 +31,15 @@ dependencies {
|
||||||
testFixturesImplementation global_libs.mockito
|
testFixturesImplementation global_libs.mockito
|
||||||
testFixturesApi global_libs.annotations
|
testFixturesApi global_libs.annotations
|
||||||
testFixturesApi global_libs.junit
|
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'
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue