diff options
author | donghyuk.yang <donghyuk.yang@samsung.com> | 2013-09-30 20:31:08 +0900 |
---|---|---|
committer | donghyuk.yang <donghyuk.yang@samsung.com> | 2013-09-30 20:31:08 +0900 |
commit | 649874fb373310cf3411b8c26dc79ca1a9b7258f (patch) | |
tree | 29268c03ce923d04221aeb0d6d44076e7efc4ce7 | |
parent | d2ff312bf0dd86681343d8020aec7eb04dfbe36d (diff) | |
download | platform-template-649874fb373310cf3411b8c26dc79ca1a9b7258f.tar.gz platform-template-649874fb373310cf3411b8c26dc79ca1a9b7258f.tar.bz2 platform-template-649874fb373310cf3411b8c26dc79ca1a9b7258f.zip |
[Title] Added platform template
40 files changed, 1057 insertions, 0 deletions
diff --git a/Template/Tizen Platform/EFL Application/hello_efl/description.xml b/Template/Tizen Platform/EFL Application/hello_efl/description.xml new file mode 100644 index 0000000..c9cedde --- /dev/null +++ b/Template/Tizen Platform/EFL Application/hello_efl/description.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="utf-8"?> +<?xml-stylesheet type="text/xsl" href="../../../../description.xsl"?> + +<Overview version="0.0.1"> + <SampleName>Helloworld</SampleName> + <SampleVersion>1.0</SampleVersion> + <Preview>screenshot.png</Preview> + <Description> + This is the simple EFL template project that shows "Hello EFL" on the screen. + </Description> +</Overview> diff --git a/Template/Tizen Platform/EFL Application/hello_efl/project/CMakeLists.txt b/Template/Tizen Platform/EFL Application/hello_efl/project/CMakeLists.txt new file mode 100644 index 0000000..1685f36 --- /dev/null +++ b/Template/Tizen Platform/EFL Application/hello_efl/project/CMakeLists.txt @@ -0,0 +1,64 @@ +# Copyright (c) 2013 Samsung Electronics Co., Ltd All Rights Reserved +# +# 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. +# + +CMAKE_MINIMUM_REQUIRED(VERSION 2.6) +PROJECT("$(projectName)" C) + + +IF(NOT DEFINED PACKAGE_NAME) + SET(PACKAGE_NAME "org.tizen.$(projectName)") +ENDIF(NOT DEFINED PACKAGE_NAME) + +SET(PREFIX ${CMAKE_INSTALL_PREFIX}) +IF(NOT DEFINED BINDIR) + SET(BINDIR"${PREFIX}/bin") +ENDIF(NOT DEFINED BINDIR) +IF(NOT DEFINED LOCALEDIR) + SET(LOCALEDIR "${PREFIX}/res/locale") +ENDIF(NOT DEFINED LOCALEDIR) +IF(NOT DEFINED MANIFESTDIR) + SET(MANIFESTDIR "/opt/share/packages") +ENDIF(NOT DEFINED MANIFESTDIR) +IF(NOT DEFINED DESKTOP_ICONDIR) + SET(DESKTOP_ICONDIR "/opt/share/icons/default/small") +ENDIF(NOT DEFINED DESKTOP_ICONDIR) +IF(NOT DEFINED DESKTOP_ICON) + SET(DESKTOP_ICON ${PACKAGE_NAME}.png) +ENDIF(DESKTOP_ICON) + +SET(SRCS src/main.c) + +ADD_DEFINITIONS("-DPACKAGE=\"${PACKAGE_NAME}\"") + +INCLUDE(FindPkgConfig) +pkg_check_modules(PKGS REQUIRED + elementary + capi-appfw-application) + +FOREACH(flag ${PKGS_CFLAGS}) + SET(EXTRA_CFLGAS "${EXTRA_CFLGAS} ${flag}") +ENDFOREACH(flag) + +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLGAS}") +ADD_EXECUTABLE(${PROJECT_NAME} ${SRCS}) +TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${PKGS_LDFLAGS}) +CONFIGURE_FILE(${PACKAGE_NAME}.xml.in ${PACKAGE_NAME}.xml) + +INSTALL(TARGETS ${PROJECT_NAME} DESTINATION ${BINDIR}) +INSTALL(FILES ${PACKAGE_NAME}.xml DESTINATION ${MANIFESTDIR}) +INSTALL(FILES ${CMAKE_SOURCE_DIR}/${DESKTOP_ICON} DESTINATION ${DESKTOP_ICONDIR}) + +#i18n +ADD_SUBDIRECTORY(po) diff --git a/Template/Tizen Platform/EFL Application/hello_efl/project/include/dbg.h b/Template/Tizen Platform/EFL Application/hello_efl/project/include/dbg.h new file mode 100644 index 0000000..20ca3ea --- /dev/null +++ b/Template/Tizen Platform/EFL Application/hello_efl/project/include/dbg.h @@ -0,0 +1,39 @@ +/* + * Copyright (c) 2013 Samsung Electronics Co., Ltd All Rights Reserved + * + * 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. + */ + +#ifndef __DBG_H__ + +#include <dlog.h> + +#ifdef LOG_TAG +#undef LOG_TAG +#endif +#define LOG_TAG "org.tizen.$(projectName)" + +#ifndef _ERR +#define _ERR(fmt, args...) LOGE("[%s:%d] "fmt"\n", __func__, __LINE__, ##args) +#endif + +#ifndef _DBG +#define _DBG(fmt, args...) LOGD("[%s:%d] "fmt"\n", __func__, __LINE__, ##args) +#endif + +#ifndef _INFO +#define _INFO(fmt, args...) LOGI("[%s:%d] "fmt"\n", __func__, __LINE__, ##args) +#endif + + +#endif /* __DBG_H__ */ diff --git a/Template/Tizen Platform/EFL Application/hello_efl/project/org.tizen.hello-efl.png b/Template/Tizen Platform/EFL Application/hello_efl/project/org.tizen.hello-efl.png Binary files differnew file mode 100644 index 0000000..6b78a29 --- /dev/null +++ b/Template/Tizen Platform/EFL Application/hello_efl/project/org.tizen.hello-efl.png diff --git a/Template/Tizen Platform/EFL Application/hello_efl/project/org.tizen.hello-efl.xml.in b/Template/Tizen Platform/EFL Application/hello_efl/project/org.tizen.hello-efl.xml.in new file mode 100644 index 0000000..35a7a49 --- /dev/null +++ b/Template/Tizen Platform/EFL Application/hello_efl/project/org.tizen.hello-efl.xml.in @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="utf-8"?>
+<manifest xmlns="http://tizen.org/ns/packages" package="@PACKAGE_NAME@" version="@VERSION@" install-location="internal-only">
+ <label>$(projectName)</label>
+ <author email="PUT YOUR EMAIL" href="www.samsung.com">PUT YOUR NAME</author>
+ <description>$(projectName)</description>
+ <ui-application appid="@PACKAGE_NAME@" exec="@BINDIR@/@PROJECT_NAME@" nodisplay="false" multiple="false" type="capp" taskmanage="true">
+ <label>$(projectName)</label>
+ <icon>@DESKTOP_ICON@</icon>
+ </ui-application>
+</manifest>
diff --git a/Template/Tizen Platform/EFL Application/hello_efl/project/packaging/org.tizen.hello-efl.spec b/Template/Tizen Platform/EFL Application/hello_efl/project/packaging/org.tizen.hello-efl.spec new file mode 100755 index 0000000..111d0a7 --- /dev/null +++ b/Template/Tizen Platform/EFL Application/hello_efl/project/packaging/org.tizen.hello-efl.spec @@ -0,0 +1,50 @@ +Name: org.tizen.$(projectName) +Version: 0.0.1 +Release: 1 +License: To be filled +Summary: Hello EFL Application +Group: Application +Source0: %{name}-%{version}.tar.gz +BuildRequires: cmake +BuildRequires: pkgconfig(capi-appfw-application) +BuildRequires: pkgconfig(elementary) +BuildRequires: gettext-devel + +%description +$(description) + +%define _pkgdir /opt/apps/%{name} +%define _bindir %{_pkgdir}/bin +%define _resdir %{_pkgdir}/res +%define _localedir %{_resdir}/locale +%define _manifestdir /opt/share/packages +%define _desktop_icondir /opt/share/icons/default/small + +%prep +%setup -q + +%build +cmake \ + -DCMAKE_INSTALL_PREFIX=%{_pkgdir} \ + -DPACKAGE_NAME=%{name} \ + -DBINDIR=%{_bindir} \ + -DLOCALEDIR=%{_localedir} \ + -DMANIFESTDIR=%{_manifestdir} \ + -DDESKTOP_ICONDIR=%{_desktop_icondir} \ + -DDESKTOP_ICON=%{name}.png \ + -DVERSION=%{version} + +make %{?jobs:-j%jobs} + +%install +%make_install + +%clean +rm -rf %{buildroot} + +%files +%defattr(-,root,root,-) +%{_bindir}/* +%{_resdir}/* +%{_manifestdir}/%{name}.xml +%{_desktop_icondir}/%{name}.png diff --git a/Template/Tizen Platform/EFL Application/hello_efl/project/po/CMakeLists.txt b/Template/Tizen Platform/EFL Application/hello_efl/project/po/CMakeLists.txt new file mode 100644 index 0000000..cd07287 --- /dev/null +++ b/Template/Tizen Platform/EFL Application/hello_efl/project/po/CMakeLists.txt @@ -0,0 +1,37 @@ +# for i18n + +SET(POFILES de_DE.po + el_GR.po + en.po + es_ES.po + fr_FR.po + it_IT.po + ja_JP.po + ko_KR.po + nl_NL.po + pt_PT.po + ru_RU.po + tr_TR.po + zh_CN.po + zh_HK.po + zh_TW.po) +SET(MSGFMT "/usr/bin/msgfmt") + +FOREACH(pofile ${POFILES}) + SET(pofile ${CMAKE_CURRENT_SOURCE_DIR}/${pofile}) + MESSAGE("PO: ${pofile}") + GET_FILENAME_COMPONENT(absPofile ${pofile} ABSOLUTE) + GET_FILENAME_COMPONENT(lang ${absPofile} NAME_WE) + SET(moFile ${CMAKE_CURRENT_BINARY_DIR}/${lang}.mo) + ADD_CUSTOM_COMMAND( + OUTPUT ${moFile} + COMMAND ${MSGFMT} -o ${moFile} ${absPofile} + DEPENDS ${absPofile} + ) + INSTALL(FILES ${moFile} + DESTINATION ${LOCALEDIR}/${lang}/LC_MESSAGES RENAME ${PROJECT_NAME}.mo) + SET(moFiles ${moFiles} ${moFile}) +ENDFOREACH(pofile) + +MESSAGE(".mo files: ${moFiles}") +ADD_CUSTOM_TARGET(po ALL DEPENDS ${moFiles}) diff --git a/Template/Tizen Platform/EFL Application/hello_efl/project/po/POTFILES.in b/Template/Tizen Platform/EFL Application/hello_efl/project/po/POTFILES.in new file mode 100644 index 0000000..5dda005 --- /dev/null +++ b/Template/Tizen Platform/EFL Application/hello_efl/project/po/POTFILES.in @@ -0,0 +1,2 @@ +# List of source files containing translatable strings. +src/main.c diff --git a/Template/Tizen Platform/EFL Application/hello_efl/project/po/de_DE.po b/Template/Tizen Platform/EFL Application/hello_efl/project/po/de_DE.po new file mode 100644 index 0000000..f90724d --- /dev/null +++ b/Template/Tizen Platform/EFL Application/hello_efl/project/po/de_DE.po @@ -0,0 +1,22 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2013-04-09 09:44+0900\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" +"Language-Team: LANGUAGE <LL@li.org>\n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: src/main.c:50 +msgid "Hello EFL" +msgstr "" diff --git a/Template/Tizen Platform/EFL Application/hello_efl/project/po/el_GR.po b/Template/Tizen Platform/EFL Application/hello_efl/project/po/el_GR.po new file mode 100644 index 0000000..f90724d --- /dev/null +++ b/Template/Tizen Platform/EFL Application/hello_efl/project/po/el_GR.po @@ -0,0 +1,22 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2013-04-09 09:44+0900\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" +"Language-Team: LANGUAGE <LL@li.org>\n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: src/main.c:50 +msgid "Hello EFL" +msgstr "" diff --git a/Template/Tizen Platform/EFL Application/hello_efl/project/po/en.po b/Template/Tizen Platform/EFL Application/hello_efl/project/po/en.po new file mode 100644 index 0000000..f90724d --- /dev/null +++ b/Template/Tizen Platform/EFL Application/hello_efl/project/po/en.po @@ -0,0 +1,22 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2013-04-09 09:44+0900\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" +"Language-Team: LANGUAGE <LL@li.org>\n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: src/main.c:50 +msgid "Hello EFL" +msgstr "" diff --git a/Template/Tizen Platform/EFL Application/hello_efl/project/po/es_ES.po b/Template/Tizen Platform/EFL Application/hello_efl/project/po/es_ES.po new file mode 100644 index 0000000..f90724d --- /dev/null +++ b/Template/Tizen Platform/EFL Application/hello_efl/project/po/es_ES.po @@ -0,0 +1,22 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2013-04-09 09:44+0900\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" +"Language-Team: LANGUAGE <LL@li.org>\n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: src/main.c:50 +msgid "Hello EFL" +msgstr "" diff --git a/Template/Tizen Platform/EFL Application/hello_efl/project/po/fr_FR.po b/Template/Tizen Platform/EFL Application/hello_efl/project/po/fr_FR.po new file mode 100644 index 0000000..f90724d --- /dev/null +++ b/Template/Tizen Platform/EFL Application/hello_efl/project/po/fr_FR.po @@ -0,0 +1,22 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2013-04-09 09:44+0900\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" +"Language-Team: LANGUAGE <LL@li.org>\n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: src/main.c:50 +msgid "Hello EFL" +msgstr "" diff --git a/Template/Tizen Platform/EFL Application/hello_efl/project/po/hello-efl.pot b/Template/Tizen Platform/EFL Application/hello_efl/project/po/hello-efl.pot new file mode 100644 index 0000000..0f2e228 --- /dev/null +++ b/Template/Tizen Platform/EFL Application/hello_efl/project/po/hello-efl.pot @@ -0,0 +1,22 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2013-04-09 09:44+0900\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" +"Language-Team: LANGUAGE <LL@li.org>\n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=CHARSET\n" +"Content-Transfer-Encoding: 8bit\n" + +#: src/main.c:50 +msgid "Hello EFL" +msgstr "" diff --git a/Template/Tizen Platform/EFL Application/hello_efl/project/po/it_IT.po b/Template/Tizen Platform/EFL Application/hello_efl/project/po/it_IT.po new file mode 100644 index 0000000..f90724d --- /dev/null +++ b/Template/Tizen Platform/EFL Application/hello_efl/project/po/it_IT.po @@ -0,0 +1,22 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2013-04-09 09:44+0900\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" +"Language-Team: LANGUAGE <LL@li.org>\n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: src/main.c:50 +msgid "Hello EFL" +msgstr "" diff --git a/Template/Tizen Platform/EFL Application/hello_efl/project/po/ja_JP.po b/Template/Tizen Platform/EFL Application/hello_efl/project/po/ja_JP.po new file mode 100644 index 0000000..f90724d --- /dev/null +++ b/Template/Tizen Platform/EFL Application/hello_efl/project/po/ja_JP.po @@ -0,0 +1,22 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2013-04-09 09:44+0900\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" +"Language-Team: LANGUAGE <LL@li.org>\n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: src/main.c:50 +msgid "Hello EFL" +msgstr "" diff --git a/Template/Tizen Platform/EFL Application/hello_efl/project/po/ko_KR.po b/Template/Tizen Platform/EFL Application/hello_efl/project/po/ko_KR.po new file mode 100644 index 0000000..f90724d --- /dev/null +++ b/Template/Tizen Platform/EFL Application/hello_efl/project/po/ko_KR.po @@ -0,0 +1,22 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2013-04-09 09:44+0900\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" +"Language-Team: LANGUAGE <LL@li.org>\n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: src/main.c:50 +msgid "Hello EFL" +msgstr "" diff --git a/Template/Tizen Platform/EFL Application/hello_efl/project/po/nl_NL.po b/Template/Tizen Platform/EFL Application/hello_efl/project/po/nl_NL.po new file mode 100644 index 0000000..f90724d --- /dev/null +++ b/Template/Tizen Platform/EFL Application/hello_efl/project/po/nl_NL.po @@ -0,0 +1,22 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2013-04-09 09:44+0900\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" +"Language-Team: LANGUAGE <LL@li.org>\n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: src/main.c:50 +msgid "Hello EFL" +msgstr "" diff --git a/Template/Tizen Platform/EFL Application/hello_efl/project/po/pt_PT.po b/Template/Tizen Platform/EFL Application/hello_efl/project/po/pt_PT.po new file mode 100644 index 0000000..f90724d --- /dev/null +++ b/Template/Tizen Platform/EFL Application/hello_efl/project/po/pt_PT.po @@ -0,0 +1,22 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2013-04-09 09:44+0900\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" +"Language-Team: LANGUAGE <LL@li.org>\n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: src/main.c:50 +msgid "Hello EFL" +msgstr "" diff --git a/Template/Tizen Platform/EFL Application/hello_efl/project/po/ru_RU.po b/Template/Tizen Platform/EFL Application/hello_efl/project/po/ru_RU.po new file mode 100644 index 0000000..f90724d --- /dev/null +++ b/Template/Tizen Platform/EFL Application/hello_efl/project/po/ru_RU.po @@ -0,0 +1,22 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2013-04-09 09:44+0900\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" +"Language-Team: LANGUAGE <LL@li.org>\n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: src/main.c:50 +msgid "Hello EFL" +msgstr "" diff --git a/Template/Tizen Platform/EFL Application/hello_efl/project/po/tr_TR.po b/Template/Tizen Platform/EFL Application/hello_efl/project/po/tr_TR.po new file mode 100644 index 0000000..f90724d --- /dev/null +++ b/Template/Tizen Platform/EFL Application/hello_efl/project/po/tr_TR.po @@ -0,0 +1,22 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2013-04-09 09:44+0900\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" +"Language-Team: LANGUAGE <LL@li.org>\n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: src/main.c:50 +msgid "Hello EFL" +msgstr "" diff --git a/Template/Tizen Platform/EFL Application/hello_efl/project/po/update-po.sh b/Template/Tizen Platform/EFL Application/hello_efl/project/po/update-po.sh new file mode 100755 index 0000000..665444f --- /dev/null +++ b/Template/Tizen Platform/EFL Application/hello_efl/project/po/update-po.sh @@ -0,0 +1,59 @@ +#!/bin/sh + +APPNAME=hello-efl +SRCROOT=.. +POTFILES=POTFILES.in + +ALL_LINGUAS="de_DE el_GR en es_ES fr_FR it_IT ja_JP ko_KR nl_NL pt_PT ru_RU tr_TR zh_CN zh_HK zh_TW" + +XGETTEXT=/usr/bin/xgettext +MSGMERGE=/usr/bin/msgmerge + +echo -n "Make ${APPNAME}.pot " +if [ ! -e $POTFILES ] ; then + echo "$POTFILES not found" + exit 1 +fi + +$XGETTEXT --default-domain=${APPNAME} --directory=${SRCROOT} \ + --add-comments --keyword=_ --keyword=N_ --files-from=$POTFILES +if [ $? -ne 0 ]; then + echo "xgettext error" + exit 1 +fi + +if [ ! -f ${APPNAME}.po ]; then + echo "No such file: ${APPNAME}.po" + exit 1 +fi + +rm -f ${APPNAME}.pot && mv ${APPNAME}.po ${APPNAME}.pot +echo "done" + +for LANG in $ALL_LINGUAS; do + echo "$LANG : " + + if [ ! -e $LANG.po ] ; then + sed 's/CHARSET/UTF-8/g' ${APPNAME}.pot > ${LANG}.po + echo "${LANG}.po created" + else + if $MSGMERGE ${LANG}.po ${APPNAME}.pot -o ${LANG}.new.po ; then + if cmp ${LANG}.po ${LANG}.new.po > /dev/null 2>&1; then + rm -f ${LANG}.new.po + else + if mv -f ${LANG}.new.po ${LANG}.po; then + echo "" + else + echo "msgmerge for $LANG.po failed: cannot move $LANG.new.po to $LANG.po" 1>&2 + rm -f ${LANG}.new.po + exit 1 + fi + fi + else + echo "msgmerge for $LANG failed!" + rm -f ${LANG}.new.po + fi + fi + echo "" +done + diff --git a/Template/Tizen Platform/EFL Application/hello_efl/project/po/zh_CN.po b/Template/Tizen Platform/EFL Application/hello_efl/project/po/zh_CN.po new file mode 100644 index 0000000..f90724d --- /dev/null +++ b/Template/Tizen Platform/EFL Application/hello_efl/project/po/zh_CN.po @@ -0,0 +1,22 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2013-04-09 09:44+0900\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" +"Language-Team: LANGUAGE <LL@li.org>\n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: src/main.c:50 +msgid "Hello EFL" +msgstr "" diff --git a/Template/Tizen Platform/EFL Application/hello_efl/project/po/zh_HK.po b/Template/Tizen Platform/EFL Application/hello_efl/project/po/zh_HK.po new file mode 100644 index 0000000..f90724d --- /dev/null +++ b/Template/Tizen Platform/EFL Application/hello_efl/project/po/zh_HK.po @@ -0,0 +1,22 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2013-04-09 09:44+0900\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" +"Language-Team: LANGUAGE <LL@li.org>\n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: src/main.c:50 +msgid "Hello EFL" +msgstr "" diff --git a/Template/Tizen Platform/EFL Application/hello_efl/project/po/zh_TW.po b/Template/Tizen Platform/EFL Application/hello_efl/project/po/zh_TW.po new file mode 100644 index 0000000..f90724d --- /dev/null +++ b/Template/Tizen Platform/EFL Application/hello_efl/project/po/zh_TW.po @@ -0,0 +1,22 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2013-04-09 09:44+0900\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" +"Language-Team: LANGUAGE <LL@li.org>\n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: src/main.c:50 +msgid "Hello EFL" +msgstr "" diff --git a/Template/Tizen Platform/EFL Application/hello_efl/project/src/main.c b/Template/Tizen Platform/EFL Application/hello_efl/project/src/main.c new file mode 100644 index 0000000..f99d01d --- /dev/null +++ b/Template/Tizen Platform/EFL Application/hello_efl/project/src/main.c @@ -0,0 +1,154 @@ +/* + * Copyright (c) 2013 Samsung Electronics Co., Ltd All Rights Reserved + * + * 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 <app.h> +#include <Elementary.h> +#include <assert.h> + +struct _appdata { + const char *name; + Evas_Object *win; + Evas_Object *lbl; +}; + +static Evas_Object *_add_win(const char *name) +{ + Evas_Object *win; + + win = elm_win_util_standard_add(name, "$(projectName)"); + if (!win) + return NULL; + + evas_object_show(win); + + return win; +} + +static Evas_Object *_add_lable(Evas_Object *win) +{ + Evas_Object *lbl; + + assert(win); + + lbl = elm_label_add(win); + if (!lbl) + return NULL; + + elm_object_text_set(lbl, _("Hello EFL")); + evas_object_size_hint_weight_set(lbl, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); + elm_win_resize_object_add(win, lbl); + evas_object_show(lbl); + + return lbl; +} + +static bool _create(void *user_data) +{ + struct _appdata *ad; + Evas_Object *win; + Evas_Object *lbl; + + if (!user_data) + return false; + + ad = user_data; + + win = _add_win(ad->name); + if (!win) + return false; + + lbl = _add_lable(win); + if (!lbl) { + evas_object_del(win); + return false; + } + + ad->win = win; + ad->lbl = lbl; + + return true; +} + +static void _terminate(void *user_data) +{ + struct _appdata *ad; + + if (!user_data) + return; + + ad = user_data; + + if (ad->win) + evas_object_del(ad->win); +} + +static void _pause(void *user_data) +{ +} + +static void _resume(void *user_data) +{ +} + +static void _service(service_h service, void *user_data) +{ +} + +static void _low_memory(void *user_data) +{ +} + +static void _low_battery(void *user_data) +{ +} + +static void _dev_orientation_changed(app_device_orientation_e orientation, + void *user_data) +{ +} + +static void _lang_changed(void *user_data) +{ +} + +static void _region_fmt_changed(void *user_data) +{ +} + +int main(int argc, char **argv) +{ + struct _appdata ad; + app_event_callback_s cbs = { + .create = _create, + .terminate = _terminate, + .pause = _pause, + .resume = _resume, + .service = _service, + .low_memory = _low_memory, + .low_battery = _low_battery, + .device_orientation = _dev_orientation_changed, + .language_changed = _lang_changed, + .region_format_changed = _region_fmt_changed, + }; + + memset(&ad, 0x00, sizeof(ad)); + ad.name= PACKAGE; + + app_efl_main(&argc, &argv, &cbs, &ad); + + return 0; +} + diff --git a/Template/Tizen Platform/EFL Application/hello_efl/sample.xml b/Template/Tizen Platform/EFL Application/hello_efl/sample.xml new file mode 100644 index 0000000..f8a195d --- /dev/null +++ b/Template/Tizen Platform/EFL Application/hello_efl/sample.xml @@ -0,0 +1,49 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<template> + + <slp-property> + <property-group> + <sample-name>Hello EFL</sample-name> + <category>Platform Template</category> + <sdk-version>1.00</sdk-version> + <project-type>org.tizen.nativeide.buildArtefactType.platform</project-type> + <sample-description>description.xml</sample-description> + </property-group> + </slp-property> + <process type="org.tizen.nativeappcommon.TizenCopyFolder"> + <simple name="projectName" value="$(projectName)"/> + <simple name="folderPath" value="project"/> + <complex-array name="replaceableFiles"> + <element> + <simple name="sourcePath" value="org.tizen.hello-efl.xml.in"/> + <simple name="targetPath" value="org.tizen.$(projectName).xml.in"/> + <simple name="replaceable" value="true"/> + </element> + <element> + <simple name="sourcePath" value="org.tizen.hello-efl.png"/> + <simple name="targetPath" value="org.tizen.$(projectName).png"/> + <simple name="replaceable" value="false"/> + </element> + <element> + <simple name="sourcePath" value="packaging/org.tizen.hello-efl.spec"/> + <simple name="targetPath" value="packaging/org.tizen.$(projectName).spec"/> + <simple name="replaceable" value="true"/> + </element> + <element> + <simple name="sourcePath" value="CMakeLists.txt"/> + <simple name="targetPath" value="CMakeLists.txt"/> + <simple name="replaceable" value="true"/> + </element> + <element> + <simple name="sourcePath" value="src/main.c"/> + <simple name="targetPath" value="src/main.c"/> + <simple name="replaceable" value="true"/> + </element> + <element> + <simple name="sourcePath" value="include/dbg.h"/> + <simple name="targetPath" value="include/dbg.h"/> + <simple name="replaceable" value="true"/> + </element> + </complex-array> + </process> +</template> diff --git a/Template/Tizen Platform/EFL Application/hello_efl/screenshot.png b/Template/Tizen Platform/EFL Application/hello_efl/screenshot.png Binary files differnew file mode 100644 index 0000000..5edb16c --- /dev/null +++ b/Template/Tizen Platform/EFL Application/hello_efl/screenshot.png diff --git a/Template/Tizen Platform/Empty/empty/description.xml b/Template/Tizen Platform/Empty/empty/description.xml new file mode 100644 index 0000000..87b1827 --- /dev/null +++ b/Template/Tizen Platform/Empty/empty/description.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="utf-8"?> +<?xml-stylesheet type="text/xsl" href="../../../../description.xsl"?> + +<Overview version="0.17.1"> + <SampleName>Empty Project</SampleName> + <SampleVersion>1.0</SampleVersion> + <Description> + This is the empty project template. + </Description> +</Overview> diff --git a/Template/Tizen Platform/Empty/empty/sample.xml b/Template/Tizen Platform/Empty/empty/sample.xml new file mode 100644 index 0000000..89fbf0b --- /dev/null +++ b/Template/Tizen Platform/Empty/empty/sample.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<template> + + <slp-property> + <property-group> + <sample-name>Empty Project</sample-name> + <category>Platform Template</category> + <sdk-version>1.00</sdk-version> + <project-type>org.tizen.nativeide.buildArtefactType.platform</project-type> + <sample-description>description.xml</sample-description> + </property-group> + </slp-property> +</template> diff --git a/Template/Tizen Platform/Simple/helloworld/description.xml b/Template/Tizen Platform/Simple/helloworld/description.xml new file mode 100644 index 0000000..59ecf41 --- /dev/null +++ b/Template/Tizen Platform/Simple/helloworld/description.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="utf-8"?> +<?xml-stylesheet type="text/xsl" href="../../../../description.xsl"?> + +<Overview version="0.17.1"> + <SampleName>Helloworld</SampleName> + <SampleVersion>1.0</SampleVersion> + <Description> + This is the template project that shows "hello world!" on log view. + </Description> +</Overview> diff --git a/Template/Tizen Platform/Simple/helloworld/project/Makefile b/Template/Tizen Platform/Simple/helloworld/project/Makefile new file mode 100644 index 0000000..b85d6e4 --- /dev/null +++ b/Template/Tizen Platform/Simple/helloworld/project/Makefile @@ -0,0 +1,28 @@ +CC := gcc +TARGET := $(projectName) +SRCS := src/$(projectName).c +OBJS := ${SRCS:.c=.o} +DEPS := ${SRCS:.c=.dep} + +CCFLAGS = -g +LDFLAGS = +LIBS = +DESTDIR ?= /usr + +.PHONY: all clean distclean +all: ${TARGET} + +${TARGET}: ${OBJS} + ${CC} ${LDFLAGS} -o $@ $^ ${LIBS} + +${OBJS}: %.o: %.c + ${CC} ${CCFLAGS} -o $@ -c $< + +clean: + -rm -f src/*.o ${TARGET} + +distclean: clean + +install: all + mkdir -p ${DESTDIR}/bin + cp ${TARGET} ${DESTDIR}/bin/ diff --git a/Template/Tizen Platform/Simple/helloworld/project/packaging/hello.spec b/Template/Tizen Platform/Simple/helloworld/project/packaging/hello.spec new file mode 100644 index 0000000..1f8e942 --- /dev/null +++ b/Template/Tizen Platform/Simple/helloworld/project/packaging/hello.spec @@ -0,0 +1,30 @@ +Name: org.tizen.$(projectName) +Version: 0.0.1 +Release: 1 +License: To be filled +Summary: Helloworld Application +Packager: $(author) <$(e-mail)> +Group: Application +Source: %{name}-%{version}.tar.gz +%description +$(description) + +%prep +%setup -q + +%build +make + +%install +make install DESTDIR=$RPM_BUILD_ROOT/usr + +%clean +make clean + +%files +%defattr(644, root, root) +%attr(755, root, root) /usr/bin + +%changelog +* Sat Mar 24 2012 Author <E-mail> + - initial release diff --git a/Template/Tizen Platform/Simple/helloworld/project/src/hello.c b/Template/Tizen Platform/Simple/helloworld/project/src/hello.c new file mode 100644 index 0000000..5467927 --- /dev/null +++ b/Template/Tizen Platform/Simple/helloworld/project/src/hello.c @@ -0,0 +1,8 @@ +#include <stdio.h> + +int main(int argc, char *argv[]) +{ + printf("Hello World!"); + return 0; +} + diff --git a/Template/Tizen Platform/Simple/helloworld/sample.xml b/Template/Tizen Platform/Simple/helloworld/sample.xml new file mode 100644 index 0000000..8a3d629 --- /dev/null +++ b/Template/Tizen Platform/Simple/helloworld/sample.xml @@ -0,0 +1,34 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<template> + + <slp-property> + <property-group> + <sample-name>Helloworld</sample-name> + <category>Platform Template</category> + <sdk-version>1.00</sdk-version> + <project-type>org.tizen.nativeide.buildArtefactType.platform</project-type> + <sample-description>description.xml</sample-description> + </property-group> + </slp-property> + <process type="org.tizen.nativeappcommon.TizenCopyFolder"> + <simple name="projectName" value="$(projectName)"/> + <simple name="folderPath" value="project"/> + <complex-array name="replaceableFiles"> + <element> + <simple name="sourcePath" value="src/hello.c"/> + <simple name="targetPath" value="src/$(projectName).c"/> + <simple name="replaceable" value = "true"/> + </element> + <element> + <simple name="sourcePath" value="packaging/hello.spec"/> + <simple name="targetPath" value="packaging/$(projectName).spec"/> + <simple name="replaceable" value = "true"/> + </element> + <element> + <simple name="sourcePath" value="Makefile"/> + <simple name="targetPath" value="Makefile"/> + <simple name="replaceable" value = "true"/> + </element> + </complex-array> + </process> +</template> diff --git a/Template/Tizen Platform/Simple/helloworld_cmake/description.xml b/Template/Tizen Platform/Simple/helloworld_cmake/description.xml new file mode 100644 index 0000000..d97374c --- /dev/null +++ b/Template/Tizen Platform/Simple/helloworld_cmake/description.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="utf-8"?> +<?xml-stylesheet type="text/xsl" href="../../../../description.xsl"?> + +<Overview version="0.17.1"> + <SampleName>Helloworld Using CMake</SampleName> + <SampleVersion>1.0</SampleVersion> + <Description> + This is the template project that shows "hello world!" on log view. + </Description> +</Overview> diff --git a/Template/Tizen Platform/Simple/helloworld_cmake/project/CMakeLists.txt b/Template/Tizen Platform/Simple/helloworld_cmake/project/CMakeLists.txt new file mode 100644 index 0000000..d72e8b8 --- /dev/null +++ b/Template/Tizen Platform/Simple/helloworld_cmake/project/CMakeLists.txt @@ -0,0 +1,14 @@ +CMAKE_MINIMUM_REQUIRED(VERSION 2.6) +PROJECT($(projectName) C) + +FILE(GLOB SRCS src/*.c) + +SET(INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX}) +SET(BINDIR "${DESTDIR}/bin") + +SET(CMAKE_C_FLAGS_DEBUG "-g") +SET(CMAKE_C_FLAGS_RELEASE "-O2") + +ADD_EXECUTABLE(${PROJECT_NAME} ${SRCS}) + +INSTALL(TARGETS ${PROJECT_NAME} DESTINATION ${BINDIR}) diff --git a/Template/Tizen Platform/Simple/helloworld_cmake/project/packaging/hello.spec b/Template/Tizen Platform/Simple/helloworld_cmake/project/packaging/hello.spec new file mode 100644 index 0000000..f89657d --- /dev/null +++ b/Template/Tizen Platform/Simple/helloworld_cmake/project/packaging/hello.spec @@ -0,0 +1,31 @@ +Name: org.tizen.$(projectName) +Version: 0.0.1 +Release: 1 +License: To be filled +Summary: helloworld application (unstripped) +Packager: $(author) <$(e-mail)> +Group: Application +Source: %{name}-%{version}.tar.gz +BuildRequires: cmake +%description +$(description) + +%prep +%setup -q + +%build +cmake .;make + +%install +make install DESTDIR=$RPM_BUILD_ROOT/usr + +%clean +make clean + +%files +%defattr(644, root, root) +%attr(755, root, root) /usr/bin + +%changelog +* Sat Mar 24 2012 Author <E-mail> + - initial release diff --git a/Template/Tizen Platform/Simple/helloworld_cmake/project/src/hello.c b/Template/Tizen Platform/Simple/helloworld_cmake/project/src/hello.c new file mode 100644 index 0000000..5467927 --- /dev/null +++ b/Template/Tizen Platform/Simple/helloworld_cmake/project/src/hello.c @@ -0,0 +1,8 @@ +#include <stdio.h> + +int main(int argc, char *argv[]) +{ + printf("Hello World!"); + return 0; +} + diff --git a/Template/Tizen Platform/Simple/helloworld_cmake/sample.xml b/Template/Tizen Platform/Simple/helloworld_cmake/sample.xml new file mode 100644 index 0000000..cad3929 --- /dev/null +++ b/Template/Tizen Platform/Simple/helloworld_cmake/sample.xml @@ -0,0 +1,34 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<template> + + <slp-property> + <property-group> + <sample-name>Helloworld (CMake)</sample-name> + <category>Platform Template</category> + <sdk-version>1.00</sdk-version> + <project-type>org.tizen.nativeide.buildArtefactType.platform</project-type> + <sample-description>description.xml</sample-description> + </property-group> + </slp-property> + <process type="org.tizen.nativeappcommon.TizenCopyFolder"> + <simple name="projectName" value="$(projectName)"/> + <simple name="folderPath" value="project"/> + <complex-array name="replaceableFiles"> + <element> + <simple name="sourcePath" value="src/hello.c"/> + <simple name="targetPath" value="src/$(projectName).c"/> + <simple name="replaceable" value = "true"/> + </element> + <element> + <simple name="sourcePath" value="packaging/hello.spec"/> + <simple name="targetPath" value="packaging/$(projectName).spec"/> + <simple name="replaceable" value = "true"/> + </element> + <element> + <simple name="sourcePath" value="CMakeLists.txt"/> + <simple name="targetPath" value="CMakeLists.txt"/> + <simple name="replaceable" value = "true"/> + </element> + </complex-array> + </process> +</template> |