mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-12 02:16:17 +00:00
tools/Android.mk: Add zlib support
IGT does not build for Android due to a zlib dependency being added to intel_error_decode.c in a recent patch. This patch fixes the error by updating the Android makefile to add the path to the zlib library and using any LDFLAGS specified in Makefile.sources. Signed-off-by: Derek Morton <derek.j.morton@intel.com> Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
This commit is contained in:
parent
fe7a42bff6
commit
825482a25c
@ -23,9 +23,14 @@ define add_tool
|
||||
LOCAL_CFLAGS += -Wno-error=return-type
|
||||
# Excessive complaining for established cases. Rely on the Linux version warnings.
|
||||
LOCAL_CFLAGS += -Wno-sign-compare
|
||||
ifeq ($($(1)_LDFLAGS),)
|
||||
else
|
||||
LOCAL_LDFLAGS += $($(1)_LDFLAGS)
|
||||
endif
|
||||
|
||||
LOCAL_C_INCLUDES = $(LOCAL_PATH)/../lib
|
||||
LOCAL_C_INCLUDES += ${ANDROID_BUILD_TOP}/external/PRIVATE/drm/include/drm
|
||||
LOCAL_C_INCLUDES += ${ANDROID_BUILD_TOP}/external/zlib
|
||||
|
||||
LOCAL_MODULE := $1_tool
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
|
Loading…
x
Reference in New Issue
Block a user