You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
Fix older Android SDK zipalign path for Ant and an issue for mac (.bat was hardcoded)
#ue4 #android #codereview Josh.Adams [CL 2595643 by Chris Babcock in Main branch]
This commit is contained in:
committed by
Chris.Babcock@epicgames.com
parent
1466f07a0f
commit
ba52691b20
@@ -1,20 +1,37 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<project name="custom_rules" default="debug">
|
||||
<fail
|
||||
message="sdk.dir is missing. Make sure to generate local.properties using 'android update project' or to inject it through the ANDROID_HOME environment variable."
|
||||
unless="sdk.dir"
|
||||
/>
|
||||
<fail
|
||||
message="sdk.dir is missing. Make sure to generate local.properties using 'android update project' or to inject it through the ANDROID_HOME environment variable."
|
||||
unless="sdk.dir"
|
||||
/>
|
||||
|
||||
<path id="android.antlibs">
|
||||
<pathelement path="${sdk.dir}/tools/lib/ant-tasks.jar" />
|
||||
</path>
|
||||
<pathelement path="${sdk.dir}/tools/lib/ant-tasks.jar" />
|
||||
</path>
|
||||
|
||||
<!-- Custom tasks -->
|
||||
<taskdef resource="anttasks.properties" classpathref="android.antlibs" />
|
||||
<taskdef resource="anttasks.properties" classpathref="android.antlibs" />
|
||||
|
||||
<condition property="exe" value=".exe" else=""><os family="windows" /></condition>
|
||||
<condition property="bat" value=".bat" else=""><os family="windows" /></condition>
|
||||
|
||||
<getbuildtools name="android.build.tools.dir" verbose="${verbose}" />
|
||||
<property name="aapt" location="${android.build.tools.dir}/aapt" />
|
||||
<property name="aidl" location="${android.build.tools.dir}/aidl" />
|
||||
<property name="dx" location="${android.build.tools.dir}/dx.bat" />
|
||||
<property name="zipalign" location="${android.build.tools.dir}/zipalign" />
|
||||
<property name="aapt" location="${android.build.tools.dir}/aapt${exe}" />
|
||||
<property name="aidl" location="${android.build.tools.dir}/aidl${exe}" />
|
||||
<property name="dx" location="${android.build.tools.dir}/dx${bat}" />
|
||||
<if>
|
||||
<condition>
|
||||
<resourceexists>
|
||||
<file file="${android.build.tools.dir}/zipalign${exe}" />
|
||||
</resourceexists>
|
||||
</condition>
|
||||
<then>
|
||||
<property name="zipalign" location="${android.build.tools.dir}/zipalign${exe}" />
|
||||
</then>
|
||||
<else>
|
||||
<property name="android.tools.dir" location="${sdk.dir}/tools" />
|
||||
<property name="zipalign" location="${android.tools.dir}/zipalign${exe}" />
|
||||
</else>
|
||||
</if>
|
||||
|
||||
</project>
|
||||
|
||||
@@ -1,20 +1,37 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<project name="custom_rules" default="debug">
|
||||
<fail
|
||||
message="sdk.dir is missing. Make sure to generate local.properties using 'android update project' or to inject it through the ANDROID_HOME environment variable."
|
||||
unless="sdk.dir"
|
||||
/>
|
||||
<fail
|
||||
message="sdk.dir is missing. Make sure to generate local.properties using 'android update project' or to inject it through the ANDROID_HOME environment variable."
|
||||
unless="sdk.dir"
|
||||
/>
|
||||
|
||||
<path id="android.antlibs">
|
||||
<pathelement path="${sdk.dir}/tools/lib/ant-tasks.jar" />
|
||||
</path>
|
||||
<pathelement path="${sdk.dir}/tools/lib/ant-tasks.jar" />
|
||||
</path>
|
||||
|
||||
<!-- Custom tasks -->
|
||||
<taskdef resource="anttasks.properties" classpathref="android.antlibs" />
|
||||
<taskdef resource="anttasks.properties" classpathref="android.antlibs" />
|
||||
|
||||
<condition property="exe" value=".exe" else=""><os family="windows" /></condition>
|
||||
<condition property="bat" value=".bat" else=""><os family="windows" /></condition>
|
||||
|
||||
<getbuildtools name="android.build.tools.dir" verbose="${verbose}" />
|
||||
<property name="aapt" location="${android.build.tools.dir}/aapt" />
|
||||
<property name="aidl" location="${android.build.tools.dir}/aidl" />
|
||||
<property name="dx" location="${android.build.tools.dir}/dx.bat" />
|
||||
<property name="zipalign" location="${android.build.tools.dir}/zipalign" />
|
||||
<property name="aapt" location="${android.build.tools.dir}/aapt${exe}" />
|
||||
<property name="aidl" location="${android.build.tools.dir}/aidl${exe}" />
|
||||
<property name="dx" location="${android.build.tools.dir}/dx${bat}" />
|
||||
<if>
|
||||
<condition>
|
||||
<resourceexists>
|
||||
<file file="${android.build.tools.dir}/zipalign${exe}" />
|
||||
</resourceexists>
|
||||
</condition>
|
||||
<then>
|
||||
<property name="zipalign" location="${android.build.tools.dir}/zipalign${exe}" />
|
||||
</then>
|
||||
<else>
|
||||
<property name="android.tools.dir" location="${sdk.dir}/tools" />
|
||||
<property name="zipalign" location="${android.tools.dir}/zipalign${exe}" />
|
||||
</else>
|
||||
</if>
|
||||
|
||||
</project>
|
||||
|
||||
Reference in New Issue
Block a user