Not support appservice from message application in case of emulator.
authorJaeyun Jeong <jyjeong@samsung.com>
Thu, 6 Sep 2012 10:09:00 +0000 (19:09 +0900)
committerJaeyun Jeong <jyjeong@samsung.com>
Thu, 6 Sep 2012 10:09:00 +0000 (19:09 +0900)
Change-Id: I483e381aef12c8abcdeb05595b6ec5f11ac05602

main/CMakeLists.txt
org.tizen.message.xml.emul [new file with mode: 0755]
org.tizen.message.xml.target [moved from org.tizen.message.xml with 100% similarity]

index 542925f..53b3bc4 100755 (executable)
@@ -34,10 +34,11 @@ SET(CMAKE_C_FLAGS_DEBUG "-O0 -g")
 
 FIND_PROGRAM(UNAME NAMES uname)
 EXEC_PROGRAM("${UNAME}" ARGS "-m" OUTPUT_VARIABLE "ARCH")
-IF("${ARCH}" STREQUAL "arm")
+
+IF("${ARCH}" MATCHES "^arm.*")
        ADD_DEFINITIONS("-DTARGET")
        MESSAGE("add -DTARGET")
-ENDIF("${ARCH}" STREQUAL "arm")
+ENDIF("${ARCH}" MATCHES "^arm.*")
 
 ADD_DEFINITIONS("-DDEBUG")
 ADD_DEFINITIONS("-DDEBUG_ON")
@@ -50,6 +51,11 @@ TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${pkgs_LDFLAGS} ${CMAKE_LDFLAGS} msg-commo
 
 #Install desktop file & icon.
 INSTALL(TARGETS message DESTINATION bin)
+IF("${ARCH}" MATCHES "^arm.*")
+       CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/${PKGNAME}.xml.target ${CMAKE_SOURCE_DIR}/${PKGNAME}.xml)
+ELSE("${ARCH}" MATCHES "^arm.*")
+       CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/${PKGNAME}.xml.emul ${CMAKE_SOURCE_DIR}/${PKGNAME}.xml)
+ENDIF("${ARCH}" MATCHES "^arm.*")
 INSTALL(FILES ${CMAKE_SOURCE_DIR}/${PKGNAME}.xml DESTINATION /opt/share/packages)
 INSTALL(FILES ${CMAKE_SOURCE_COMMON_DIR}/data/image/${PKGNAME}.png DESTINATION ${ICONDIR})
 INSTALL(FILES ${CMAKE_SOURCE_COMMON_DIR}/data/image/${PKGNAME}.voice.png DESTINATION ${ICONDIR})
diff --git a/org.tizen.message.xml.emul b/org.tizen.message.xml.emul
new file mode 100755 (executable)
index 0000000..2fb2182
--- /dev/null
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="utf-8"?>
+<manifest xmlns="http://tizen.org/ns/packages" package="org.tizen.message" version="0.8.15" install-location="internal-only">
+       <label>Message</label>
+       <author email="jyjeong@samsung.com" href="www.samsung.com">Jaeyun Jeong</author>
+       <description>Message Application</description>
+       <ui-application appid="org.tizen.message" exec="/opt/apps/org.tizen.message/bin/message" nodisplay="false" multiple="false" type="capp" taskmanage="true">
+               <icon>org.tizen.message.png</icon>
+               <label>Messages</label>
+               <label xml:lang="en-us">Messages</label>
+               <label xml:lang="nl-nl">Berichten</label>
+               <label xml:lang="de-de">Nachrichten</label>
+               <label xml:lang="zh-hk">訊息</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">Mensajes</label>
+               <label xml:lang="el-gr">Μηνύματα</label>
+               <label xml:lang="it-it">Messaggi</label>
+               <label xml:lang="tr-tr">Mesajlar</label>
+               <label xml:lang="pt-pt">Mensagem</label>
+               <label xml:lang="fr-fr">Messages</label>
+               <label xml:lang="ko-kr">메시지</label>
+       </ui-application>
+       <ui-application appid="org.tizen.msg-ui-class0" exec="/opt/apps/org.tizen.message/bin/msg-ui-class0" nodisplay="true" multiple="false" type="capp" taskmanage="true">
+               <label>Msg-ui-class0</label>
+               <label xml:lang="en-us">Class0 message viewer</label>
+               <label xml:lang="ko-kr">메시지</label>
+       </ui-application>
+       <ui-application appid="msg-composer-efl" exec="/opt/ug/bin/msg-composer-efl" nodisplay="true" multiple="true" type="capp" taskmanage="false">
+               <icon>org.tizen.message.png</icon>
+               <label>Message</label>
+               <label xml:lang="en-us">Message</label>
+       </ui-application>
+</manifest>