Hi :
      I have maked a simple-player app based on efl and gstreamer,not use 
tizen’s sdk,it is a binary file.
And now I config the CMakeLists.txt and simple-player.spce , used gbs build to 
create a rpm package.
Then ,I install this rpm package to tizne phone ,it can play video well through 
comandline(I connect the phone to pc),but it is not have a icon of 
simple-player on the home sreen.
How can I add a icon to launch the simple-player from icon?

The attachmnet is my CMakeLists.txt ,simple-player.spce and simple-player.xml.


Thanks,
Wei,changzhi
CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
PROJECT(simple-player C)

SET(BINDIR "/opt/apps/org.tizen.simple-player/bin/")
SET(XMLDIR "/opt/share/packages/")
SET(ICONDIR "/opt/share/icons/default/small/")
SET(RESDIR "/opt/apps/org.tizen.simple-player/res/icons/")

INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})

SET(SRCS 
    common.c
    eflplayer.c
        subsurface-protocol.c)

INCLUDE(FindPkgConfig)
pkg_check_modules(pkgs REQUIRED elementary
                                                                ecore-wayland
                                                                ecore-x 
                                                                gstreamer-0.10
                                                                
gstreamer-interfaces-0.10
)

ADD_DEFINITIONS(${pkgs_CFLAGS})
ADD_DEFINITIONS("-fpie")

set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC")

ADD_EXECUTABLE(${PROJECT_NAME} ${SRCS})
TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${pkgs_LDFLAGS} "-pie" "-lwayland-client")

INSTALL(TARGETS ${PROJECT_NAME} DESTINATION ${BINDIR})
INSTALL(FILES org.tizen.simple-player.png DESTINATION ${ICONDIR})
INSTALL(FILES org.tizen.simple-player.xml DESTINATION ${XMLDIR})
INSTALL(FILES org.tizen.simple-player.png DESTINATION ${RESDIR})
<?xml version="0.1.0" encoding="utf-8"?> 
<manifest xmlns="http://tizen.org/ns/packages"; package="org.tizen.simple-player" version="0.1.0" install-location="internal-only">
	<label>player</label> 
	<description>player</description> 
	<ui-application appid="org.tizen.simple-player" exec="/opt/apps/org.tizen.simple-player/bin/simple-player" nodisplay="false" multiple="false" type="capp" taskmanage="true">
		<icon>org.tizen.simple-player.png</icon> 
		<label>player</label> 
		<label xml:lang="en-us">player</label> 
		<label xml:lang="nl-nl">player</label> 
		<label xml:lang="de-de">player</label> 
		<label xml:lang="zh-hk">player</label> 
		<label xml:lang="zh-cn">播放器</label> 
		<label xml:lang="ru-ru">Калькулятор</label> 
		<label xml:lang="zh-tw">播放器</label> 
		<label xml:lang="ja-jp">播放器</label> 
		<label xml:lang="es-es">player</label> 
		<label xml:lang="el-gr">Αριθμομηχανή</label> 
		<label xml:lang="it-it">player</label> 
		<label xml:lang="tr-tr">Hesap makinesi</label> 
		<label xml:lang="pt-pt">player</label> 
		<label xml:lang="fr-fr">player</label> 
		<label xml:lang="ko-kr">계산기</label> 
	</ui-application>
</manifest>

Attachment: simple-player.spec
Description: simple-player.spec

_______________________________________________
Application-dev mailing list
Application-dev@lists.tizen.org
https://lists.tizen.org/listinfo/application-dev

Reply via email to