summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorKim Kibum <kb0929.kim@samsung.com>2012-06-08 05:54:17 (GMT)
committerKim Kibum <kb0929.kim@samsung.com>2012-06-08 05:54:17 (GMT)
commitd14111b6d5b7914cc0742d1d5dcc415cd95c7bb1 (patch)
treefc8a938536667eb8bfb8d56fb524e2e077d3bf89 /CMakeLists.txt
parent664bf974ba4e7c3ed0b9dbd16eab4e14f813d6a4 (diff)
downloadug-myfile-efl-d14111b6d5b7914cc0742d1d5dcc415cd95c7bb1.zip
ug-myfile-efl-d14111b6d5b7914cc0742d1d5dcc415cd95c7bb1.tar.gz
ug-myfile-efl-d14111b6d5b7914cc0742d1d5dcc415cd95c7bb1.tar.bz2
apply FSL(Flora Software License)
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt99
1 files changed, 99 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
new file mode 100644
index 0000000..136fb81
--- /dev/null
+++ b/CMakeLists.txt
@@ -0,0 +1,99 @@
+CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
+PROJECT(ug-myfile-efl C)
+
+
+####################################
+########## SET Directory ###########
+####################################
+SET(MFUGNAME ug-myfile-efl)
+SET(UGINCLUDE ${CMAKE_CURRENT_SOURCE_DIR}/src/include)
+
+SET(UG-SRC-DIR ${CMAKE_CURRENT_SOURCE_DIR}/src)
+SET(UG-UTILITY-DIR ${UG-SRC-DIR}/common)
+SET(UG-FS-DIR ${UG-UTILITY-DIR}/file-system)
+SET(UG-WIDGET-DIR ${UG-SRC-DIR}/widget)
+
+SET(PREFIX "/opt/ug")
+SET(LIBDIR "${PREFIX}/lib")
+SET(RESDIR "${PREFIX}/res")
+SET(LOCALEDIR "${RESDIR}/locale")
+SET(IMAGEDIR "${RESDIR}/images/${MFUGNAME}")
+SET(EDJDIR "${RESDIR}/edje/${MFUGNAME}")
+
+
+SET(SRCS
+ ${UG-SRC-DIR}/mf-ug-main.c
+ ${UG-UTILITY-DIR}/mf-ug-util.c
+ ${UG-UTILITY-DIR}/mf-ug-cb.c
+ ${UG-UTILITY-DIR}/mf-ug-fm-svc-wapper.c
+ ${UG-UTILITY-DIR}/mf-ug-inotify-handle.c
+ ${UG-UTILITY-DIR}/mf-ug-list-play.c
+########### winset wrap ##########
+ ${UG-WIDGET-DIR}/mf-ug-navi-bar.c
+ ${UG-WIDGET-DIR}/mf-ug-genlist.c
+ ${UG-WIDGET-DIR}/mf-ug-popup.c
+ ${UG-WIDGET-DIR}/mf-ug-ctrl-bar.c
+ ${UG-WIDGET-DIR}/mf-ug-tab-bar.c
+################ file system #########
+ ${UG-FS-DIR}/mf-ug-file-attr.c
+ ${UG-FS-DIR}/mf-ug-fs-oper.c
+ )
+
+INCLUDE_DIRECTORIES(${UGINCLUDE})
+
+INCLUDE(FindPkgConfig)
+pkg_check_modules(ug_pkgs REQUIRED
+ecore-x ecore-evas
+elementary
+vconf
+glib-2.0
+mm-common
+mm-sound
+mm-player
+ui-gadget
+libmedia-service
+aul
+dlog
+)
+
+FOREACH(flag ${ug_pkgs_CFLAGS})
+ SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
+ENDFOREACH(flag)
+
+SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS}")
+
+ADD_DEFINITIONS("-DPREFIX=\"${CMAKE_INSTALL_PREFIX}\"")
+ADD_DEFINITIONS("-DFACTORYFS=\"$ENV{FACTORYFS}\"")
+
+
+ADD_DEFINITIONS("-DLIST_PLAY_SUPPORT")
+ADD_DEFINITIONS("-DUG_THUMB_REAL_TIME_UPDATE")
+ADD_DEFINITIONS("-DUG_LAUNCH_AT_MASS_STORAGE_MODE")
+ADD_DEFINITIONS("-DMF_UG_FEATURE_NEW_UX")
+
+ADD_LIBRARY(${MFUGNAME} SHARED ${SRCS})
+TARGET_LINK_LIBRARIES(${MFUGNAME} ${ug_pkgs_LDFLAGS} dl)
+
+INSTALL(TARGETS ${MFUGNAME} LIBRARY DESTINATION ${LIBDIR})
+
+
+# edje
+ADD_CUSTOM_TARGET(ug_navibar_layout.edj
+ COMMAND edje_cc -id ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/ug_navibar_layout.edc
+ ${CMAKE_BINARY_DIR}/ug_navibar_layout.edj
+ DEPENDS ${CMAKE_SOURCE_DIR}/ug_navibar_layout.edc
+)
+
+ADD_DEPENDENCIES(${PROJECT_NAME} ug_navibar_layout.edj)
+
+INSTALL(FILES ${CMAKE_BINARY_DIR}/ug_navibar_layout.edj DESTINATION ${EDJDIR})
+
+
+# images
+INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/icons/ DESTINATION ${IMAGEDIR} FILES_MATCHING PATTERN "*.png"
+PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_WRITE GROUP_EXECUTE WORLD_READ WORLD_WRITE WORLD_EXECUTE)
+
+# i18n
+ADD_SUBDIRECTORY(po)
+