%endif
# Default to GLES 2.0 if not specified.
-%{!?target_gles_version: %define target_gles_version 20}
+%define target_gles_version 20
# Set up the build via configure.
#######################################################################
# This is for backward-compatibility. This does not deteriorate 4.0 Configurability
# if mobile || "undefined"
%if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
+
%configure --prefix=$PREFIX --with-jpeg-turbo --enable-gles=%{target_gles_version} \
--enable-shaderbincache=DISABLE --enable-profile=MOBILE \
--enable-tizen-major-version=%{tizen_version_major} \
for FILE in libdali-adap*.so*; do mv "$FILE" "%{_builddir}/%{name}-%{version}/build/tizen/$FILE.mobile"; done
popd
+make clean
+
%endif
#######################################################################
# This is for backward-compatibility. This does not deteriorate 4.0 Configurability
# if tv ||"undefined"
%if "%{?profile}" != "wearable" && "%{?profile}" != "common" && "%{?profile}" != "ivi" && "%{?profile}" != "mobile"
+
%configure --prefix=$PREFIX --with-jpeg-turbo --enable-gles=%{target_gles_version} \
--enable-shaderbincache=DISABLE --enable-profile=TV \
--enable-tizen-major-version=%{tizen_version_major} \
for FILE in libdali-adap*.so*; do mv "$FILE" "%{_builddir}/%{name}-%{version}/build/tizen/$FILE.tv"; done
popd
+make clean
%endif
#######################################################################
# This is for backward-compatibility. This does not deteriorate 4.0 Configurability
# if wearable || "undefined"
%if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
+
%configure --prefix=$PREFIX --with-jpeg-turbo --enable-gles=%{target_gles_version} \
--enable-shaderbincache=DISABLE --enable-profile=WEARABLE \
--enable-tizen-major-version=%{tizen_version_major} \
for FILE in libdali-adap*.so*; do mv "$FILE" "%{_builddir}/%{name}-%{version}/build/tizen/$FILE.wearable"; done
popd
+make clean
%endif
#######################################################################
# This is for backward-compatibility. This does not deteriorate 4.0 Configurability
# if ivi ||"undefined"
%if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "common" && "%{?profile}" != "mobile"
+
%configure --prefix=$PREFIX --with-jpeg-turbo --enable-gles=%{target_gles_version} \
--enable-shaderbincache=DISABLE --enable-profile=IVI \
--enable-tizen-major-version=%{tizen_version_major} \
for FILE in libdali-adap*.so*; do mv "$FILE" "%{_builddir}/%{name}-%{version}/build/tizen/$FILE.ivi"; done
popd
+make clean
%endif
#######################################################################
# This is for backward-compatibility. This does not deteriorate 4.0 Configurability
# if common ||"undefined"
%if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "mobile"
+
%configure --prefix=$PREFIX --with-jpeg-turbo --enable-gles=%{target_gles_version} \
--enable-shaderbincache=DISABLE --enable-profile=COMMON \
--enable-tizen-major-version=%{tizen_version_major} \
# Build.
make %{?jobs:-j%jobs}
+
%endif