diff options
author | Emil Velikov <[email protected]> | 2015-07-07 16:04:27 +0100 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2015-07-22 16:35:25 +0100 |
commit | fe1503fe38602c91e030ca206cb392a26a343f91 (patch) | |
tree | 451aac8d59a49acbe9b450bd7155f94fe727c9f9 /src/gallium/targets | |
parent | 787995bffb52d955f3046618286d831b76b72119 (diff) |
android: dri: correctly set HAVE_LIBDRM
Set the macro if we're not building swrast alone.
Cc: Eric Anholt <[email protected]>
Signed-off-by: Emil Velikov <[email protected]>
Reviewed-by: Chih-Wei Huang <[email protected]>
Diffstat (limited to 'src/gallium/targets')
-rw-r--r-- | src/gallium/targets/dri/Android.mk | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/gallium/targets/dri/Android.mk b/src/gallium/targets/dri/Android.mk index 5ba129b7961..bccc91aa526 100644 --- a/src/gallium/targets/dri/Android.mk +++ b/src/gallium/targets/dri/Android.mk @@ -35,17 +35,15 @@ endif LOCAL_SRC_FILES := target.c -LOCAL_CFLAGS := -DDRI_TARGET -DHAVE_LIBDRM +LOCAL_CFLAGS := -DDRI_TARGET LOCAL_SHARED_LIBRARIES := \ libdl \ libglapi \ libexpat \ -# swrast only? -ifeq ($(MESA_GPU_DRIVERS),swrast) -LOCAL_CFLAGS += -D__NOT_HAVE_DRM_H -else +ifneq ($(filter-out swrast,$(MESA_GPU_DRIVERS)),) +LOCAL_CFLAGS += -DHAVE_LIBDRM LOCAL_SHARED_LIBRARIES += libdrm endif |