mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
android: fix libsync dependencies (v2)
(v2) Remove include from Android.common.mk
Avoid adding libsync shared dependency in Android.common.mk
Add libsync shared dependency where needed, for easier tracking
(v1) Fixes the following building errors:
In file included from external/mesa/src/gallium/drivers/freedreno/a3xx/fd3_query.c:27:
In file included from external/mesa/src/gallium/drivers/freedreno/freedreno_query_hw.h:33:
In file included from external/mesa/src/gallium/drivers/freedreno/freedreno_context.h:33:
external/mesa/src/util/libsync.h:48:10: fatal error: 'android/sync.h' file not found
^~~~~~~~~~~~~~~~
1 error generated.
In file included from external/mesa/src/mesa/drivers/dri/i965/brw_sync.c:41:
external/mesa/src/util/libsync.h:48:10: fatal error: 'android/sync.h' file not found
^~~~~~~~~~~~~~~~
1 error generated.
In file included from external/mesa/src/gallium/auxiliary/util/u_tests.c:513:
external/mesa/src/util/libsync.h:48:10: fatal error: 'android/sync.h' file not found
^~~~~~~~~~~~~~~~
1 error generated.
FAILED: out/target/product/x86_64/obj_x86/SHARED_LIBRARIES/i965_dri_intermediates/LINKED/i965_dri.so
...
external/mesa/src/mesa/drivers/dri/i965/brw_sync.c:223: error: undefined reference to 'sync_wait'
external/mesa/src/mesa/drivers/dri/i965/brw_sync.c:287: error: undefined reference to 'sync_wait'
FAILED: out/target/product/x86_64/obj_x86/SHARED_LIBRARIES/gallium_dri_intermediates/LINKED/gallium_dri.so
...
external/mesa/src/util/libsync.h:142: error: undefined reference to 'sync_merge'
external/mesa/src/gallium/drivers/freedreno/freedreno_fence.c:94: error: undefined reference to 'sync_wait'
external/mesa/src/gallium/auxiliary/util/u_tests.c:575: error: undefined reference to 'sync_wait'
Fixes: 27b8887946 ("android: Add pre-4.7 Android kernel compatibility to our libsync header.")
Signed-off-by: Mauro Rossi <issor.oruam@gmail.com>
Acked-by: Rob Clark <robdclark@chromium.org>
Acked-by: Eric Anholt <eric@anholt.net>
Acked-by: Tapani Pälli <tapani.palli@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7306>
This commit is contained in:
parent
a09717c4de
commit
cc16113202
5 changed files with 6 additions and 3 deletions
|
|
@ -53,6 +53,7 @@ LOCAL_CPPFLAGS += -std=c++14
|
|||
|
||||
# We need libmesa_nir to get NIR's generated include directories.
|
||||
LOCAL_MODULE := libmesa_gallium
|
||||
LOCAL_SHARED_LIBRARIES += libsync
|
||||
LOCAL_STATIC_LIBRARIES += libmesa_nir
|
||||
|
||||
LOCAL_WHOLE_STATIC_LIBRARIES += cpufeatures
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ LOCAL_C_INCLUDES := \
|
|||
|
||||
LOCAL_GENERATED_SOURCES := $(MESA_GEN_NIR_H)
|
||||
|
||||
LOCAL_SHARED_LIBRARIES := libdrm
|
||||
LOCAL_SHARED_LIBRARIES := libdrm libsync
|
||||
LOCAL_STATIC_LIBRARIES := libmesa_glsl libmesa_nir libfreedreno_drm libfreedreno_ir3 libfreedreno_perfcntrs libfreedreno_registers
|
||||
LOCAL_MODULE := libmesa_pipe_freedreno
|
||||
|
||||
|
|
|
|||
|
|
@ -43,7 +43,8 @@ LOCAL_SHARED_LIBRARIES := \
|
|||
libdl \
|
||||
libglapi \
|
||||
libz \
|
||||
liblog
|
||||
liblog \
|
||||
libsync
|
||||
|
||||
# If Android version >=8 MESA should static link libexpat else should dynamic link
|
||||
ifeq ($(shell test $(PLATFORM_SDK_VERSION) -ge 27; echo $$?), 0)
|
||||
|
|
|
|||
|
|
@ -51,6 +51,7 @@ MESA_DRI_SHARED_LIBRARIES := \
|
|||
libdl \
|
||||
libglapi \
|
||||
liblog \
|
||||
libsync \
|
||||
libz
|
||||
|
||||
# If Android version >=8 MESA should static link libexpat else should dynamic link
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ LOCAL_SHARED_LIBRARIES := \
|
|||
libexpat
|
||||
endif
|
||||
|
||||
LOCAL_SHARED_LIBRARIES += liblog
|
||||
LOCAL_SHARED_LIBRARIES += liblog libsync
|
||||
|
||||
# Generated sources
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue