Emil Velikov 於 西元2015年07月09日 01:07 寫道: > Set the macro if we're not building swrast alone. > > Cc: Chih-Wei Huang <[email protected]> > Cc: Eric Anholt <[email protected]> > Signed-off-by: Emil Velikov <[email protected]> > --- > src/gallium/targets/dri/Android.mk | 8 +++----- > 1 file changed, 3 insertions(+), 5 deletions(-) > > diff --git a/src/gallium/targets/dri/Android.mk > b/src/gallium/targets/dri/Android.mk > index 5ba129b..bccc91a 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
Looks good to me. Reviewed-by: Chih-Wei Huang <[email protected]> _______________________________________________ mesa-dev mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-dev
