summaryrefslogtreecommitdiffstats
path: root/src/mesa/program/Android.mk
diff options
context:
space:
mode:
authorTomasz Figa <[email protected]>2014-09-27 16:20:01 +0200
committerEmil Velikov <[email protected]>2014-10-03 01:25:35 +0100
commitb4ffd19e6c9f61dfa4e0eda1f606cd255b27208f (patch)
tree0b7b40a0dc9b077271ff0bef90a9e2c99acc1518 /src/mesa/program/Android.mk
parent98445fd25e4f0bd7dc4d7a2a843b7fbe76c9756d (diff)
st/mesa: Fix paths used in Android builds
With current makefiles the build fails because source and build paths are generated incorrectly. With Android build system the top_srcdir and top_builddir variables are undefined and all paths are relative to where Android.mk is located. This ends up with path likes external/mesa/src/mesa/src/mesa/ for both source and build paths, which are obviously wrong. This patch fixes this by overriding resulting SRCDIR and BUILDDIR variables with empty string, so that paths end up being relative to Android.mk file again. Appending correct build path to generated files is already done in Android.gen.mk. Signed-off-by: Tomasz Figa <[email protected]> CC: <[email protected]> Reviewed-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src/mesa/program/Android.mk')
-rw-r--r--src/mesa/program/Android.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/program/Android.mk b/src/mesa/program/Android.mk
index a237b65bc08..19c4be0feba 100644
--- a/src/mesa/program/Android.mk
+++ b/src/mesa/program/Android.mk
@@ -39,6 +39,8 @@ endef
# Import the following variables:
# PROGRAM_FILES
include $(MESA_TOP)/src/mesa/Makefile.sources
+SRCDIR :=
+BUILDDIR :=
include $(CLEAR_VARS)