summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordonghyuk.yang <donghyuk.yang@samsung.com>2014-04-18 23:29:04 +0900
committerdonghyuk.yang <donghyuk.yang@samsung.com>2014-04-18 23:29:04 +0900
commit9bc8c9a742e3d427121fc63da71f9fa4dd196af7 (patch)
tree7b02074812ff1cf2517b845f8da53891ed3ec937
parent88d34f741da888ed89a56c0eb22391d8e41c5c30 (diff)
downloadplatform-template-9bc8c9a742e3d427121fc63da71f9fa4dd196af7.tar.gz
platform-template-9bc8c9a742e3d427121fc63da71f9fa4dd196af7.tar.bz2
platform-template-9bc8c9a742e3d427121fc63da71f9fa4dd196af7.zip
TEMPLATE: Modified description, screenshot and spec filestizen
Change-Id: I1cfcd69b1496a9316cdfa53ee7a4e1bfd6dd198e Signed-off-by: donghyuk.yang <donghyuk.yang@samsung.com>
-rwxr-xr-xTemplate/Tizen Platform/EFL Application/hello_efl/project/packaging/org.tizen.hello-efl.spec3
-rw-r--r--Template/Tizen Platform/EFL Application/hello_efl/project/src/main.c1
-rw-r--r--Template/Tizen Platform/EFL Application/hello_efl/screenshot.pngbin1220 -> 2921 bytes
-rw-r--r--Template/Tizen Platform/Empty/empty/description.xml2
-rw-r--r--Template/Tizen Platform/Simple/helloworld/description.xml17
-rw-r--r--Template/Tizen Platform/Simple/helloworld_cmake/description.xml17
-rw-r--r--Template/Tizen Platform/Simple/helloworld_cmake/project/packaging/hello.spec4
-rw-r--r--description.xml19
-rwxr-xr-xdescription.xsl117
9 files changed, 167 insertions, 13 deletions
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
index 111d0a7..7a12790 100755
--- 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
@@ -32,7 +32,8 @@ cmake \
-DMANIFESTDIR=%{_manifestdir} \
-DDESKTOP_ICONDIR=%{_desktop_icondir} \
-DDESKTOP_ICON=%{name}.png \
- -DVERSION=%{version}
+ -DVERSION=%{version} \
+ -DCMAKE_BUILD_TYPE=%{BUILD_TYPE}
make %{?jobs:-j%jobs}
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
index f99d01d..3bb3de0 100644
--- a/Template/Tizen Platform/EFL Application/hello_efl/project/src/main.c
+++ b/Template/Tizen Platform/EFL Application/hello_efl/project/src/main.c
@@ -48,6 +48,7 @@ static Evas_Object *_add_lable(Evas_Object *win)
return NULL;
elm_object_text_set(lbl, _("Hello EFL"));
+ elm_object_style_set(lbl, "marker"); /* add this line show label */
evas_object_size_hint_weight_set(lbl, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
elm_win_resize_object_add(win, lbl);
evas_object_show(lbl);
diff --git a/Template/Tizen Platform/EFL Application/hello_efl/screenshot.png b/Template/Tizen Platform/EFL Application/hello_efl/screenshot.png
index 68e2ec8..b23d095 100644
--- a/Template/Tizen Platform/EFL Application/hello_efl/screenshot.png
+++ b/Template/Tizen Platform/EFL Application/hello_efl/screenshot.png
Binary files differ
diff --git a/Template/Tizen Platform/Empty/empty/description.xml b/Template/Tizen Platform/Empty/empty/description.xml
index 87b1827..58645aa 100644
--- a/Template/Tizen Platform/Empty/empty/description.xml
+++ b/Template/Tizen Platform/Empty/empty/description.xml
@@ -5,6 +5,6 @@
<SampleName>Empty Project</SampleName>
<SampleVersion>1.0</SampleVersion>
<Description>
- This is the empty project template.
+ This is the empty project template. If there is a git project on the shell, it can be converted to tizen platform project by selecting this empty project and specifying location of git project.
</Description>
</Overview>
diff --git a/Template/Tizen Platform/Simple/helloworld/description.xml b/Template/Tizen Platform/Simple/helloworld/description.xml
index 59ecf41..06adf14 100644
--- a/Template/Tizen Platform/Simple/helloworld/description.xml
+++ b/Template/Tizen Platform/Simple/helloworld/description.xml
@@ -2,9 +2,16 @@
<?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>
+ <SampleName>Helloworld</SampleName>
+ <SampleVersion>1.0</SampleVersion>
+ <Description>This is the template project that shows "hello world!" on console view. If you execute a "/usr/bin/{project name}" through launch wizard after building the project, "hello world!" string will be printed on "Device Internal" console view.
+ </Description>
+ <TechnologyList>
+ <Technology>
+ <Name>Result</Name>
+ <Info>[command] /usr/bin/helloworld
+Hello World!</Info>
+ <Url></Url>
+ </Technology>
+ </TechnologyList>
</Overview>
diff --git a/Template/Tizen Platform/Simple/helloworld_cmake/description.xml b/Template/Tizen Platform/Simple/helloworld_cmake/description.xml
index d97374c..bad0619 100644
--- a/Template/Tizen Platform/Simple/helloworld_cmake/description.xml
+++ b/Template/Tizen Platform/Simple/helloworld_cmake/description.xml
@@ -2,9 +2,16 @@
<?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>
+ <SampleName>Helloworld (CMake)</SampleName>
+ <SampleVersion>1.0</SampleVersion>
+ <Description>This is the template project that shows "hello world!" on console view. If you execute a "/usr/bin/{project name}" through launch wizard after building the project, "hello world!" string will be printed on "Device Internal" console view.
+ </Description>
+ <TechnologyList>
+ <Technology>
+ <Name>Result</Name>
+ <Info>[command] /usr/bin/helloworld
+Hello World!</Info>
+ <Url></Url>
+ </Technology>
+ </TechnologyList>
</Overview>
diff --git a/Template/Tizen Platform/Simple/helloworld_cmake/project/packaging/hello.spec b/Template/Tizen Platform/Simple/helloworld_cmake/project/packaging/hello.spec
index f89657d..4e7270f 100644
--- a/Template/Tizen Platform/Simple/helloworld_cmake/project/packaging/hello.spec
+++ b/Template/Tizen Platform/Simple/helloworld_cmake/project/packaging/hello.spec
@@ -14,7 +14,9 @@ $(description)
%setup -q
%build
-cmake .;make
+cmake . \
+ -DCMAKE_BUILD_TYPE=%{BUILD_TYPE}
+make
%install
make install DESTDIR=$RPM_BUILD_ROOT/usr
diff --git a/description.xml b/description.xml
new file mode 100644
index 0000000..5ab5e02
--- /dev/null
+++ b/description.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<?xml-stylesheet type="text/xsl" href="description.xsl"?>
+
+<Overview version="0.17.1">
+ <SampleName>This template does not have a description</SampleName>
+ <SampleVersion></SampleVersion>
+ <Preview></Preview>
+ <Description></Description>
+ <TechnologyList>
+ <Technology>
+ </Technology>
+ </TechnologyList>
+ <WidgetList>
+ </WidgetList>
+ <ReferenceList>
+ </ReferenceList>
+ <UpdateURL>
+ </UpdateURL>
+</Overview>
diff --git a/description.xsl b/description.xsl
new file mode 100755
index 0000000..56c7be8
--- /dev/null
+++ b/description.xsl
@@ -0,0 +1,117 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<xsl:stylesheet version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+ <xsl:template match="/">
+ <html>
+ <head>
+ <style type="text/css">
+ html,body {
+ font-family:Arial;
+ margin: 0px;
+ }
+ td
+ {
+ font-size:13px;
+ }
+ .samplename
+ {
+ font-size:16px;
+ color:#ffffff;
+ height:26px;
+ background-color:#5a78b1;
+ }
+ .category
+ {
+ font-size:16px;
+ color:#ffffff;
+ height:30px;
+ background-color:#5a78b1;
+ }
+ .contents
+ {
+ padding: 6px 10px 14px 10px;
+ }
+ table#widgets td
+ {
+ border: solid 1px #5a78b1;
+ border-collapse: collapse;
+ }
+ .widgetname
+ {
+ font-weight: bold;
+ text-align: center;
+ width: 20%;
+ word-break:break-all;
+ }
+ table#references td
+ {
+ width: 100%;
+ border: 0px;
+ border-spacing: 0px;
+ padding: 5px;
+ }
+ .refname
+ {
+ width: 100%;
+ font-weight: bold;
+ }
+ </style>
+ </head>
+ <body>
+ <table width="380px" border="0" cellspacing="0">
+ <tr>
+ <td class="samplename" align="center">
+ <xsl:value-of select="Overview/SampleName" />
+ <xsl:text disable-output-escaping="yes"><![CDATA[&nbsp;]]></xsl:text>
+ </td>
+ </tr>
+ <tr bgcolor="#FFFFFF">
+ <td class="contents">
+ <p>
+ <xsl:value-of select="Overview/Description" />
+ </p>
+ </td>
+ </tr>
+ <tr bgcolor="#FFFFFF">
+ <td class="contents">
+ <table width="380px" id="references" cellspacing="0">
+ <xsl:for-each select="Overview/TechnologyList/Technology">
+ <tr bgcolor="#cfcfcf">
+ <td class="refname">
+ <xsl:value-of select="Name" />
+ </td>
+ </tr>
+ <tr bgcolor="#f3f3f3">
+ <td width="100%">
+ <pre>
+ <xsl:value-of select="Info" />
+ </pre>
+ </td>
+ </tr>
+ <tr bgcolor="#f3f3f3">
+ <td width="100%">
+ <a href="{Url}" target="_blank">
+ <xsl:value-of select="Url" />
+ </a>
+ </td>
+ </tr>
+ </xsl:for-each>
+ </table>
+ </td>
+ </tr>
+ <tr>
+ <td align="center" bgcolor="#FFFFFF" height="260px">
+ <img>
+ <xsl:attribute name="src">
+ <xsl:value-of select="Overview/Preview" />
+ </xsl:attribute>
+ </img>
+ </td>
+ </tr>
+ </table>
+ </body>
+ </html>
+ </xsl:template>
+
+</xsl:stylesheet>