File tree Expand file tree Collapse file tree 4 files changed +11
-5
lines changed
Expand file tree Collapse file tree 4 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -39,10 +39,10 @@ MESA_VK_LIB_SUFFIX_swrast := lvp
3939
4040include $(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
4343LOCAL_STATIC_LIBRARIES := libexpat libarect libelf
4444LOCAL_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
4646LOCAL_CFLAGS += $(BOARD_MESA3D_CFLAGS )
4747
4848ifneq ($(filter swrast,$(BOARD_MESA3D_GALLIUM_DRIVERS ) $(BOARD_MESA3D_VULKAN_DRIVERS ) ) ,)
Original file line number Diff line number Diff 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
9899MESON_BUILD := PATH=/usr/bin:/bin:/sbin:$$PATH ninja -C $(MESON_OUT_DIR ) /build
Original file line number Diff line number Diff line change @@ -1573,7 +1573,7 @@ if dep_thread.found()
15731573endif
15741574
15751575with_expat = get_option (' expat' ) \
1576- .disable_auto_if(with_platform_android or with_platform_windows)
1576+ .disable_auto_if(with_platform_windows)
15771577
15781578if 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
15911591use_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()
Original file line number Diff line number Diff 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+
11761181void
11771182driParseConfigFiles (driOptionCache * cache , const driOptionCache * info ,
11781183 int screenNum , const char * driverName ,
You can’t perform that action at this time.
0 commit comments