Play-/build_android/custom_rules.xml
2015-08-02 12:51:01 +01:00

41 lines
1.4 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<project name="play-native" default="help">
<property environment="env" />
<condition property="ndk.debug" value="${env.NDK_DEBUG}" else="1">
<isset property="env.NDK_DEBUG" />
</condition>
<condition property="ndkcpu" value="-j${env.NUMBER_OF_PROCESSORS}" else="-j4">
<isset property="env.NUMBER_OF_PROCESSORS" />
</condition>
<property name="java.source" value="1.7"/>
<property name="java.target" value="1.7"/>
<target name="-pre-build">
<exec executable="${ndk.dir}/ndk-build.cmd" failonerror="true" osfamily="windows">
<env key="NDK_DEBUG" value="${ndk.debug}"/>
<arg value="${ndkcpu}" />
</exec>
<exec executable="${ndk.dir}/ndk-build" failonerror="true" osfamily="unix">
<env key="NDK_DEBUG" value="${ndk.debug}"/>
<arg value="${ndkcpu}" />
</exec>
</target>
<target name="-pre-clean">
<exec executable="${ndk.dir}/ndk-build.cmd" failonerror="true" osfamily="windows">
<arg value="clean" />
</exec>
<exec executable="${ndk.dir}/ndk-build.cmd" failonerror="true" osfamily="windows">
<arg value="clean" />
<arg value="NDK_DEBUG=1" />
</exec>
<exec executable="${ndk.dir}/ndk-build" failonerror="true" osfamily="unix">
<arg value="clean" />
</exec>
<exec executable="${ndk.dir}/ndk-build" failonerror="true" osfamily="unix">
<arg value="clean" />
<arg value="NDK_DEBUG=1" />
</exec>
</target>
</project>