PROJECT(${name} CXX)
SET(PKG_NAME ${name})
-SET(name "dali-adaptor")
+SET(name "dali2-adaptor")
SET(GCC_COMPILER_VERSION_REQUIRED "6")
IF(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
GET_FILENAME_COMPONENT(ROOT_SRC_DIR ${ROOT_SRC_DIR} ABSOLUTE)
# API VERSION (Not DALi release version)
-SET(${name}_VERSION_MAJOR 0)
+SET(${name}_VERSION_MAJOR 2)
SET(${name}_VERSION_MINOR 0)
SET(${name}_VERSION_PATCH 0)
SET(${name}_VERSION ${${name}_VERSION_MAJOR}.${${name}_VERSION_MINOR}.${${name}_VERSION_PATCH})
IF( WIN32 ) # WIN32 includes x64 as well according to the cmake doc.
FIND_PACKAGE( dali-windows-dependencies REQUIRED)
- FIND_PACKAGE( dali-core REQUIRED)
+ FIND_PACKAGE( dali2-core REQUIRED)
ENDIF()
SET( VCPKG_INCLUDE_DIR "${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/include")
# Requires the following variables to be setup:
# @PREFIX@ @EXEC_PREFIX@ @DALI_ADAPTOR_VERSION@ @LIB_DIR@ @DEV_INCLUDE_PATH@
SET( DEV_INCLUDE_PATH ${INCLUDE_DIR} )
- SET( ADAPTOR_PKG_CFG_FILE ${CMAKE_CURRENT_SOURCE_DIR}/dali-adaptor.pc )
- SET( ADAPTOR_INTEGRATION_PKG_CFG_FILE ${CMAKE_CURRENT_SOURCE_DIR}/dali-adaptor-integration.pc )
+ SET( ADAPTOR_PKG_CFG_FILE ${CMAKE_CURRENT_SOURCE_DIR}/dali2-adaptor.pc )
+ SET( ADAPTOR_INTEGRATION_PKG_CFG_FILE ${CMAKE_CURRENT_SOURCE_DIR}/dali2-adaptor-integration.pc )
CONFIGURE_FILE( ${ADAPTOR_PKG_CFG_FILE}.in ${ADAPTOR_PKG_CFG_FILE} @ONLY )
CONFIGURE_FILE( ${ADAPTOR_INTEGRATION_PKG_CFG_FILE}.in ${ADAPTOR_INTEGRATION_PKG_CFG_FILE} @ONLY )
ENDIF()
%global __provides_exclude_from ^.*\\.(wearable|mobile|tv|ivi|common)$
%endif
-Name: dali-adaptor
+Name: dali2-adaptor
Summary: The DALi Tizen Adaptor
Version: 1.9.9
Release: 1
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
Requires: giflib
-Provides: libdali-adaptor-cxx11.so
-Provides: libdali-adaptor-cxx11.so.0
-Provides: libdali-adaptor-cxx11.so.0.0.0
-Provides: libdali-adaptor.so
-Provides: libdali-adaptor.so.0
-Provides: libdali-adaptor.so.0.0.0
%define tizen_platform_config_supported 1
BuildRequires: pkgconfig(libtzplatform-config)
BuildRequires: pkgconfig(glesv2)
BuildRequires: pkgconfig(ttrace)
-BuildRequires: dali-devel
-BuildRequires: dali-integration-devel
+BuildRequires: dali2-devel
+BuildRequires: dali2-integration-devel
BuildRequires: pkgconfig
BuildRequires: gawk
BuildRequires: wayland-devel
BuildRequires: wayland-extension-client-devel
-# dali-adaptor uses ecore mainloop
+# We use ecore mainloop
%if 0%{?tizen_version_major} >= 5
BuildRequires: pkgconfig(ecore-wl2)
BuildRequires: pkgconfig(wayland-egl-tizen)
BuildRequires: pkgconfig(ecore-wayland)
%endif
-# dali-adaptor needs tbm_surface in tizen 3.0 wayland
+# We need tbm_surface in tizen 3.0 wayland
BuildRequires: pkgconfig(libtbm)
-# for dali-adaptor
+# for the adaptor
BuildRequires: pkgconfig(appcore-ui)
BuildRequires: pkgconfig(appcore-widget-base)
BuildRequires: pkgconfig(bundle)
##############################
# Dali Feedback Plugin
##############################
-%package dali-feedback-plugin
+%package dali2-feedback-plugin
Summary: Plugin to play haptic and audio feedback for Dali
Group: System/Libraries
Requires: %{name} = %{version}-%{release}
-%description dali-feedback-plugin
+%description dali2-feedback-plugin
Feedback plugin to play haptic and audio feedback for Dali
##############################
%make_install
%if "%{?profile}" != "mobile"
pushd %{buildroot}%{_libdir}
-cp libdali-adaptor.so.*.*.* libdali-adaptor.so.mobile # If we're only building this profile, then there's no need to copy the lib
+cp libdali2-adaptor.so.*.*.* libdali2-adaptor.so.mobile # If we're only building this profile, then there's no need to copy the lib
popd
make clean # So that we can gather symbol/size information for only one profile if we're building all profiles
%endif
%make_install
%if "%{?profile}" != "tv"
pushd %{buildroot}%{_libdir}
-cp libdali-adaptor.so.*.*.* libdali-adaptor.so.tv # If we're only building this profile, then there's no need to copy the lib
+cp libdali2-adaptor.so.*.*.* libdali2-adaptor.so.tv # If we're only building this profile, then there's no need to copy the lib
popd
make clean # So that we can gather symbol/size information for only one profile if we're building all profiles
%endif
%make_install
%if "%{?profile}" != "wearable"
pushd %{buildroot}%{_libdir}
-cp libdali-adaptor.so.*.*.* libdali-adaptor.so.wearable # If we're only building this profile, then there's no need to copy the lib
+cp libdali2-adaptor.so.*.*.* libdali2-adaptor.so.wearable # If we're only building this profile, then there's no need to copy the lib
popd
make clean # So that we can gather symbol/size information for only one profile if we're building all profiles
%endif
%make_install
%if "%{?profile}" != "ivi"
pushd %{buildroot}%{_libdir}
-cp libdali-adaptor.so.*.*.* libdali-adaptor.so.ivi # If we're only building this profile, then there's no need to copy the lib
+cp libdali2-adaptor.so.*.*.* libdali2-adaptor.so.ivi # If we're only building this profile, then there's no need to copy the lib
popd
make clean # So that we can gather symbol/size information for only one profile if we're building all profiles
%endif
popd
%endif
-# Create links to ensure linking with cxx11 library is preserved
-pushd %{buildroot}%{_libdir}
-ln -sf libdali-adaptor.so libdali-adaptor-cxx11.so
-ln -sf libdali-adaptor.so libdali-adaptor-cxx11.so.0
-ln -sf libdali-adaptor.so libdali-adaptor-cxx11.so.0.0.0
-popd
-
# Create a symbolic link in integration-api to preserve legacy repo build
pushd %{buildroot}%{_includedir}/dali/integration-api
ln -sf adaptor-framework adaptors
%post
pushd %{_libdir}
-for i in mobile tv wearable ivi; do [[ -f libdali-adaptor.so.$i ]] && ln -sf libdali-adaptor.so.$i libdali-adaptor.so.0.0.0; done
+for i in mobile tv wearable ivi; do [[ -f libdali2-adaptor.so.$i ]] && ln -sf libdali2-adaptor.so.$i libdali2-adaptor.so.2.0.0; done
popd
/sbin/ldconfig
exit 0
%post profile_mobile
%if "%{?profile}" != "mobile"
pushd %{_libdir}
-ln -sf libdali-adaptor.so.mobile libdali-adaptor.so.0.0.0
+ln -sf libdali2-adaptor.so.mobile libdali2-adaptor.so.2.0.0
popd
%endif
/sbin/ldconfig
%post profile_tv
%if "%{?profile}" != "tv"
pushd %{_libdir}
-ln -sf libdali-adaptor.so.tv libdali-adaptor.so.0.0.0
+ln -sf libdali2-adaptor.so.tv libdali2-adaptor.so.2.0.0
popd
%endif
/sbin/ldconfig
%post profile_wearable
%if "%{?profile}" != "wearable"
pushd %{_libdir}
-ln -sf libdali-adaptor.so.wearable libdali-adaptor.so.0.0.0
+ln -sf libdali2-adaptor.so.wearable libdali2-adaptor.so.2.0.0
popd
%endif
/sbin/ldconfig
%post profile_ivi
%if "%{?profile}" != "ivi"
pushd %{_libdir}
-ln -sf libdali-adaptor.so.ivi libdali-adaptor.so.0.0.0
+ln -sf libdali2-adaptor.so.ivi libdali2-adaptor.so.0.0.0
popd
%endif
/sbin/ldconfig
%{_bindir}/*
%license LICENSE
%defattr(-,root,root,-)
-%{_libdir}/libdali-adaptor-cxx11.so
-%{_libdir}/libdali-adaptor-cxx11.so.0
-%{_libdir}/libdali-adaptor-cxx11.so.0.0.0
-%{_libdir}/libdali-adaptor.so
-%{_libdir}/libdali-adaptor.so.0
-%{_libdir}/libdali-adaptor.so.0.0.0
+%{_libdir}/libdali2-adaptor.so
+%{_libdir}/libdali2-adaptor.so.2
+%{_libdir}/libdali2-adaptor.so.2.0.0
#################################################
-%files dali-feedback-plugin
+%files dali2-feedback-plugin
%manifest dali-adaptor.manifest
%defattr(-,root,root,-)
-%{_libdir}/libdali-feedback-plugin-cxx11.so*
+%{_libdir}/libdali2-feedback-plugin.so*
%{dali_plugin_sound_files}/*
#################################################
%manifest dali-adaptor.manifest
%defattr(-,root,root,-)
%if "%{?profile}" != "mobile"
-%{_libdir}/libdali-adaptor.so.mobile
+%{_libdir}/libdali2-adaptor.so.mobile
%endif
%endif
%manifest dali-adaptor.manifest
%defattr(-,root,root,-)
%if "%{?profile}" != "tv"
-%{_libdir}/libdali-adaptor.so.tv
+%{_libdir}/libdali2-adaptor.so.tv
%endif
%endif
%manifest dali-adaptor.manifest
%defattr(-,root,root,-)
%if "%{?profile}" != "wearable"
-%{_libdir}/libdali-adaptor.so.wearable
+%{_libdir}/libdali2-adaptor.so.wearable
%endif
%endif
%manifest dali-adaptor.manifest
%defattr(-,root,root,-)
%if "%{?profile}" != "ivi"
-%{_libdir}/libdali-adaptor.so.ivi
+%{_libdir}/libdali2-adaptor.so.ivi
%endif
%endif
%{_includedir}/dali/public-api/*
%{_includedir}/dali/devel-api/*
%{_includedir}/dali/doc/*
-%{_libdir}/pkgconfig/dali-adaptor.pc
+%{_libdir}/pkgconfig/dali2-adaptor.pc
%files integration-devel
%defattr(-,root,root,-)
%{_includedir}/dali/integration-api/adaptor-framework/*
%{_includedir}/dali/integration-api/adaptors
-%{_libdir}/pkgconfig/dali-adaptor-integration.pc
+%{_libdir}/pkgconfig/dali2-adaptor-integration.pc