vaapi=""
qt="no"
qtabi="5.0"
+extension_path=""
#
glusterfs=""
glusterfs_discard="no"
;;
--enable-qt) qt="yes"
;;
+ --extension-path=*) extension_path="$optarg"
+ ;;
#
--disable-glusterfs) glusterfs="no"
;;
--disable-dxva2 disable dxva2 support
--ensable-vaapi enable vaapi support
--disable-vaapi disable vaapi support
+ --extension-path=PATH set extension path
NOTE: The object files are built at the place where configure is launched
EOF
fi
fi
+########################################
+# check extension path
+
+if [ ! -d "$source_path/tizen/src/$extension_path" ] ; then
+ error_exit "Extension path is not valid $source_path/tizen/src/$extension_path"
+fi
+
##########################################
# libav probe
echo "TIZEN-maru libpng support $libpng"
echo "TIZEN-maru DXVA2 support $dxva2"
echo "TIZEN-maru vaapi support $vaapi"
+echo "TIZEN-maru extension path $extension_path"
#
if test "$sdl_too_old" = "yes"; then
echo "CONFIG_VAAPI=y" >> $config_host_mak
echo "LIBVA_CFLAGS=$libva_cflags $libva_x11_cflags" >> $config_host_mak
fi
+if [ ! -z "$extension_path" ] ; then
+ echo "CONFIG_EXTENSION_PATH=$extension_path" >> $config_host_mak
+fi
# TPM passthrough support?
if test "$tpm" = "yes"; then
obj-$(CONFIG_DARWIN) += ns_event.o
obj-$(CONFIG_DARWIN) += emul_state_darwin.o
+ifdef CONFIG_EXTENSION_PATH
+obj-y += $(CONFIG_EXTENSION_PATH)/
+endif
+
$(obj)/emulator.o $(obj)/emulator_legacy.o: QEMU_CFLAGS += $(SDL_CFLAGS)