From 3a8255526bd011e5ed240d0ad28a0c4953bedc7b Mon Sep 17 00:00:00 2001 From: Denis Dolzhenko Date: Mon, 20 Mar 2017 11:33:12 +0200 Subject: [PATCH] TizenRefApp-8201 Remove spec file, cmake files, and private manifest. Change-Id: I399afce20e49f7834ef467646589b2d794276dd4 Signed-off-by: Denis Dolzhenko --- CMakeLists.txt | 112 ---------- message.efl.in | 68 ------ message.manifest-2.4.in | 12 -- message.manifest-3.0.in | 5 - packaging/message.spec | 154 ------------- res/CMakeLists.txt | 27 --- res/po/CMakeLists.txt | 23 -- run.sh | 430 ------------------------------------- tizen-manifest-private.xml | 170 --------------- 9 files changed, 1001 deletions(-) delete mode 100644 CMakeLists.txt delete mode 100644 message.efl.in delete mode 100755 message.manifest-2.4.in delete mode 100755 message.manifest-3.0.in delete mode 100755 packaging/message.spec delete mode 100644 res/CMakeLists.txt delete mode 100755 res/po/CMakeLists.txt delete mode 100755 run.sh delete mode 100644 tizen-manifest-private.xml diff --git a/CMakeLists.txt b/CMakeLists.txt deleted file mode 100644 index a79f4575..00000000 --- a/CMakeLists.txt +++ /dev/null @@ -1,112 +0,0 @@ -CMAKE_MINIMUM_REQUIRED(VERSION 2.8) -PROJECT(message CXX) - -#source -FILE(GLOB_RECURSE SRCS RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} - ${CMAKE_CURRENT_SOURCE_DIR}/src/*.cpp) - -#include file -INCLUDE_DIRECTORIES(${INCLUDE_DIRECTORIES} - ${CMAKE_CURRENT_SOURCE_DIR}/inc/ - ${CMAKE_CURRENT_SOURCE_DIR}/src/Common/SystemSettingsManager/inc/ - ${CMAKE_CURRENT_SOURCE_DIR}/src/Common/AppControl/inc/ - ${CMAKE_CURRENT_SOURCE_DIR}/src/Common/ContactManager/inc/ - ${CMAKE_CURRENT_SOURCE_DIR}/src/Common/Controller/inc/ - ${CMAKE_CURRENT_SOURCE_DIR}/src/Common/MsgEngine/inc/ - ${CMAKE_CURRENT_SOURCE_DIR}/src/Common/Utils/inc/ - ${CMAKE_CURRENT_SOURCE_DIR}/src/Common/View/inc/ - ${CMAKE_CURRENT_SOURCE_DIR}/src/Conversation/Utils/inc/ - ${CMAKE_CURRENT_SOURCE_DIR}/src/Conversation/Main/Controller/inc/ - ${CMAKE_CURRENT_SOURCE_DIR}/src/Conversation/Main/View/inc/ - ${CMAKE_CURRENT_SOURCE_DIR}/src/Conversation/Body/View/inc/ - ${CMAKE_CURRENT_SOURCE_DIR}/src/Conversation/Body/Controller/inc/ - ${CMAKE_CURRENT_SOURCE_DIR}/src/Conversation/Recipients/View/inc/ - ${CMAKE_CURRENT_SOURCE_DIR}/src/Conversation/Recipients/Controller/inc/ - ${CMAKE_CURRENT_SOURCE_DIR}/src/Conversation/ContactList/View/inc/ - ${CMAKE_CURRENT_SOURCE_DIR}/src/Conversation/ContactList/Controller/inc/ - ${CMAKE_CURRENT_SOURCE_DIR}/src/Conversation/ConvList/View/inc/ - ${CMAKE_CURRENT_SOURCE_DIR}/src/Conversation/ConvList/Controller/inc/ - ${CMAKE_CURRENT_SOURCE_DIR}/src/Conversation/AppControl/inc/ - ${CMAKE_CURRENT_SOURCE_DIR}/src/MsgThread/Controller/inc/ - ${CMAKE_CURRENT_SOURCE_DIR}/src/MsgThread/View/inc/ - ${CMAKE_CURRENT_SOURCE_DIR}/src/Settings/Controller/inc/ - ${CMAKE_CURRENT_SOURCE_DIR}/src/Settings/View/inc/ - ${CMAKE_CURRENT_SOURCE_DIR}/src/Viewer/Controller/inc/ - ${CMAKE_CURRENT_SOURCE_DIR}/src/Viewer/View/inc/ - ${CMAKE_CURRENT_SOURCE_DIR}/src/Viewer/Utils/inc/ -) - -INCLUDE(FindPkgConfig) -pkg_check_modules(pkgs REQUIRED - bundle - capi-appfw-application - capi-appfw-app-manager - capi-appfw-preference - capi-base-utils-i18n - capi-content-media-content - capi-content-mime-type - capi-media-sound-manager - capi-system-device - capi-system-info - capi-media-image-util - capi-media-metadata-extractor - capi-media-player - capi-system-system-settings - capi-telephony - capi-system-runtime-info - contacts-service2 - db-util - dlog - elementary - ecore - ecore-input - ecore-imf - ecore-file - eina - glib-2.0 - libexif - msg-service - capi-messaging-messages - notification - tapi - libxml-2.0 - libpng - efl-extension - storage - attach-panel - phonenumber-utils - calendar-service2 - dpm - vconf - feedback -) - -ADD_DEFINITIONS("-DAPP_DIR=\"${PKGDIR}\"") -ADD_DEFINITIONS("-DLOCALEDIR=\"${LOCALEDIR}\"") - -FOREACH(flag ${pkgs_CFLAGS}) - SET(EXTRA_CXXFLAGS "${EXTRA_CXXFLAGS} ${flag}") -ENDFOREACH(flag) - -SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${EXTRA_CXXFLAGS} -fPIE -Wall -std=c++11 -fpermissive -flto -fvisibility=hidden") -SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -pie") - -#Set executable -ADD_EXECUTABLE(${PROJECT_NAME} ${SRCS}) - -TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${pkgs_LDFLAGS}) - -ADD_SUBDIRECTORY(res) -if(DEFINED TIZEN_2_4) -CONFIGURE_FILE(message.manifest-2.4.in ${PKGNAME}.manifest) -CONFIGURE_FILE(message.efl.in ${PKGNAME}.efl) -else(DEFINED TIZEN_2_4) -CONFIGURE_FILE(message.manifest-3.0.in ${PKGNAME}.manifest) -endif(DEFINED TIZEN_2_4) - -INSTALL(TARGETS ${PROJECT_NAME} DESTINATION ${BINDIR}) -INSTALL(FILES tizen-manifest-private.xml DESTINATION ${MANIFESTDIR} RENAME ${PKGNAME}.xml) -if(DEFINED TIZEN_2_4) -INSTALL(FILES ${PKGNAME}.efl DESTINATION ${SMACKDIR}) -endif(DEFINED TIZEN_2_4) -INSTALL(FILES shared/res/message.png DESTINATION ${ICONDIR}) diff --git a/message.efl.in b/message.efl.in deleted file mode 100644 index b3d5ccad..00000000 --- a/message.efl.in +++ /dev/null @@ -1,68 +0,0 @@ -${PKGNAME} xorg rw---- ------ -${PKGNAME} xorg::screencapture r----- ------ -${PKGNAME} isf rwx--- ------ -${PKGNAME} efreet r-x--- ------ -${PKGNAME} system::use_internet rw---- ------ -${PKGNAME} contacts-service rwx--- ------ -${PKGNAME} calendar-service rwx--- ------ -${PKGNAME} sound_server rw---- ------ -${PKGNAME} mdm-server -w---- ------ -${PKGNAME} media-server rwx--- ------ -${PKGNAME} media-data::db rwx--- ------ -${PKGNAME} app-svc::db rw---- ------ -${PKGNAME} ims-service::db rw---- ------ -${PKGNAME} org.tizen.memo r-x--- ------ -${PKGNAME} org.tizen.indicator rwx--- ------ -${PKGNAME} org.tizen.contacts rwx--- ------ -${PKGNAME} org.tizen.gallery rwx--- ------ -${PKGNAME} org.tizen.calendar rwx--- ------ -${PKGNAME} org.tizen.music-player rwx--- ------ -${PKGNAME} org.tizen.setting rwx--- ------ -${PKGNAME} org.tizen.videos r----- ------ -${PKGNAME} org.tizen.data-provider-slave r----- ------ -${PKGNAME} data-provider-master rw---- ------ -${PKGNAME} sys-assert::info -wx--- ------ -${PKGNAME} system-server rw-a-- ------ -${PKGNAME} deviced rw-a-- ------ -${PKGNAME} deviced::power rw-a-- ------ -${PKGNAME} ug-launcher rwx--- ------ -${PKGNAME} data-provider-master::shortcut rw---- ------ -${PKGNAME} data-provider-master::shortcut.livebox -w---- ------ -${PKGNAME} tts-server rwx--- ------ -${PKGNAME} sdbd r-x--- ------ -${PKGNAME} telephony_framework::api_call rw---- ------ -${PKGNAME} telephony_framework::api_modem rw---- ------ -${PKGNAME} telephony_framework::api_network rw---- ------ -${PKGNAME} samsung-log-manager::use_app_feature_survey rw---- ------ -${PKGNAME} samsung-log-manager::report_app_status_survey rw---- ------ -${PKGNAME} data-provider-master::notification -w---- ------ -isf ${PKGNAME} --x--- ------ -aul ${PKGNAME} r-x--- ------ -system::use_internet ${PKGNAME} -w---- ------ -ui-gadget::client ${PKGNAME} rwx--l ------ -media-server ${PKGNAME} -w---- ------ -org.tizen.app-tray ${PKGNAME} r-x--- ------ -org.tizen.data-provider-slave ${PKGNAME} r-x--- ------ -org.tizen.quickpanel ${PKGNAME} rwx--- ------ -org.tizen.indicator ${PKGNAME} rwx--- ------ -org.tizen.lockscreen ${PKGNAME} r-x--- ------ -org.tizen.volume ${PKGNAME} --x--- ------ -org.tizen.app-selector ${PKGNAME} r-x--- ------ -org.tizen.data-provider-slave msg-service -w---- ------ -org.tizen.data-provider-slave msg-service::db rw---- ------ -${PKGNAME} msg-service::db rw---- ------ -${PKGNAME} sec_db rwx--- ------ -${PKGNAME} msg-service::wappush rw---- ------ -${PKGNAME} aul::launch --x--- ------ -${PKGNAME} msg-server rwx--- ------ -${PKGNAME} msg-service rwx--- ------ -msg-server ${PKGNAME} rwx--- ------ -msg-service ${PKGNAME} rwx--- ------ -${PKGNAME} org.tizen.setting::default-resources r-x--- ------ -${PKGNAME} tizen::vconf::public::r r----l ------ -${PKGNAME} tizen::vconf::setting::admin r----l ------ -${PKGNAME} tizen::vconf::platform::r r----- ------ -${PKGNAME} tizen::vconf::public::r::platform::rw rw---- ------ -${PKGNAME} tizen::vconf::message r----l ------ -${PKGNAME} ui-gadget::client rwx--- ------ -${PKGNAME} org.tizen.volume rwx--- ------ diff --git a/message.manifest-2.4.in b/message.manifest-2.4.in deleted file mode 100755 index d57f83e6..00000000 --- a/message.manifest-2.4.in +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - - - - - \ No newline at end of file diff --git a/message.manifest-3.0.in b/message.manifest-3.0.in deleted file mode 100755 index f23c9970..00000000 --- a/message.manifest-3.0.in +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/packaging/message.spec b/packaging/message.spec deleted file mode 100755 index ba86465c..00000000 --- a/packaging/message.spec +++ /dev/null @@ -1,154 +0,0 @@ -Name: org.tizen.message -Summary: Message application -Version: 0.0.2 -Release: 1 -Group: Applications/Messaging -License: Flora-1.1 -Source0: %{name}-%{version}.tar.gz - -%if "%{tizen_version}" == "3.0" -%define TIZEN_2_4_BUILD 0 -%else -%define TIZEN_2_4_BUILD 1 -%endif - -Requires(post): /bin/touch -Requires: pkgmgr -BuildRequires: pkgconfig(bundle) -BuildRequires: pkgconfig(capi-appfw-application) -BuildRequires: pkgconfig(capi-appfw-app-manager) -BuildRequires: pkgconfig(capi-base-utils-i18n) -BuildRequires: pkgconfig(capi-content-media-content) -BuildRequires: pkgconfig(capi-content-mime-type) -BuildRequires: pkgconfig(capi-media-sound-manager) -BuildRequires: pkgconfig(capi-media-image-util) -BuildRequires: pkgconfig(capi-media-metadata-extractor) -BuildRequires: pkgconfig(capi-media-player) -BuildRequires: pkgconfig(capi-system-device) -BuildRequires: pkgconfig(capi-system-info) -BuildRequires: pkgconfig(capi-system-system-settings) -BuildRequires: pkgconfig(capi-telephony) -BuildRequires: pkgconfig(contacts-service2) -BuildRequires: pkgconfig(db-util) -BuildRequires: pkgconfig(dlog) -BuildRequires: pkgconfig(elementary) -BuildRequires: pkgconfig(ecore) -BuildRequires: pkgconfig(ecore-input) -BuildRequires: pkgconfig(ecore-imf) -BuildRequires: pkgconfig(ecore-file) -BuildRequires: pkgconfig(ecore-evas) -BuildRequires: pkgconfig(eina) -BuildRequires: pkgconfig(evas) -BuildRequires: pkgconfig(glib-2.0) -BuildRequires: pkgconfig(libexif) -BuildRequires: pkgconfig(libxml-2.0) -BuildRequires: pkgconfig(libpng) -BuildRequires: pkgconfig(notification) -BuildRequires: pkgconfig(tapi) -BuildRequires: pkgconfig(notification) -BuildRequires: pkgconfig(efl-extension) -BuildRequires: pkgconfig(capi-system-runtime-info) -BuildRequires: pkgconfig(storage) -BuildRequires: pkgconfig(attach-panel) -BuildRequires: pkgconfig(phonenumber-utils) -BuildRequires: pkgconfig(calendar-service2) -BuildRequires: pkgconfig(dpm) -BuildRequires: pkgconfig(vconf) -BuildRequires: pkgconfig(vconf-internal-keys) -BuildRequires: pkgconfig(feedback) - -%if %TIZEN_2_4_BUILD == 0 -BuildRequires: pkgconfig(libtzplatform-config) -%endif -#private -BuildRequires: pkgconfig(msg-service) -#public -BuildRequires: pkgconfig(capi-messaging-messages) - -BuildRequires: cmake -BuildRequires: edje-tools -BuildRequires: gettext-tools - -%description -message lite application. - -%if %TIZEN_2_4_BUILD == 1 -%define PREFIX /usr/apps/%{name} -%define OPTPREFIX /opt/usr/apps/%{name} -%define DATADIR %{OPTPREFIX}/data -%define MANIFESTDIR /usr/share/packages -%define SMACKDIR /etc/smack/accesses.d -%define ICONDIR /usr/share/icons/default/small -%else -%define PREFIX %{TZ_SYS_RO_APP}/%{name} -%define MANIFESTDIR %{TZ_SYS_RO_PACKAGES} -%define ICONDIR %{TZ_SYS_RO_ICONS}/default/small -%endif -%define RESDIR %{PREFIX}/res -%define EDJDIR %{RESDIR}/edje -%define IMGDIR %{RESDIR}/images -%define BINDIR %{PREFIX}/bin -%define LIBDIR %{PREFIX}/lib -%define LOCALEDIR %{RESDIR}/locale - -%prep -%setup -q - -%build -export CXXFLAGS="$CXXFLAGS -DTIZEN_PRIVATE_API" -LDFLAGS+="-Wl,--rpath=%{PREFIX}/lib -Wl,--as-needed -Wl,--hash-style=both"; export LDFLAGS -cmake . \ - -DPREFIX=%{PREFIX} \ - %if %TIZEN_2_4_BUILD == 1 - -DDATADIR=%{DATADIR} \ - -DSMACKDIR=%{SMACKDIR} \ - -DTIZEN_2_4=%{TIZEN_2_4_BUILD} \ - %endif - -DPKGDIR=%{name} \ - -DIMGDIR=%{IMGDIR} \ - -DEDJDIR=%{EDJDIR} \ - -DPKGNAME=%{name} \ - -DBINDIR=%{BINDIR} \ - -DMANIFESTDIR=%{MANIFESTDIR} \ - -DEDJIMGDIR=%{EDJIMGDIR} \ - -DLIBDIR=%{LIBDIR} \ - -DICONDIR=%{ICONDIR} \ - -DLOCALEDIR=%{LOCALEDIR} - -make %{?jobs:-j%jobs} - -%install -rm -rf %{buildroot} -%make_install -%if %TIZEN_2_4_BUILD == 1 -mkdir -p %{buildroot}/%{OPTPREFIX}/shared/trusted -mkdir -p %{buildroot}/%{DATADIR} -%endif -mkdir -p %{buildroot}/%{LIBDIR} - - -%post -%if %TIZEN_2_4_BUILD == 1 -chown -R 5000:5000 %{DATADIR} -chown -R 5000:5000 %{OPTPREFIX}/shared/trusted -if [ -f /usr/lib/rpm-plugins/msm.so ] -then - find %{DATADIR} -exec chsmack -a 'org.tizen.message' {} \; -fi -%endif - -%files -%manifest %{name}.manifest -%license LICENSE.Flora -%defattr(-,root,root,-) -%dir -%if %TIZEN_2_4_BUILD == 1 -%{OPTPREFIX}/shared/trusted -%{DATADIR} -%{SMACKDIR}/%{name}.efl -%endif -%{LIBDIR} -%{BINDIR}/* -%{RESDIR}/* -%{MANIFESTDIR}/*.xml -%{ICONDIR}/* diff --git a/res/CMakeLists.txt b/res/CMakeLists.txt deleted file mode 100644 index ff027189..00000000 --- a/res/CMakeLists.txt +++ /dev/null @@ -1,27 +0,0 @@ - -SET(SRC_EDC ${CMAKE_CURRENT_SOURCE_DIR}/edje) -SET(SRC_IMG ${CMAKE_CURRENT_SOURCE_DIR}/images) -SET(SRC_EDJ_RES ${CMAKE_SOURCE_DIR}/edje) - -FILE(GLOB EDC_FILES ${SRC_EDC}/*.edc) - -FOREACH(FILE ${EDC_FILES}) - - get_filename_component(FILE_NAME ${FILE} NAME_WE) - - ADD_CUSTOM_TARGET(${FILE_NAME}.edj - COMMAND edje_cc - -id ${SRC_EDJ_RES}/images - -sd ${SRC_EDJ_RES}/sounds - ${SRC_EDC}/${FILE_NAME}.edc ${CMAKE_BINARY_DIR}/${FILE_NAME}.edj - DEPENDS ${SRC_EDC}/${FILE_NAME}.edc - ) - - ADD_DEPENDENCIES(${PROJECT_NAME} ${FILE_NAME}.edj) - INSTALL(FILES ${CMAKE_BINARY_DIR}/${FILE_NAME}.edj DESTINATION ${EDJDIR}) - -ENDFOREACH() - -INSTALL(DIRECTORY ${SRC_IMG}/ DESTINATION ${IMGDIR}) - -ADD_SUBDIRECTORY(po) diff --git a/res/po/CMakeLists.txt b/res/po/CMakeLists.txt deleted file mode 100755 index 7cf4fdf8..00000000 --- a/res/po/CMakeLists.txt +++ /dev/null @@ -1,23 +0,0 @@ -# for i18n - -FILE(GLOB POFILES *.po) - -SET(MSGFMT "/usr/bin/msgfmt") - -FOREACH(pofile ${POFILES}) - 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/run.sh b/run.sh deleted file mode 100755 index 79d39758..00000000 --- a/run.sh +++ /dev/null @@ -1,430 +0,0 @@ -#!/bin/bash - -usage() -{ -echo " -usage: sh run.sh [-h] [-b] [-i] [-q] [-r] [-t] [-d] [-A ARCH] - [--help] [--build] [--install] [--quick-install] [--run] [--debug] [--arch ARCH] - -optional arguments: - -h, --help show this help message and exit - -action: - -b --build build project - -i, --install install to device or emulator - -q, --quick-install quick installation(skips pkg_initdb). DO NOT use it when with manifest changed. Ignored in tizen-2.4 build - -r, --run run application. Don't use with -t option - -d, --debug install debuginfo and debugsource packages - -l, --local local incremental build(with --noinit --incremental kwys) - -build configuration options: - -A ARCH, --arch ARCH build target arch. Default - armv7l - -b 'Keys', --build 'Keys' build project with additional gbs build keys - !You must specify profiles profile.tizen_2.4 and profile.tizen_3.0 in .gbs.conf to use VERSION options. - !You may omit version and default profile will be picked. Notice, that target version is still tizen_3.0 in this case. - -v VERSION, --version VERSION build project for target version. Default build on tizen_3.0 - - examples: - 'run.sh -b -i -A armv7l' will build application and try to install it to target-device - 'run.sh -i -A armv7l[i586|aarch64]' will install latest build for tizen-2.4 device [emulator|tizen-3.0 device] - 'run.sh -b -A armv7l -v tizen_2.4[tizen_3.0]' will build for tizen-2.4[tizen-3.0] on armv7l arch -" -} - -##-------------- check options --------------## - -if [ -z "$1" ]; then usage; exit 0; fi - -BUILDOPTION=false -BUILDKEYS="" -INSTALLOPTION=false -RUNOPTION=false -DEBUGOPTION=false -PLATFORM=armv7l -LOCALBUILD=false -TIZENVERSION="default" -QUICKINSTALL=false - -##------------- project config -------------## -PREFIX="org.tizen" -INSTALLDIR=/usr/apps -HOMEDIR="$(getent passwd $USER | awk -F ':' '{print $6}')" -SDB=$HOMEDIR/tizen-sdk/tools/sdb -TEMPDIR=/home/rpms # for keeping rpm packages on device -GBSROOT=$HOMEDIR/GBS-ROOT -RPMSPATH=$GBSROOT/local/BUILD-ROOTS/scratch.$PLATFORM.0/home/abuild/rpmbuild/RPMS/$PLATFORM -##------------- project config -------------## - -SHORTOPTS="hA:b::irdnlvq" -LONGOPTS="arch:,build::,install,run,debug,help,local,version,quick-install:" -SCRIPTNAME=`basename $0` - -ARGS=$(getopt -q --options "$SHORTOPTS" --longoptions "$LONGOPTS" --name $SCRIPTNAME -- "$@") - -while true; do - case $1 in - -h|--help) - usage - exit 0 - ;; - -A|--arch) - val=`echo $2 | sed -e "s/-//g"` - if echo "$SHORTOPTS$LONGOPTS" | grep -q "$val"; then - echo "Wrong ARCH" - usage - exit 0; - fi - PLATFORM=$2 - shift - ;; - -v|--version) - val=`echo $2 | sed -e "s/-//g"` - if echo "$SHORTOPTS$LONGOPTS" | grep -q "$val"; then - echo "Wrong VERSION" - usage - exit 0; - fi - TIZENVERSION=$2 - if [ $TIZENVERSION != "default" ] && [ $TIZENVERSION != "tizen_3.0" ]; - then - GBSROOT="$HOMEDIR/GBS-ROOT-profile.$TIZENVERSION" - fi - RPMSPATH=$GBSROOT/local/BUILD-ROOTS/scratch.$PLATFORM.0/home/abuild/rpmbuild/RPMS/$PLATFORM - shift - ;; - -b|--build) - BUILDOPTION=true - key=`echo $2 | sed -e "s/-//g"` - if ! echo "$SHORTOPTS$LONGOPTS" | grep -q "$key"; then - BUILDKEYS=$2 - shift - fi - ;; - -i|--install) - INSTALLOPTION=true - ;; - -r|--run) - RUNOPTION=true - ;; - -d|--debug) - DEBUGOPTION=true - ;; - -q|--quick-install) - QUICKINSTALL=true - ;; - -l|--local) - LOCALBUILD=true - ;; - --) - break - ;; - *) - if [ ! -z "$1" ]; then usage; exit 0; fi - break - ;; - esac - shift -done - -echo "BUILDOPTION=$BUILDOPTION" -echo "BUILDKEYS=$BUILDKEYS" -echo "INSTALLOPTION=$INSTALLOPTION" -echo "RUNOPTION=$RUNOPTION" -echo "DEBUGOPTION=$DEBUGOPTION" -echo "PLATFORM=$PLATFORM" -echo "TIZENVERSION=$TIZENVERSION" -echo "QUICKINSTALL=$QUICKINSTALL" - -##------------------ spec ------------------## - -spec_file=`find -name *.spec` - -# org.tizen.message -APPNAME=`cat "$spec_file" | grep ^Name | awk '{print $2}'` -# 0.8.52 -VERSION=`cat "$spec_file" | grep ^Version | awk '{print $2}'` -# 1 -RELEASE=`cat "$spec_file" | grep ^Release | awk '{print $2}'` -# message -BINNAME=`echo $APPNAME | sed "s/$PREFIX\.//"` - -DEBUGSOURCEPKGNAME=$APPNAME-debugsource-$VERSION-$RELEASE.$PLATFORM -DEBUGINFOPKGNAME=$APPNAME-debuginfo-$VERSION-$RELEASE.$PLATFORM - -##-----------------------------------------## - -hasPrefix() -{ - if echo "$1" | grep -q "$PREFIX"; then - return 0; - else - return 1; - fi -} - -##--------------- sdb shell ---------------## - -SdbShell() -{ - ShowMessage "$1" -c yellow - $SDB shell su -c "$1" -} - -##--------------- color echo --------------## - -# arguments: -# $1 : message text -# -c|--color : text color (red, green, blue, yellow). Default value - blue -# -n|--noti : show GUI notification -# -s|--secondary : secondary message text -# example: ShowMessage "Message to show" -c red --noti -s "Some additional text" - -ShowMessage() -{ - show_noti=false - color_val="" - message_sec="" - message="" - - while [[ $# > 0 ]]; do - key="$1" - - case $key in - -c|--color) - color_val="$2" - shift # past argument - ;; - -s|--secondary) - message_sec="$2" - shift # past argument - ;; - -n|--noti) - show_noti=true - ;; - *) - message="$1" - ;; - esac - shift # past argument or value - done - - case "$color_val" in - "green") - color="32m" - noti_icon="-i $PWD/edje/images/icon_emotion_sunglasses.png" - ;; - "red") - color="31m" - noti_icon="-i $PWD/edje/images/icon_emotion_angry.png" - ;; - "blue") - color="34m" - ;; - "yellow") - color="33m" - ;; - *) - color="34m" - ;; - esac - - echo -e "\033[1;"$color$message $message_sec"\033[0m" - if [ $show_noti = "true" ]; then - notify-send -u critical $noti_icon "$message" "$message_sec" - fi -} - -##----------- check connection ------------## - -checkConnection() -{ - sdbstate=$($SDB get-state) - if [ $sdbstate = "unknown" ] - then - ShowMessage "Connection error." -c red --noti -s "Make sure that only one device or emulator is connected." - exit 0 - fi -} - -##---------------- build ------------------## - -build() -{ - ShowMessage "Building application..." - - gbsoutput="gbsoutput.log" - - if [ $LOCALBUILD = "true" ]; - then - BUILDKEYS="$BUILDKEYS --noinit --incremental" - fi - - if [ $TIZENVERSION != "default" ]; - then - BUILDKEYS+=" -P profile.$TIZENVERSION" - fi - - ShowMessage "gbs -v -d build -B $GBSROOT -A $PLATFORM --include-all --keep-packs $BUILDKEYS" - gbs -v -d build -B $GBSROOT -A $PLATFORM --include-all --keep-packs $BUILDKEYS 2>&1 | tee $gbsoutput - - if cat "$gbsoutput" | grep -q "gbs:info: Done"; then - ShowMessage "Build successfull!" -s "In glory of Tizen!" -c green --noti - rm -f $gbsoutput; - else - comp_error=$(cat "$gbsoutput" | grep "error:"| sed '/Bad exit status/,//d; s/\[.*\/\(.*\) error:/\\nerror in \1/;') - ShowMessage "Build failed!" -s "$comp_error" -c red --noti - rm -f $gbsoutput - exit 0; - fi -} - -##-----------------------------------------## - -# figure out which packages need to be installed - -initPackageList() -{ - packages_count=`cat "$spec_file" | grep -c %package` - - # if packages count more then 1 - if [ $packages_count -gt 1 ] - then - ShowMessage "When building the project is generated $packages_count (+ debuginfo and debugsource) RPM packages" - # case of multipackage project - PACKAGELIST=`cat "$spec_file" | grep %package | sed 's/-n//' |awk '{print $2}'` - else - ShowMessage "one package" - # only one package into package list - PACKAGELIST=$APPNAME - fi -} - -##------------ Uninstalling ---------------## - -uninstall() -{ - ShowMessage "Stopping old application..." - SdbShell "pkill -f $APPNAME" - - for current_package in $PACKAGELIST - do - ShowMessage "Uninstalling old application $current_package..." - if hasPrefix $current_package; then - # uninstall with pkgcmd - SdbShell "pkgcmd -q -u -n $current_package" - else - # uninstall with rpm - SdbShell "rpm -e --nodeps $current_package-*" - fi - done - - if [ $DEBUGOPTION = "true" ] - then - SdbShell "rpm -e --nodeps $APPNAME-debugsource-*" - SdbShell "rpm -e --nodeps $APPNAME-debuginfo-*" - fi -} - -##-------------- Pushing ------------------## - -push() -{ - SdbShell "mkdir -p $TEMPDIR/" - - for current_package_name in $PACKAGELIST - do - current_package=$current_package_name-$VERSION-$RELEASE.$PLATFORM.rpm - ShowMessage "Pushing the package $current_package to device ..." - $SDB push $RPMSPATH/$current_package $TEMPDIR/ - done - - if [ $DEBUGOPTION = "true" ] - then - $SDB push $RPMSPATH/$DEBUGSOURCEPKGNAME.rpm $TEMPDIR/ - $SDB push $RPMSPATH/$DEBUGINFOPKGNAME.rpm $TEMPDIR/ - fi -} - -##------------- Installing ----------------## - -install() -{ - for current_package_name in $PACKAGELIST - do - current_package=$current_package_name-$VERSION-$RELEASE.$PLATFORM.rpm - ShowMessage "Installing the package $current_package ..." - if [ $TIZENVERSION = "tizen_2.4" ]; - then - $SDB install $RPMSPATH/$current_package - else - # uninstall with rpm - SdbShell "rpm -ivh --force --nodeps $TEMPDIR/$current_package" - fi - done - - if [ $DEBUGOPTION = "true" ] - then - ShowMessage "Installing the package $DEBUGINFOPKGNAME.rpm ..." - SdbShell "rpm -i $TEMPDIR/$DEBUGINFOPKGNAME.rpm" - ShowMessage "Installing the package $DEBUGSOURCEPKGNAME.rpm ..." - SdbShell "rpm -i $TEMPDIR/$DEBUGSOURCEPKGNAME.rpm" - fi - - if [ $TIZENVERSION != "tizen_2.4" ] && [ $QUICKINSTALL = "false" ]; - then - SdbShell "pkg_initdb" - ShowMessage "pkg_initdb finished" -c green --noti - fi -} - -##--------------- Running ----------------## - -run() -{ - if hasPrefix $APPNAME; then - ABSOLUTEPATHTOAPP=$INSTALLDIR/$APPNAME/bin/$BINNAME - else - fullappname=`echo $APPNAME | sed "s/^/$PREFIX\./"` - ABSOLUTEPATHTOAPP=$INSTALLDIR/$fullappname/bin/$BINNAME - fi - - SdbShell "pkill -f $APPNAME" - ShowMessage "running the $ABSOLUTEPATHTOAPP..." - SdbShell "$ABSOLUTEPATHTOAPP" -} - -##-----------------------------------------## - -installApp() -{ - checkConnection - initPackageList - - if [ $TIZENVERSION != "tizen_2.4" ]; - then - $SDB root on - #uninstall - push - fi - - install - - if [ $TIZENVERSION != "tizen_2.4" ]; - then - $SDB root off - fi -} - -runApp() -{ - checkConnection - run -} - -##------------------ main -----------------## - -if [ $BUILDOPTION = "true" ]; then build; fi -if [ $INSTALLOPTION = "true" ]; then installApp; fi -if [ $RUNOPTION = "true" ]; then runApp; fi - -##-----------------------------------------## diff --git a/tizen-manifest-private.xml b/tizen-manifest-private.xml deleted file mode 100644 index 8c5404e8..00000000 --- a/tizen-manifest-private.xml +++ /dev/null @@ -1,170 +0,0 @@ - - - - Message Application - - - - /usr/share/icons/default/small/message.png - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - http://tizen.org/privilege/location - http://tizen.org/privilege/datasharing - http://tizen.org/privilege/network.get - http://tizen.org/privilege/wifidirect - http://tizen.org/privilege/callhistory.read - http://tizen.org/privilege/contact.write - http://tizen.org/privilege/power - http://tizen.org/privilege/content.write - http://tizen.org/privilege/message.write - http://tizen.org/privilege/push - http://tizen.org/privilege/account.read - http://tizen.org/privilege/externalstorage - http://tizen.org/privilege/recorder - http://tizen.org/privilege/packagemanager.info - http://tizen.org/privilege/mediastorage - http://tizen.org/privilege/internet - http://tizen.org/privilege/nfc.cardemulation - http://tizen.org/privilege/calendar.write - http://tizen.org/privilege/window.priority.set - http://tizen.org/privilege/volume.set - http://tizen.org/privilege/callhistory.write - http://tizen.org/privilege/alarm.set - http://tizen.org/privilege/call - http://tizen.org/privilege/email - http://tizen.org/privilege/contact.read - http://tizen.org/privilege/systemsettings - http://tizen.org/privilege/shortcut - http://tizen.org/privilege/keymanager - http://tizen.org/privilege/camera - http://tizen.org/privilege/appmanager.launch - http://tizen.org/privilege/led - http://tizen.org/privilege/display - http://tizen.org/privilege/alarm.get - http://tizen.org/privilege/network.profile - http://tizen.org/privilege/calendar.read - http://tizen.org/privilege/account.write - http://tizen.org/privilege/nfc - http://tizen.org/privilege/bluetooth - http://tizen.org/privilege/network.set - http://tizen.org/privilege/notification - http://tizen.org/privilege/externalstorage.appdata - http://tizen.org/privilege/haptic - http://tizen.org/privilege/download - http://tizen.org/privilege/message.read - http://tizen.org/privilege/telephony - - \ No newline at end of file -- 2.34.1