summaryrefslogtreecommitdiffstats
path: root/src/gallium/winsys
diff options
context:
space:
mode:
authorJohn Stultz <[email protected]>2019-04-26 09:35:13 -0700
committerMarge Bot <[email protected]>2020-03-19 21:20:08 +0000
commit511c6408f48097bb4c04087931e3712ade662525 (patch)
tree080543726aeeea77185c4cf0f05336cfa5578426 /src/gallium/winsys
parent9dbff6f6ce0dea622f98c9d14336148e9afc19ae (diff)
Android.mk: Tweak MESA_ENABLE_LLVM checks
Change the MESA_ENABLE_LLVM checks in Android.mk files in order to get mesa3d to build w/ AOSP using mmma. This tries to re-create a change that was introduced in the following merge in the AOSP branch: 69f2c0128d2b Merge branch 'aosp/upstream-18.0' Acked-by: Tapani Pälli <[email protected]> Acked-by: Mauro Rossi <[email protected]> Signed-off-by: John Stultz <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4175>
Diffstat (limited to 'src/gallium/winsys')
-rw-r--r--src/gallium/winsys/amdgpu/drm/Android.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/winsys/amdgpu/drm/Android.mk b/src/gallium/winsys/amdgpu/drm/Android.mk
index 0b8edf972dc..90f56e45bdc 100644
--- a/src/gallium/winsys/amdgpu/drm/Android.mk
+++ b/src/gallium/winsys/amdgpu/drm/Android.mk
@@ -21,6 +21,8 @@
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
# DEALINGS IN THE SOFTWARE.
+ifeq ($(MESA_ENABLE_LLVM),true)
+
LOCAL_PATH := $(call my-dir)
# get C_SOURCES
@@ -46,3 +48,5 @@ ifneq ($(HAVE_GALLIUM_RADEONSI),)
$(eval GALLIUM_LIBS += $(LOCAL_MODULE) $(LOCAL_STATIC_LIBRARIES))
$(eval GALLIUM_SHARED_LIBS += $(LOCAL_SHARED_LIBRARIES))
endif
+
+endif # MESA_ENABLE_LLVM==true