Check validity of JNI at compilation time using javah.

This commit is contained in:
Ghislain MARY 2012-10-23 11:12:31 +02:00
parent 810c17a983
commit 618eaa3e46
2 changed files with 45 additions and 14 deletions

View file

@ -4,16 +4,47 @@
<target name="-pre-build" description="Move file that is not to be compiled.">
<move file="submodules/linphone/mediastreamer2/java/src/org/linphone/mediastream/MediastreamerActivity.java"
tofile="submodules/linphone/mediastreamer2/java/src/org/linphone/mediastream/MediastreamerActivity.java.build"
tofile="submodules/linphone/mediastreamer2/java/src/org/linphone/mediastream/MediastreamerActivity.wnin"
failonerror="false" />
</target>
<target name="-post-build" description="Restore file that has been moved so that it was not compiled.">
<move file="submodules/linphone/mediastreamer2/java/src/org/linphone/mediastream/MediastreamerActivity.java.build"
<move file="submodules/linphone/mediastreamer2/java/src/org/linphone/mediastream/MediastreamerActivity.wnin"
tofile="submodules/linphone/mediastreamer2/java/src/org/linphone/mediastream/MediastreamerActivity.java"
failonerror="false" />
</target>
<target name="javah">
<echo level="info">Generate JNI header</echo>
<javah outputfile="gen/linphonecore_jni.h">
<classpath>
<pathelement location="${out.classes.absolute.dir}" />
</classpath>
<class name="org.linphone.core.LinphoneAddressImpl" />
<class name="org.linphone.core.LinphoneAuthInfoImpl" />
<class name="org.linphone.core.LinphoneCallImpl" />
<class name="org.linphone.core.LinphoneCallLogImpl" />
<class name="org.linphone.core.LinphoneCallParamsImpl" />
<class name="org.linphone.core.LinphoneCallStatsImpl" />
<class name="org.linphone.core.LinphoneChatMessageImpl" />
<class name="org.linphone.core.LinphoneChatRoomImpl" />
<class name="org.linphone.core.LinphoneCoreFactoryImpl" />
<class name="org.linphone.core.LinphoneCoreImpl" />
<class name="org.linphone.core.LinphoneFriendImpl" />
<class name="org.linphone.core.LinphoneProxyConfigImpl" />
<class name="org.linphone.core.PayloadTypeImpl" />
</javah>
</target>
<target name="build-libs">
<exec executable="make" failonerror="true">
<arg value="generate-libs" />
</exec>
</target>
<target name="-post-compile" depends="javah, build-libs">
</target>
<target name="-package-resources" depends="-crunch">
<!-- only package resources if *not* a library project -->
<do-only-if-not-library elseText="Library project: do not package resources...">

@ -1 +1 @@
Subproject commit 9d1c032211f27bd7fff5af4fd070666789548316
Subproject commit 6b89311813fd2721c48cd793176e02650eea69fb