+++ /dev/null
-CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
-PROJECT(timer)
-# FIND ALL SOURCE IN A SOURCE DIRECTORY
-AUX_SOURCE_DIRECTORY(${CMAKE_SOURCE_DIR}/src SRCS)
-
-#INCLUDE FILE
-INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/inc)
-SET(PACKAGE "${PROJECT_NAME}")
-SET(RESOURCE_DIR "${CMAKE_SOURCE_DIR}/res")
-SET(EDJDIR "${RESOURCE_DIR}/edje/${PACKAGE}")
-SET(ICONDIR "/usr/share/icons/")
-
-INCLUDE(FindPkgConfig)
-pkg_check_modules(pkgs REQUIRED
- appcore-efl
- evas
- edje
- elementary
- ecore
- eina
- efl-extension
- capi-appfw-application
- capi-system-info
- capi-system-system-settings
- capi-appfw-package-manager
- capi-appfw-app-manager
- dlog
- pkgmgr-info
- rua
- feedback
-)
-
-SET(PREFIX ${CMAKE_INSTALL_PREFIX})
-SET(RESDIR "${PREFIX}/res")
-SET(EDJEDIR "${RESDIR}/edje")
-SET(LOCALEDIR "${RESDIR}/locale")
-
-FOREACH(flag ${pkgs_CFLAGS})
- SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
-ENDFOREACH(flag)
-
-SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -fPIE")
-SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${EXTRA_CFLAGS} -fPIE")
-
-SET(CMAKE_C_FLAGS_PROFILING "-O0 -g -pg -fPIE")
-SET(CMAKE_CXX_FLAGS_PROFILING "-O0 -std=c++0x -g -pg -fPIE")
-SET(CMAKE_C_FLAGS_DEBUG "-O0 -g -fPIE")
-SET(CMAKE_CXX_FLAGS_DEBUG "-O0 -std=c++0x -g -fPIE")
-SET(CMAKE_C_FLAGS_RELEASE "-O2 -g -fPIE")
-SET(CMAKE_CXX_FLAGS_RELEASE "-O2 -std=c++0x -g -fPIE")
-SET(CMAKE_C_FLAGS_CCOV "-O2 -g --coverage -fPIE")
-SET(CMAKE_CXX_FLAGS_CCOV "-O2 -std=c++0x -g --coverage -fPIE")
-
-SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -pie")
-
-MESSAGE(${CMAKE_C_FLAGS})
-
-ADD_DEFINITIONS("-DEDJEDIR=\"${EDJEDIR}\"")
-ADD_DEFINITIONS("-DLOCALEDIR=\"${LOCALEDIR}\"")
-
-ADD_EXECUTABLE(${PROJECT_NAME} ${SRCS})
-
-TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${pkgs_LDFLAGS})
-
-# Install
-INSTALL(TARGETS ${PROJECT_NAME} DESTINATION bin)
-
-#Install images
-INSTALL(DIRECTORY res/edje/images/ DESTINATION res/edje/images)
-
-# install icon file
-#INSTALL(FILES ${CMAKE_BINARY_DIR}/org.tizen.timer.xml DESTINATION /usr/share/packages)
-INSTALL(FILES ${RESOURCE_DIR}/icon/org.tizen.timer.png DESTINATION ${ICONDIR})
-
-# Install Manifest File
-INSTALL(FILES data/org.tizen.timer.xml DESTINATION /usr/share/packages)
-# End of a file
-ADD_SUBDIRECTORY(res)
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<manifest xmlns="http://tizen.org/ns/packages" api-version="2.4" package="org.tizen.timer" version="1.0.0">
- <profile name="wearable"/>
- <ui-application appid="org.tizen.timer" exec="timer" multiple="false" nodisplay="false" taskmanage="true" type="capp">
- <label>Timer</label>
- <icon>org.tizen.timer.png</icon>
- </ui-application>
-</manifest>
-
+++ /dev/null
-<manifest>
- <define>
- <domain name="org.tizen.timer" />
- </define>
- <request>
- <domain name="org.tizen.timer" />
- </request>
- <assign>
- <filesystem path="/usr/apps/org.tizen.timer/bin/timer" label="org.tizen.timer" exec_label="org.tizen.timer" />
- </assign>
-</manifest>
+++ /dev/null
-%define Exec timer
-%define AppInstallPath /usr/apps/%{name}
-
-Name: org.tizen.timer
-Summary: Timer application
-Version: 0.0.1
-Release: 1
-License: Apache-2.0
-Source0: %{name}-%{version}.tar.gz
-
-%if "%{?tizen_profile_name}" == "wearable"
-ExcludeArch: %{arm} %ix86 x86_64
-%endif
-
-%if "%{?tizen_profile_name}" == "tv"
-ExcludeArch: %{arm} %ix86 x86_64
-%endif
-
-BuildRequires: pkgconfig(appcore-efl)
-BuildRequires: pkgconfig(capi-appfw-application)
-BuildRequires: pkgconfig(ecore)
-BuildRequires: pkgconfig(eina)
-BuildRequires: pkgconfig(evas)
-BuildRequires: pkgconfig(edje)
-BuildRequires: edje-tools
-BuildRequires: gettext-tools
-BuildRequires: pkgconfig(dlog)
-BuildRequires: pkgconfig(elementary)
-BuildRequires: pkgconfig(efl-extension)
-BuildRequires: pkgconfig(capi-system-info)
-BuildRequires: pkgconfig(capi-system-system-settings)
-BuildRequires: pkgconfig(capi-appfw-package-manager)
-BuildRequires: pkgconfig(capi-appfw-app-manager)
-BuildRequires: cmake
-BuildRequires: pkgconfig(pkgmgr-info)
-BuildRequires: pkgconfig(rua)
-BuildRequires: pkgconfig(feedback)
-
-%description
-Timer application.
-
-%prep
-%setup -q
-
-%build
-export CFLAGS="$CFLAGS -DTIZEN_DEBUG_ENABLE"
-export CXXFLAGS="$CXXFLAGS -DTIZEN_DEBUG_ENABLE"
-export FFLAGS="$FFLAGS -DTIZEN_DEBUG_ENABLE"
-
-cmake . -DCMAKE_INSTALL_PREFIX="%{AppInstallPath}" -DCMAKE_TARGET="%{Exec}" -DCMAKE_PACKAGE="%{name}"
-make %{?jobs:-j%jobs}
-
-%install
-rm -rf %{buildroot}
-%make_install
-
-%post
-/sbin/ldconfig
-
-%postun -p /sbin/ldconfig
-
-%files
-%manifest %{name}.manifest
-%defattr(-,root,root,-)
-%{AppInstallPath}/bin/timer
-%{AppInstallPath}/res/*
-%{_datarootdir}/packages/%{name}.xml
-/usr/share/icons/org.tizen.timer.png
+++ /dev/null
-ADD_SUBDIRECTORY(edje)
-#ADD_SUBDIRECTORY(images)
-#ADD_SUBDIRECTORY(po)