Skip to content

Commit

Permalink
Merge pull request #2261 from mstepanov/timob-9150
Browse files Browse the repository at this point in the history
[TIMOB-9150] workaround android NDK project path limitation when packaging a module
  • Loading branch information
billdawson committed May 25, 2012
2 parents 8cb16be + 14a247b commit 5e45619
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions support/module/android/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -308,14 +308,23 @@ timodule.xml.

<property name="mobilesdk.dir" location="${titanium.platform}/.."/>
<property name="ndk.verbose" value="0"/>

<exec executable="${ndk.build}" dir="@{gendir}" failonerror="true">
<property name="tmpdir" value="${java.io.tmpdir}/${user.name}/${ant.project.name}-generated" />

<mkdir dir="${tmpdir}" />
<copy todir="${tmpdir}" preservelastmodified="true" overwrite="true" includeEmptyDirs="true">
<fileset dir="@{gendir}"/>
</copy>
<exec executable="${ndk.build}" dir="${tmpdir}" failonerror="true">
<arg value="TI_MOBILE_SDK=${mobilesdk.dir}"/>
<arg value="NDK_PROJECT_PATH=@{gendir}"/>
<arg value="NDK_APPLICATION_MK=@{gendir}/Application.mk"/>
<arg value="NDK_PROJECT_PATH=${tmpdir}"/>
<arg value="NDK_APPLICATION_MK=${tmpdir}/Application.mk"/>
<arg value="PYTHON=${python.exec}"/>
<arg value="V=${ndk.verbose}"/>
</exec>

<move todir="@{gendir}" preservelastmodified="true" overwrite="true" includeEmptyDirs="true">
<fileset dir="${tmpdir}"/>
</move>
</sequential>
</macrodef>

Expand Down

0 comments on commit 5e45619

Please sign in to comment.