From: Jiansong Jin Date: Wed, 5 Sep 2012 02:23:54 +0000 (+0900) Subject: Reduce binary size X-Git-Tag: 2.0_alpha~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8d311b8e9df07a255bace6eb32f14a7fff96e039;p=apps%2Fcore%2Fpreloaded%2Fgallery.git Reduce binary size Change-Id: Ie0ec62595a39d1c5706c44672b27e39af7ead35f --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 81dfb81..589f2f7 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,8 +4,8 @@ PROJECT(gallery C) SET(RSRC_DIR res) SET(EDC_DIR white_theme/edc) -SET(IMG_DIR white_theme/images) -SET(SOUND_DIR white_theme/sounds) +SET(IMG_DIR white_theme/edc/images) +SET(SOUND_DIR white_theme/edc/sounds) SET(SRCS src/gallery.c @@ -141,7 +141,6 @@ INSTALL(FILES ${CMAKE_BINARY_DIR}/${PKGNAME}.xml DESTINATION /opt/share/packages INSTALL(FILES ${CMAKE_SOURCE_DIR}/${RSRC_DIR}/icon/${PKGNAME}.png DESTINATION ${ICONDIR}) INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/res/white_theme/images DESTINATION ${RESDIR}/) -INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/res/white_theme/sounds DESTINATION ${RESDIR}/) # install content shortcut uri file INSTALL(FILES ${CMAKE_SOURCE_DIR}/${RSRC_DIR}/gallery.uri DESTINATION /opt/share/miregex ) diff --git a/packaging/org.tizen.gallery.spec b/packaging/org.tizen.gallery.spec index d884cdc..b896031 100755 --- a/packaging/org.tizen.gallery.spec +++ b/packaging/org.tizen.gallery.spec @@ -4,7 +4,7 @@ Name: org.tizen.gallery Summary: org.tizen.gallery UX -Version: 1.1.33 +Version: 1.1.34 Release: 1 Group: Applications License: Flora Software License @@ -72,7 +72,6 @@ ln -sf /usr/bin/ug-client /opt/ug/bin/gallery-efl %{_appdir}/org.tizen.gallery/res/locale/* /opt/share/icons/default/small/* %{_appdir}/org.tizen.gallery/res/images/* -%{_appdir}/org.tizen.gallery/res/sounds/* %{_appdir}/org.tizen.gallery/res/edje/* %{_appdir}/org.tizen.gallery/data /opt/share/packages/* diff --git a/res/white_theme/edc/images/00_grid_select_check.png b/res/white_theme/edc/images/00_grid_select_check.png new file mode 100755 index 0000000..4385567 Binary files /dev/null and b/res/white_theme/edc/images/00_grid_select_check.png differ diff --git a/res/white_theme/edc/images/00_title_btn_bg_press.png b/res/white_theme/edc/images/00_title_btn_bg_press.png new file mode 100755 index 0000000..90a71c7 Binary files /dev/null and b/res/white_theme/edc/images/00_title_btn_bg_press.png differ diff --git a/res/white_theme/edc/images/T01_Nocontents_picture.png b/res/white_theme/edc/images/T01_Nocontents_picture.png new file mode 100755 index 0000000..0f98480 Binary files /dev/null and b/res/white_theme/edc/images/T01_Nocontents_picture.png differ diff --git a/res/white_theme/edc/images/T01_btn_play.png b/res/white_theme/edc/images/T01_btn_play.png new file mode 100755 index 0000000..b25d19c Binary files /dev/null and b/res/white_theme/edc/images/T01_btn_play.png differ diff --git a/res/white_theme/edc/images/T01_controlbar_icon_cancel.png b/res/white_theme/edc/images/T01_controlbar_icon_cancel.png new file mode 100755 index 0000000..5cb7824 Binary files /dev/null and b/res/white_theme/edc/images/T01_controlbar_icon_cancel.png differ diff --git a/res/white_theme/edc/images/T01_controlbar_icon_done.png b/res/white_theme/edc/images/T01_controlbar_icon_done.png new file mode 100755 index 0000000..48483a5 Binary files /dev/null and b/res/white_theme/edc/images/T01_controlbar_icon_done.png differ diff --git a/res/white_theme/edc/images/T01_controlbar_icon_slideshow.png b/res/white_theme/edc/images/T01_controlbar_icon_slideshow.png new file mode 100755 index 0000000..79c2ebd Binary files /dev/null and b/res/white_theme/edc/images/T01_controlbar_icon_slideshow.png differ diff --git a/res/white_theme/edc/images/T01_grid_select_check.png b/res/white_theme/edc/images/T01_grid_select_check.png new file mode 100755 index 0000000..f131f47 Binary files /dev/null and b/res/white_theme/edc/images/T01_grid_select_check.png differ diff --git a/res/white_theme/edc/images/T01_img_pinch_zoomout.png b/res/white_theme/edc/images/T01_img_pinch_zoomout.png new file mode 100755 index 0000000..0f3bfd2 Binary files /dev/null and b/res/white_theme/edc/images/T01_img_pinch_zoomout.png differ diff --git a/res/white_theme/edc/images/T01_main_folder_bg.png b/res/white_theme/edc/images/T01_main_folder_bg.png new file mode 100755 index 0000000..16d1d59 Binary files /dev/null and b/res/white_theme/edc/images/T01_main_folder_bg.png differ diff --git a/res/white_theme/edc/images/T01_thumbs_bg.png b/res/white_theme/edc/images/T01_thumbs_bg.png new file mode 100755 index 0000000..14adbb1 Binary files /dev/null and b/res/white_theme/edc/images/T01_thumbs_bg.png differ diff --git a/res/white_theme/edc/sounds/S_Touch_30ms.wav b/res/white_theme/edc/sounds/S_Touch_30ms.wav new file mode 100755 index 0000000..99ba74d Binary files /dev/null and b/res/white_theme/edc/sounds/S_Touch_30ms.wav differ diff --git a/res/white_theme/images/00_grid_select_check.png b/res/white_theme/images/00_grid_select_check.png deleted file mode 100755 index 4385567..0000000 Binary files a/res/white_theme/images/00_grid_select_check.png and /dev/null differ diff --git a/res/white_theme/images/00_title_btn_bg_press.png b/res/white_theme/images/00_title_btn_bg_press.png deleted file mode 100755 index 90a71c7..0000000 Binary files a/res/white_theme/images/00_title_btn_bg_press.png and /dev/null differ diff --git a/res/white_theme/images/01_list_group_title_bg.png b/res/white_theme/images/01_list_group_title_bg.png deleted file mode 100755 index 83447f7..0000000 Binary files a/res/white_theme/images/01_list_group_title_bg.png and /dev/null differ diff --git a/res/white_theme/images/T01_Nocontents_picture.png b/res/white_theme/images/T01_Nocontents_picture.png deleted file mode 100755 index 0f98480..0000000 Binary files a/res/white_theme/images/T01_Nocontents_picture.png and /dev/null differ diff --git a/res/white_theme/images/T01_btn_play.png b/res/white_theme/images/T01_btn_play.png deleted file mode 100755 index b25d19c..0000000 Binary files a/res/white_theme/images/T01_btn_play.png and /dev/null differ diff --git a/res/white_theme/images/T01_controlbar_icon_back.png b/res/white_theme/images/T01_controlbar_icon_back.png deleted file mode 100755 index d708747..0000000 Binary files a/res/white_theme/images/T01_controlbar_icon_back.png and /dev/null differ diff --git a/res/white_theme/images/T01_controlbar_icon_done.png b/res/white_theme/images/T01_controlbar_icon_done.png deleted file mode 100755 index 48483a5..0000000 Binary files a/res/white_theme/images/T01_controlbar_icon_done.png and /dev/null differ diff --git a/res/white_theme/images/T01_controlbar_icon_slideshow.png b/res/white_theme/images/T01_controlbar_icon_slideshow.png deleted file mode 100755 index 79c2ebd..0000000 Binary files a/res/white_theme/images/T01_controlbar_icon_slideshow.png and /dev/null differ diff --git a/res/white_theme/images/T01_grid_select_check.png b/res/white_theme/images/T01_grid_select_check.png deleted file mode 100755 index f131f47..0000000 Binary files a/res/white_theme/images/T01_grid_select_check.png and /dev/null differ diff --git a/res/white_theme/images/T01_img_pinch_zoomout.png b/res/white_theme/images/T01_img_pinch_zoomout.png deleted file mode 100755 index 0f3bfd2..0000000 Binary files a/res/white_theme/images/T01_img_pinch_zoomout.png and /dev/null differ diff --git a/res/white_theme/images/T01_main_folder_bg.png b/res/white_theme/images/T01_main_folder_bg.png deleted file mode 100755 index 16d1d59..0000000 Binary files a/res/white_theme/images/T01_main_folder_bg.png and /dev/null differ diff --git a/res/white_theme/images/T01_thumbs_bg.png b/res/white_theme/images/T01_thumbs_bg.png deleted file mode 100755 index 14adbb1..0000000 Binary files a/res/white_theme/images/T01_thumbs_bg.png and /dev/null differ diff --git a/res/white_theme/images/gallery_list_icon_bookmark.png b/res/white_theme/images/gallery_list_icon_bookmark.png deleted file mode 100755 index 4a199bf..0000000 Binary files a/res/white_theme/images/gallery_list_icon_bookmark.png and /dev/null differ diff --git a/res/white_theme/sounds/S_Touch_30ms.wav b/res/white_theme/sounds/S_Touch_30ms.wav deleted file mode 100755 index 99ba74d..0000000 Binary files a/res/white_theme/sounds/S_Touch_30ms.wav and /dev/null differ diff --git a/ug/ug-gallery-efl/CMakeLists.txt b/ug/ug-gallery-efl/CMakeLists.txt index 6b13ee3..246b359 100755 --- a/ug/ug-gallery-efl/CMakeLists.txt +++ b/ug/ug-gallery-efl/CMakeLists.txt @@ -80,7 +80,7 @@ TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${pkgs_LDFLAGS} -lstdc++ ) # EDJE ADD_CUSTOM_COMMAND(OUTPUT gallery-efl.edj - COMMAND edje_cc -id ${CMAKE_CURRENT_SOURCE_DIR}/res/images + COMMAND edje_cc -id ${CMAKE_CURRENT_SOURCE_DIR}/res/edc/images ${CMAKE_CURRENT_SOURCE_DIR}/res/edc/gallery-efl.edc ${CMAKE_BINARY_DIR}/gallery-efl.edj DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/res/edc/gallery-efl.edc diff --git a/ug/ug-gallery-efl/res/edc/images/T01_Nocontents_picture.png b/ug/ug-gallery-efl/res/edc/images/T01_Nocontents_picture.png new file mode 100755 index 0000000..0f98480 Binary files /dev/null and b/ug/ug-gallery-efl/res/edc/images/T01_Nocontents_picture.png differ diff --git a/ug/ug-gallery-efl/res/edc/images/T01_btn_play.png b/ug/ug-gallery-efl/res/edc/images/T01_btn_play.png new file mode 100755 index 0000000..b25d19c Binary files /dev/null and b/ug/ug-gallery-efl/res/edc/images/T01_btn_play.png differ diff --git a/ug/ug-gallery-efl/res/edc/images/T01_grid_select_check.png b/ug/ug-gallery-efl/res/edc/images/T01_grid_select_check.png new file mode 100755 index 0000000..f131f47 Binary files /dev/null and b/ug/ug-gallery-efl/res/edc/images/T01_grid_select_check.png differ diff --git a/ug/ug-gallery-efl/res/edc/images/T01_main_folder_bg.png b/ug/ug-gallery-efl/res/edc/images/T01_main_folder_bg.png new file mode 100755 index 0000000..16d1d59 Binary files /dev/null and b/ug/ug-gallery-efl/res/edc/images/T01_main_folder_bg.png differ diff --git a/ug/ug-gallery-efl/res/edc/images/T01_thumbs_bg.png b/ug/ug-gallery-efl/res/edc/images/T01_thumbs_bg.png new file mode 100755 index 0000000..c71e2d3 Binary files /dev/null and b/ug/ug-gallery-efl/res/edc/images/T01_thumbs_bg.png differ diff --git a/ug/ug-gallery-efl/res/images/T01_Nocontents_picture.png b/ug/ug-gallery-efl/res/images/T01_Nocontents_picture.png deleted file mode 100755 index 0f98480..0000000 Binary files a/ug/ug-gallery-efl/res/images/T01_Nocontents_picture.png and /dev/null differ diff --git a/ug/ug-gallery-efl/res/images/T01_btn_play.png b/ug/ug-gallery-efl/res/images/T01_btn_play.png deleted file mode 100755 index b25d19c..0000000 Binary files a/ug/ug-gallery-efl/res/images/T01_btn_play.png and /dev/null differ diff --git a/ug/ug-gallery-efl/res/images/T01_grid_select_check.png b/ug/ug-gallery-efl/res/images/T01_grid_select_check.png deleted file mode 100755 index f131f47..0000000 Binary files a/ug/ug-gallery-efl/res/images/T01_grid_select_check.png and /dev/null differ diff --git a/ug/ug-gallery-efl/res/images/T01_main_folder_bg.png b/ug/ug-gallery-efl/res/images/T01_main_folder_bg.png deleted file mode 100755 index 16d1d59..0000000 Binary files a/ug/ug-gallery-efl/res/images/T01_main_folder_bg.png and /dev/null differ diff --git a/ug/ug-gallery-efl/res/images/T01_thumbs_bg.png b/ug/ug-gallery-efl/res/images/T01_thumbs_bg.png deleted file mode 100755 index c71e2d3..0000000 Binary files a/ug/ug-gallery-efl/res/images/T01_thumbs_bg.png and /dev/null differ