SUBDIRS = adaptor
-if ! LITE_PROFILE
-if ! WEARABLE_PROFILE
-if ! UBUNTU_PROFILE
+if USE_PLUGIN
SUBDIRS += plugins
endif
-endif
-endif
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = dali.pc
endif
# Feedback Plugin
-if ! LITE_PROFILE
-if ! WEARABLE_PROFILE
+if USE_FEEDBACK
plugin_themes_dir = ../../../adaptors/common/feedback
dali_plugin_theme_files = $(plugin_themes_dir)/default-feedback-theme.json
dalifeedbackthemedir = ${dataReadOnlyDir}/themes/feedback-themes/
dalifeedbacktheme_DATA = ${dali_plugin_theme_files}
endif
-endif
if TURBO_JPEG_IS_ON
slp_platform_abstraction_src_files += $(slp_turbo_jpeg_loader)
endif
if WEARABLE_PROFILE
-libdali_adaptor_la_CXXFLAGS += $(HAPTIC_CFLAGS)
+libdali_adaptor_la_CXXFLAGS += \
+ $(HAPTIC_CFLAGS) \
+ $(EFL_ASSIST_CFLAGS)
endif
if TV_PROFILE
AC_SUBST(BULLET_CFLAGS)
AC_SUBST(BULLET_LIBS)
-AM_CONDITIONAL([USE_BULLET], [test x$BULLET = xyes])
+
+AC_ARG_ENABLE([bullet],
+ [AC_HELP_STRING([ --enable-bullet],
+ [Enable bullet plugin])],
+ [enable_bullet=yes],
+ [enable_bullet=no])
+
+
+AC_ARG_ENABLE([feedback],
+ [AC_HELP_STRING([ --enable-feedback],
+ [Enable feedback plugin])],
+ [enable_feedback=yes],
+ [enable_feedback=no])
+
+AM_CONDITIONAL([USE_BULLET], [test x$BULLET = xyes && test x$enable_bullet = xyes])
+AM_CONDITIONAL([USE_FEEDBACK], [test x$enable_feedback = xyes])
DALI_ADAPTOR_CFLAGS=-DPLATFORM_SLP
if test "x$enable_profile" = "xCOMMON"; then
PKG_CHECK_MODULES(OPENGLES20, glesv2 egl)
-PKG_CHECK_MODULES(HAPTIC, haptic)
fi
if test "x$enable_profile" = "xMOBILE"; then
PKG_CHECK_MODULES(OPENGLES20, opengl-es-20)
-PKG_CHECK_MODULES(DEVICED, deviced)
-enable_assimp=yes
fi
if test "x$enable_profile" = "xLITE"; then
if test "x$enable_profile" = "xTV"; then
PKG_CHECK_MODULES(OPENGLES20, gles20)
-PKG_CHECK_MODULES(HAPTIC, haptic)
fi
if test "x$enable_profile" = "xUBUNTU"; then
else
PKG_CHECK_MODULES(CAPI_APPFW_APPLICATION, capi-appfw-application)
PKG_CHECK_MODULES(DLOG, dlog)
-PKG_CHECK_MODULES(FEEDBACK, feedback)
-PKG_CHECK_MODULES(MMFSOUND, mm-sound)
PKG_CHECK_MODULES(SENSOR, sensor)
PKG_CHECK_MODULES(TTS, tts)
PKG_CHECK_MODULES(VCONF, vconf)
PKG_CHECK_MODULES(CAPI_SYSTEM_SYSTEM_SETTINGS, capi-system-system-settings)
+fi
if test "x$enable_profile" != "xTV"; then
PKG_CHECK_MODULES(EFL_ASSIST, efl-assist)
fi
-fi
-
if test "x$enable_wayland" = "xyes"; then
PKG_CHECK_MODULES(WAYLAND, [ecore-wayland egl wayland-egl wayland-client >= 1.2.0 xkbcommon],
[DALI_HAS_ECOREWL=yes],
[DALI_HAS_X11=no])
fi
+if test "x$enable_feedback" = "xyes"; then
+
+if test "x$enable_profile" = "xCOMMON" || test "x$enable_profile" = "xTV"; then
+PKG_CHECK_MODULES(HAPTIC, haptic)
+fi
+
+if test "x$enable_profile" = "xMOBILE"; then
+PKG_CHECK_MODULES(DEVICED, deviced)
+fi
+
+PKG_CHECK_MODULES(FEEDBACK, feedback)
+PKG_CHECK_MODULES(MMFSOUND, mm-sound)
+fi
+
if test "x$enable_assimp" = "xyes" ; then
PKG_CHECK_MODULES(ASSIMP, assimp)
ASSIMP_CFLAGS+=-DASSIMP_ENABLED
# Don't move this - it depends on the platform defaults above
AM_CONDITIONAL([ASSIMP_ENABLED], [test x$enable_assimp = xyes])
-
if test x$DALI_DATA_RW_DIR != x; then
dataReadWriteDir=$DALI_DATA_RW_DIR
else
dali.pc
])
-if test "x$enable_profile" != "xLITE"; then
+AM_CONDITIONAL([USE_PLUGIN], [test x$enable_feedback = xyes || test x$enable_bullet = xyes])
+
+if test "x$enable_feedback" = "xyes" || test "x$enable_bullet" = "xyes"; then
AC_CONFIG_FILES([
plugins/Makefile
])
plugin_sounds_dir = ../../../plugins/sounds
-lib_LTLIBRARIES = libdali-feedback-plugin.la
+lib_LTLIBRARIES =
+
+if USE_FEEDBACK
+lib_LTLIBRARIES += libdali-feedback-plugin.la
+endif
if USE_BULLET
lib_LTLIBRARIES += libdali-bullet-plugin.la
endif
+if USE_FEEDBACK
dalisounddir = ${dataReadOnlyDir}/plugins/sounds/
dalisound_DATA = ${dali_plugin_sound_files}
libdali_feedback_plugin_la_LIBADD += \
$(FEEDBACK_LIBS)
+endif
+
+if USE_BULLET
# Bullet Physics
libdali_bullet_plugin_la_SOURCES = \
-rdynamic
libdali_bullet_plugin_la_DEPENDENCIES =
+endif
%define dali_profile MOBILE
%define dali_mobile_profile 1
-%define dali_feedback_plugin 1
-%define dali_bullet_plugin 1
-%define dali_assimp_plugin 1
+%define dali_feedback_plugin 0
+%define dali_bullet_plugin 0
+%define dali_assimp_plugin 0
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
BuildRequires: pkgconfig(libpng)
BuildRequires: pkgconfig(opengl-es-20)
BuildRequires: pkgconfig(efl-assist)
+
+%if 0%{?dali_assimp_plugin}
BuildRequires: pkgconfig(assimp)
+%endif
%description
The DALi Tizen Adaptor provides a Tizen specific implementation of the dali-core
%package dali-feedback-plugin
Summary: Plugin to play haptic and audio feedback for Dali
Group: System/Libraries
+%if 0%{?dali_feedback_plugin}
Requires: libdeviced
BuildRequires: pkgconfig(mm-sound)
BuildRequires: pkgconfig(deviced)
BuildRequires: libfeedback-devel
+%endif
%description dali-feedback-plugin
Feedback plugin to play haptic and audio feedback for Dali
%package dali-bullet-plugin
Summary: Plugin to provide physics
Group: System/Libraries
+%if 0%{?dali_bullet_plugin}
BuildRequires: libbullet-devel
+%endif
%description dali-bullet-plugin
Dynamics plugin to wrap the libBulletDynamics libraries
FONT_APPLICATION_PATH="%{font_application_path}" ; export FONT_APPLICATION_PATH
FONT_CONFIGURATION_FILE="%{font_configuration_file}" ; export FONT_CONFIGURATION_FILE
-%configure --with-jpeg-turbo --enable-gles=20 --enable-profile=%{dali_profile} --libdir=%{_libdir}
+%configure --with-jpeg-turbo --enable-gles=20 --enable-profile=%{dali_profile} \
+%if 0%{?dali_feedback_plugin}
+ --enable-feedback \
+%endif
+%if 0%{?dali_bullet_plugin}
+ --enable-bullet \
+%endif
+%if 0%{?dali_assimp_plugin}
+ --enable-assimp \
+%endif
+ --libdir=%{_libdir}
make %{?jobs:-j%jobs}
URL: https://review.tizen.org/git/?p=platform/core/uifw/dali-adaptor.git;a=summary
Source0: %{name}-%{version}.tar.gz
+%define dali_feedback_plugin 0
+%define dali_bullet_plugin 0
+%define dali_assimp_plugin 0
+
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
Requires: boost-thread
BuildRequires: pkgconfig(utilX)
BuildRequires: pkgconfig(gles20)
+%if 0%{?dali_assimp_plugin}
+BuildRequires: pkgconfig(assimp)
+%endif
+
%description
The DALi Tizen Adaptor provides a Tizen specific implementation of the dali-core
platform abstraction and application shell
%package dali-feedback-plugin
Summary: Plugin to play haptic and audio feedback for Dali
Group: System/Libraries
+%if 0%{?dali_feedback_plugin}
#Requires: libdeviced
BuildRequires: pkgconfig(mm-sound)
BuildRequires: pkgconfig(haptic)
BuildRequires: libfeedback-devel
+%endif
%description dali-feedback-plugin
Feedback plugin to play haptic and audio feedback for Dali
%package dali-bullet-plugin
Summary: Plugin to provide physics
Group: System/Libraries
+%if 0%{?dali_bullet_plugin}
BuildRequires: pkgconfig(bullet)
+%endif
%description dali-bullet-plugin
Dynamics plugin to wrap the libBulletDynamics libraries
FONT_APPLICATION_PATH="%{font_application_path}" ; export FONT_APPLICATION_PATH
FONT_CONFIGURATION_FILE="%{font_configuration_file}" ; export FONT_CONFIGURATION_FILE
-%configure --with-jpeg-turbo --enable-gles=20 --enable-profile=TV --libdir=%{_libdir}
+%configure --with-jpeg-turbo --enable-gles=20 --enable-profile=TV \
+%if 0%{?dali_feedback_plugin}
+ --enable-feedback \
+%endif
+%if 0%{?dali_bullet_plugin}
+ --enable-bullet \
+%endif
+%if 0%{?dali_assimp_plugin}
+ --enable-assimp \
+%endif
+ --libdir=%{_libdir}
make %{?jobs:-j%jobs}
chown 5000:5000 %{user_shader_cache_dir}
exit 0
+%if 0%{?dali_feedback_plugin}
%post dali-feedback-plugin
/sbin/ldconfig
exit 0
+%endif
+%if 0%{?dali_bullet_plugin}
%post dali-bullet-plugin
/sbin/ldconfig
exit 0
+%endif
##############################
# Pre Uninstall old package
/sbin/ldconfig
exit 0
+%if 0%{?dali_feedback_plugin}
%postun dali-feedback-plugin
/sbin/ldconfig
exit 0
+%endif
+%if 0%{?dali_bullet_plugin}
%postun dali-bullet-plugin
/sbin/ldconfig
exit 0
+%endif
##############################
%{dev_include_path}/dali/*
%{_libdir}/pkgconfig/dali*.pc
+%if 0%{?dali_feedback_plugin}
%files dali-feedback-plugin
%defattr(-,root,root,-)
%{_libdir}/libdali-feedback-plugin.so*
%{dali_plugin_sound_files}/*
%{dali_plugin_theme_files}/*
+%endif
+%if 0%{?dali_bullet_plugin}
%files dali-bullet-plugin
%defattr(-,root,root,-)
%{_libdir}/libdali-bullet-plugin.so*
+%endif
%define dali_profile WEARABLE
%define dali_wearable_profile 1
+%define dali_feedback_plugin 0
+%define dali_assimp_plugin 0
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
BuildRequires: pkgconfig(gles20)
BuildRequires: pkgconfig(efl-assist)
+%if 0%{?dali_assimp_plugin}
+BuildRequires: pkgconfig(assimp)
+%endif
+
%description
The DALi Tizen Adaptor provides a Tizen specific implementation of the dali-core
platform abstraction and application shell
%package dali-feedback-plugin
Summary: Plugin to play haptic and audio feedback for Dali
Group: System/Libraries
+%if 0%{?dali_feedback_plugin}
Requires: libdeviced
BuildRequires: pkgconfig(mm-sound)
BuildRequires: pkgconfig(deviced)
BuildRequires: libfeedback-devel
+%endif
%description dali-feedback-plugin
Feedback plugin to play haptic and audio feedback for Dali
FONT_APPLICATION_PATH="%{font_application_path}" ; export FONT_APPLICATION_PATH
FONT_CONFIGURATION_FILE="%{font_configuration_file}" ; export FONT_CONFIGURATION_FILE
-%configure --with-jpeg-turbo --enable-gles=20 --enable-profile=%{dali_profile} --libdir=%{_libdir}
+%configure --with-jpeg-turbo --enable-gles=20 --enable-profile=%{dali_profile} \
+%if 0%{?dali_feedback_plugin}
+ --enable-feedback \
+%endif
+%if 0%{?dali_assimp_plugin}
+ --enable-assimp \
+%endif
+ --libdir=%{_libdir}
make %{?jobs:-j%jobs}
URL: https://review.tizen.org/git/?p=platform/core/uifw/dali-adaptor.git;a=summary
Source0: %{name}-%{version}.tar.gz
+%define dali_feedback_plugin 0
+%define dali_bullet_plugin 0
+%define dali_assimp_plugin 0
+
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
Requires: boost-thread
BuildRequires: pkgconfig(gles20)
%endif
+%if 0%{?dali_assimp_plugin}
+BuildRequires: pkgconfig(assimp)
+%endif
+
%description
The DALi Tizen Adaptor provides a Tizen specific implementation of the dali-core
platform abstraction and application shell
%package dali-feedback-plugin
Summary: Plugin to play haptic and audio feedback for Dali
Group: System/Libraries
+%if 0%{?dali_feedback_plugin}
#Requires: libdeviced
BuildRequires: pkgconfig(mm-sound)
BuildRequires: pkgconfig(haptic)
BuildRequires: libfeedback-devel
+%endif
%description dali-feedback-plugin
Feedback plugin to play haptic and audio feedback for Dali
%package dali-bullet-plugin
Summary: Plugin to provide physics
Group: System/Libraries
+%if 0%{?dali_bullet_plugin}
BuildRequires: pkgconfig(bullet)
+%endif
%description dali-bullet-plugin
Dynamics plugin to wrap the libBulletDynamics libraries
libtoolize --force
cd %{_builddir}/%{name}-%{version}/build/tizen && autoreconf --install
-cd %{_builddir}/%{name}-%{version}/build/tizen && CXXFLAGS=$CXXFLAGS LDFLAGS=$LDFLAGS DALI_DATA_RW_DIR="%{dali_data_rw_dir}" DALI_DATA_RO_DIR="%{dali_data_ro_dir}" FONT_PRELOADED_PATH="%{font_preloaded_path}" FONT_DOWNLOADED_PATH="%{font_downloaded_path}" FONT_APPLICATION_PATH="%{font_application_path}" FONT_CONFIGURATION_FILE="%{font_configuration_file}" %configure --prefix=$PREFIX --with-jpeg-turbo --enable-gles=20 --enable-profile=COMMON $configure_flags --libdir=%{_libdir}
+cd %{_builddir}/%{name}-%{version}/build/tizen && CXXFLAGS=$CXXFLAGS LDFLAGS=$LDFLAGS DALI_DATA_RW_DIR="%{dali_data_rw_dir}" DALI_DATA_RO_DIR="%{dali_data_ro_dir}" FONT_PRELOADED_PATH="%{font_preloaded_path}" FONT_DOWNLOADED_PATH="%{font_downloaded_path}" FONT_APPLICATION_PATH="%{font_application_path}" FONT_CONFIGURATION_FILE="%{font_configuration_file}"
+
+%configure --prefix=$PREFIX --with-jpeg-turbo --enable-gles=20 --enable-profile=COMMON \
+%if 0%{?dali_feedback_plugin}
+ --enable-feedback \
+%endif
+%if 0%{?dali_bullet_plugin}
+ --enable-bullet \
+%endif
+%if 0%{?dali_assimp_plugin}
+ --enable-assimp \
+%endif
+ $configure_flags --libdir=%{_libdir}
make %{?jobs:-j%jobs}
chown 5000:5000 %{user_shader_cache_dir}
exit 0
+%if 0%{?dali_feedback_plugin}
%post dali-feedback-plugin
/sbin/ldconfig
exit 0
+%endif
+%if 0%{?dali_bullet_plugin}
%post dali-bullet-plugin
/sbin/ldconfig
exit 0
+%endif
##############################
# Pre Uninstall old package
/sbin/ldconfig
exit 0
+%if 0%{?dali_feedback_plugin}
%postun dali-feedback-plugin
/sbin/ldconfig
exit 0
+%endif
+%if 0%{?dali_bullet_plugin}
%postun dali-bullet-plugin
/sbin/ldconfig
exit 0
-
+%endif
##############################
# Files in Binary Packages
%{dev_include_path}/dali/*
%{_libdir}/pkgconfig/dali*.pc
+%if 0%{?dali_feedback_plugin}
%files dali-feedback-plugin
%defattr(-,root,root,-)
%{_libdir}/libdali-feedback-plugin.so*
%{dali_plugin_sound_files}/*
%{dali_plugin_theme_files}/*
+%endif
+%if 0%{?dali_bullet_plugin}
%files dali-bullet-plugin
%defattr(-,root,root,-)
%{_libdir}/libdali-bullet-plugin.so*
+%endif