#include <bundle.h>
#include <Ecore.h>
+#ifdef OVER_TIZEN_SDK_2_2
+#include <system_info.h>
+#endif
+
#include <dali/integration-api/debug.h>
// INTERNAL INCLUDES
mAbortHandler( MakeCallback( this, &Framework::AbortCallback ) ),
mImpl(NULL)
{
+
+#ifdef OVER_TIZEN_SDK_2_2
+ bool featureFlag = true;
+ system_info_get_platform_bool( "tizen.org/feature/opengles.version.2_0", &featureFlag );
+
+ if( featureFlag == false )
+ {
+ set_last_result( TIZEN_ERROR_NOT_SUPPORTED );
+ throw Dali::DaliException( "", "OpenGL ES 2.0 is not supported." );
+ }
+#endif
+
InitThreads();
mImpl = new Impl(this);
}
utc-Dali-Key.cpp
utc-Dali-SingletonService.cpp
utc-Dali-Timer.cpp
+ utc-Dali-Application.cpp
)
LIST(APPEND TC_SOURCES
--- /dev/null
+/*
+ * Copyright (c) 2014 Samsung Electronics Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+#include <dali/dali.h>
+#include <dali-test-suite-utils.h>
+
+using namespace Dali;
+
+void utc_dali_application_startup(void)
+{
+ test_return_value = TET_UNDEF;
+}
+
+void utc_dali_application_cleanup(void)
+{
+ test_return_value = TET_PASS;
+}
+
+namespace
+{
+
+struct MyTestApp : public ConnectionTracker
+{
+ MyTestApp( Application& app)
+ : initCalled( false ),
+ application( app )
+ {
+ application.InitSignal().Connect( this, &MyTestApp::Create );
+ }
+
+ void Create(Application& app)
+ {
+ initCalled = true;
+ }
+
+ void Quit()
+ {
+ application.Quit();
+ }
+
+ // Data
+ bool initCalled;
+ Application& application;
+};
+
+} // unnamed namespace
+int UtcDaliApplicationNew(void)
+{
+ Application application = Application::New();
+
+ MyTestApp testApp( application );
+
+ DALI_TEST_CHECK( application );
+
+ END_TEST;
+}
$(FONTCONFIG_CFLAGS) \
$(PNG_CFLAGS) \
$(CAPI_APPFW_APPLICATION_CFLAGS) \
+ $(CAPI_SYSTEM_INFO_CFLAGS) \
$(ELEMENTARY_CFLAGS) \
$(EVAS_CFLAGS) \
$(ECORE_CFLAGS) \
$(LIBCURL_LIBS) \
$(CAPI_SYSTEM_SYSTEM_SETTINGS_LIBS) \
$(CAPI_APPFW_APPLICATION_LIBS) \
+ $(CAPI_SYSTEM_INFO_LIBS) \
-lgif \
-lboost_thread
AM_CONDITIONAL(TURBO_JPEG_IS_ON, test $with_jpeg_turbo = yes)
+AC_ARG_WITH([over-tizen_2_2],
+ [AC_HELP_STRING([--with-over-tizen_2_2],
+ [Use tizen API over ver. 2.2])],
+ [with_over_tizen_2_2=yes],
+ [with_over_tizen_2_2=no])
+
# Tizen Profile options
AC_ARG_ENABLE([profile],
[AC_HELP_STRING([--enable-profile=COMMON,MOBILE,WEARABLE,TV,UBUNTU],
PKG_CHECK_MODULES(TTS, tts)
PKG_CHECK_MODULES(VCONF, vconf)
PKG_CHECK_MODULES(CAPI_SYSTEM_SYSTEM_SETTINGS, capi-system-system-settings)
+
+if test "x$with_over_tizen_2_2" = "xyes"; then
+PKG_CHECK_MODULES(CAPI_SYSTEM_INFO, capi-system-info)
fi
+fi # ubuntu profile test
+
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],
Font Path (Downloaded): $fontDownloadedPath
Font Path (Application): $fontApplicationPath
Font Configuration File: $fontConfigurationFilePath
+ OVERTIZEN2.2: $with_over_tizen_2_2
"
%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
%define over_tizen_2_2 1
%if 0%{?over_tizen_2_2}
BuildRequires: pkgconfig(efl-assist)
BuildRequires: libcurl-devel
+%if 0%{?over_tizen_2_2}
+BuildRequires: pkgconfig(capi-system-info)
+%endif
+
%if 0%{?dali_assimp_plugin}
BuildRequires: pkgconfig(assimp)
%endif
%endif
%if 0%{?dali_assimp_plugin}
--enable-assimp \
+%endif
+%if 0%{?over_tizen_2_2}
+ --with-over-tizen_2_2 \
%endif
--libdir=%{_libdir}
BuildRequires: pkgconfig(egl)
BuildRequires: libcurl-devel
+
+%if 0%{?over_tizen_2_2}
+BuildRequires: pkgconfig(capi-system-info)
+%endif
+
%if %{with wayland}
BuildRequires: pkgconfig(ecore-wayland)
BuildRequires: pkgconfig(wayland-egl)
%endif
%if 0%{?dali_assimp_plugin}
--enable-assimp \
+%endif
+%if 0%{?over_tizen_2_2}
+ --with-over-tizen_2_2 \
%endif
$configure_flags --libdir=%{_libdir}