diff options
author | Rob Herring <[email protected]> | 2017-05-03 14:35:20 -0500 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2017-05-11 13:52:21 +0100 |
commit | 3f097396a1642bb7033002d0bdd37e194afce06a (patch) | |
tree | 8a4bd04f538b8622325f18b9b26053256a44da63 /src/egl | |
parent | 2a2dabe1c330fea311505b453de58ddcd5488fcc (diff) |
Android: push driver build details to driver makefiles
src/gallium/targets/dri/Android.mk contains lots of conditional for
individual drivers. Let's move these details into the individual driver
makefiles.
In the process, align the make driver conditionals with automake
(i.e. HAVE_GALLIUM_*).
Signed-off-by: Rob Herring <[email protected]>
[Emil Velikov: add the radeon winsys for radeonsi]
Signed-off-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src/egl')
-rw-r--r-- | src/egl/Android.mk | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/egl/Android.mk b/src/egl/Android.mk index a122c1d971a..00553226773 100644 --- a/src/egl/Android.mk +++ b/src/egl/Android.mk @@ -58,16 +58,16 @@ LOCAL_SHARED_LIBRARIES := \ libgralloc_drm \ libsync -ifeq ($(strip $(MESA_BUILD_CLASSIC)),true) -# require i915_dri and/or i965_dri -LOCAL_REQUIRED_MODULES += \ - $(addsuffix _dri, $(filter i915 i965, $(MESA_GPU_DRIVERS))) -endif # MESA_BUILD_CLASSIC - -ifeq ($(strip $(MESA_BUILD_GALLIUM)),true) +# This controls enabling building of driver libraries +ifneq ($(HAVE_I915_DRI),) +LOCAL_REQUIRED_MODULES += i915_dri +endif +ifneq ($(HAVE_I965_DRI),) +LOCAL_REQUIRED_MODULES += i965_dri +endif +ifneq ($(MESA_BUILD_GALLIUM),) LOCAL_REQUIRED_MODULES += gallium_dri -endif # MESA_BUILD_GALLIUM - +endif LOCAL_MODULE := libGLES_mesa LOCAL_MODULE_RELATIVE_PATH := egl |