Updated ant build
This commit is contained in:
parent
212453983e
commit
e3ffb0e886
4 changed files with 178 additions and 1530 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -3,6 +3,5 @@ obj
|
||||||
gen
|
gen
|
||||||
bin
|
bin
|
||||||
doc
|
doc
|
||||||
ant.properties
|
|
||||||
local.properties
|
local.properties
|
||||||
project.properties
|
project.properties
|
||||||
|
|
2
ant.properties
Normal file
2
ant.properties
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
key.store=bc-android.keystore
|
||||||
|
key.alias=nw8000
|
93
custom_rules.xml
Normal file
93
custom_rules.xml
Normal file
|
@ -0,0 +1,93 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project name="custom_rules">
|
||||||
|
<property name="linphone.package.name" value="org.linphone" />
|
||||||
|
|
||||||
|
<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.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.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="partial-clean">
|
||||||
|
<delete file="bin/${ant.project.name}.ap_" />
|
||||||
|
</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...">
|
||||||
|
<exec executable="${aapt}" failonerror="true">
|
||||||
|
<arg value="package" />
|
||||||
|
<arg value="-f" />
|
||||||
|
<arg value="-v" />
|
||||||
|
<arg value="--version-code" />
|
||||||
|
<arg value="${version.code}" />
|
||||||
|
<arg value="--debug-mode" />
|
||||||
|
<arg value="-m" />
|
||||||
|
<arg value="-u" />
|
||||||
|
<arg value="-J" />
|
||||||
|
<arg path="${gen.absolute.dir}" />
|
||||||
|
<arg value="-M" />
|
||||||
|
<arg path="${out.manifest.abs.file}" />
|
||||||
|
<arg value="-I" />
|
||||||
|
<arg path="${project.target.android.jar}" />
|
||||||
|
<arg value="-F" />
|
||||||
|
<arg path="${out.absolute.dir}/${resource.package.file.name}" />
|
||||||
|
<arg value="-S" />
|
||||||
|
<arg path="${resource.absolute.dir}" />
|
||||||
|
<arg value="--rename-manifest-package" />
|
||||||
|
<arg value="${linphone.package.name}" />
|
||||||
|
<arg value="--custom-package" />
|
||||||
|
<arg value="${linphone.package.name}" />
|
||||||
|
</exec>
|
||||||
|
</do-only-if-not-library>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="run">
|
||||||
|
<exec executable="adb">
|
||||||
|
<arg value="shell" />
|
||||||
|
<arg value="am" />
|
||||||
|
<arg value="start" />
|
||||||
|
<arg value="-a" />
|
||||||
|
<arg value="android.intent.action.MAIN" />
|
||||||
|
<arg value="-n" />
|
||||||
|
<arg value="${linphone.package.name}/org.linphone.LinphoneLauncherActivity" />
|
||||||
|
</exec>
|
||||||
|
</target>
|
||||||
|
</project>
|
Loading…
Reference in a new issue