aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCourtney Goeltzenleuchter <courtneygo@google.com>2016-03-22 16:27:25 -0600
committerIan Elliott <ianelliott@google.com>2016-03-24 08:56:33 -0600
commit4191f312a9285ee179d474894f4d2400c4c96a50 (patch)
tree60c3234c9e7358807b568cae1d7f608e75309b51
parent26c548826ff0f83d12c769b51e7d6f76d1265c0e (diff)
downloadvulkan-validation-layers-4191f312a9285ee179d474894f4d2400c4c96a50.tar.gz
GH171: Fix for NDK packaging
Script depends on current working directory to be this same as where the script lives so make sure that's the case. Return 0 so NDK tools know things were successful.
-rwxr-xr-xbuildAndroid/android-generate.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/buildAndroid/android-generate.sh b/buildAndroid/android-generate.sh
index e5d3886f2..928a17621 100755
--- a/buildAndroid/android-generate.sh
+++ b/buildAndroid/android-generate.sh
@@ -15,6 +15,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.
+dir=$(cd -P -- "$(dirname -- "$0")" && pwd -P)
+cd $dir
+
rm -rf generated
mkdir -p generated
python ../vk-generate.py Android dispatch-table-ops layer > generated/vk_dispatch_table_helper.h
@@ -27,3 +30,4 @@ python ../vk-layer-generate.py Android unique_objects ../include/vulkan/vulkan.h
( cd generated; python ../../genvk.py threading -registry ../../vk.xml thread_check.h )
( cd generated; python ../../genvk.py paramchecker -registry ../../vk.xml parameter_validation.h )
+exit 0