Skip to content

Commit 1bda2fe

Browse files
committed
manually applied waydroid#8
1 parent 4072c6a commit 1bda2fe

File tree

4 files changed

+11
-5
lines changed

4 files changed

+11
-5
lines changed

android/Android.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ MESA_VK_LIB_SUFFIX_swrast := lvp
3939

4040
include $(CLEAR_VARS)
4141

42-
LOCAL_SHARED_LIBRARIES := libc libdl libdrm libm liblog libcutils libz libc++ libnativewindow libsync libhardware
42+
LOCAL_SHARED_LIBRARIES := libc libdl libdrm libm liblog libcutils libz libc++ libnativewindow libsync libhardware libxml2
4343
LOCAL_STATIC_LIBRARIES := libexpat libarect libelf
4444
LOCAL_HEADER_LIBRARIES := libnativebase_headers hwvulkan_headers
45-
MESON_GEN_PKGCONFIGS := cutils expat hardware libdrm:$(LIBDRM_VERSION) nativewindow sync zlib:1.2.11 libelf
45+
MESON_GEN_PKGCONFIGS := cutils expat hardware libdrm:$(LIBDRM_VERSION) nativewindow sync zlib:1.2.11 libelf libxml2
4646
LOCAL_CFLAGS += $(BOARD_MESA3D_CFLAGS)
4747

4848
ifneq ($(filter swrast,$(BOARD_MESA3D_GALLIUM_DRIVERS) $(BOARD_MESA3D_VULKAN_DRIVERS)),)

android/mesa3d_cross.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ MESON_GEN_NINJA := \
9393
-Dcpp_rtti=false \
9494
-Dlmsensors=disabled \
9595
-Dandroid-libbacktrace=disabled \
96+
-Dxmlconfig=enabled \
9697
$(BOARD_MESA3D_MESON_ARGS) \
9798

9899
MESON_BUILD := PATH=/usr/bin:/bin:/sbin:$$PATH ninja -C $(MESON_OUT_DIR)/build

meson.build

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1573,7 +1573,7 @@ if dep_thread.found()
15731573
endif
15741574

15751575
with_expat = get_option('expat') \
1576-
.disable_auto_if(with_platform_android or with_platform_windows)
1576+
.disable_auto_if(with_platform_windows)
15771577

15781578
if host_machine.system() == 'darwin'
15791579
dep_expat = meson.get_compiler('c').find_library('expat', required : with_expat)
@@ -1589,8 +1589,8 @@ endif
15891589

15901590
# We don't require expat on Android or Windows
15911591
use_xmlconfig = get_option('xmlconfig') \
1592-
.require(not (with_platform_android or with_platform_windows),
1593-
error_message : 'xmlconfig not available on Android or Windows') \
1592+
.require(not (with_platform_windows),
1593+
error_message : 'xmlconfig not available on Windows') \
15941594
.require(dep_expat.found(),
15951595
error_message : 'requires expat') \
15961596
.allowed()

src/util/xmlconfig.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1173,6 +1173,11 @@ driInjectExecName(const char *exec)
11731173
execname = exec;
11741174
}
11751175

1176+
#ifdef __ANDROID__
1177+
#define SYSCONFDIR "/vendor/etc"
1178+
#define DATADIR "/data/vendor"
1179+
#endif /* __ANDROID__ */
1180+
11761181
void
11771182
driParseConfigFiles(driOptionCache *cache, const driOptionCache *info,
11781183
int screenNum, const char *driverName,

0 commit comments

Comments
 (0)