summaryrefslogtreecommitdiff
path: root/main/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'main/CMakeLists.txt')
-rwxr-xr-xmain/CMakeLists.txt177
1 files changed, 78 insertions, 99 deletions
diff --git a/main/CMakeLists.txt b/main/CMakeLists.txt
index 776e475..252c54c 100755
--- a/main/CMakeLists.txt
+++ b/main/CMakeLists.txt
@@ -13,61 +13,56 @@ SET(SRCS
# Entry point
src/ug-image-viewer.c
-# Common
- src/common/ivug-config.c
-
# View related
- src/view/ivug-main-view.c
- src/view/ivug-setas-view.c
- src/view/ivug-detail-info.c
+ src/view/ivug-main-view.cpp
+ src/view/ivug-main-view-toolbar.cpp
+ src/view/ivug-main-view-menu.cpp
+
+ src/view/ivug-name-view.c
src/view/ivug-details-view.c
- src/view/ivug-popup.c
- src/view/ivug-slider.c
- src/view/ivug-slider-item.c
- src/view/ivug-slider-slideshow.c
- src/view/ivug-slider-mouse.c
+ src/view/ivug-crop-view.cpp
+
+# SetAs View
+ src/view/ivug-setas-view.c
+ src/view/ivug-setas-view-wallpaper.cpp
+ src/view/ivug-setas-view-callerid.cpp
+
+# Slider
+ src/slider/ivug-slider.cpp
+ src/slider/ivug-slider-item.cpp
+ src/slider/ivug-slider-mouse.cpp
# Control related
- src/control/ivug-uuid.c
src/control/ivug-parameter.c
- src/control/ivug-ext-ug.c
- src/control/ivug-main.c
-
-# Helper files
- src/util/ivug-util.c
- src/util/ivug-file-info.c
- src/util/ivug-widget.c
- src/util/ivug-listpopup.c
-
-# Data & List management
- src/data/ivug-data.c
- src/data/ivug-data-list.c
- src/data/ivug-data-shuffle.c
- src/data/ivug-mediadata.c
- src/data/ivug-data-filter.c
-
-# Effect files
- src/effect/ivug-effect.c
- src/effect/ivug-slide.c
- src/effect/ivug-anim.c
+ src/control/ivug-context.c
+ src/control/ivug-filter.c
+ src/control/ivug-detail-info.c
+ src/control/ivug-setas.cpp
+ src/control/ivug-crop-ug.cpp
+ src/control/ivug-widget.c
+ src/control/ivug-selectioninfo.c
+ src/control/ivug-popup.c
)
# message("System = ${CMAKE_SYSTEM_VERSION}")
INCLUDE_DIRECTORIES(
- ${CMAKE_CURRENT_SOURCE_DIR}
- ${CMAKE_SOURCE_WIDGET_DIR}/include
- ${CMAKE_SOURCE_COMMON_DIR}/include
+ ${CMAKE_SOURCE_DIR}/include
+ ${IVUG_SOURCE_WIDGET_DIR}/include
+ ${IVUG_SOURCE_COMMON_DIR}/include
+ ${IVUG_SOURCE_MEDIA_DIR}/include
src
- src/common
- src/view
- src/util
+ src/include
src/control
- src/widget
- src/data
- src/effect/include
+ ${IVUG_SOURCE_FEATURE_DIR}/include
+ ${IVUG_SOURCE_SLIDESHOW_DIR}/include
+
+# Below include directory should be removed for make module more indepentatly
+ ${IVUG_SOURCE_SLIDESHOW_DIR}/src/effect/include
)
+MESSAGE("Checking " ${PROJECT_NAME} )
+
INCLUDE(FindPkgConfig)
pkg_check_modules(pkgs REQUIRED
elementary
@@ -78,27 +73,18 @@ pkg_check_modules(pkgs REQUIRED
ecore
ecore-file
ecore-imf
- ecore-input
ecore-x
+ ecore-input
ecore-evas
- efreet-mime
utilX
- ui-gadget
- libmedia-service
- aul
- libexif
- appcore-efl
- appcore-common
- bundle
- mm-fileinfo
+ ui-gadget-1
+ drm-client
icu-i18n
- icu-io
- icu-le
- icu-lx
- icu-uc
- pmapi
- appsvc
+ glib-2.0
vconf
+ capi-appfw-application
+ capi-appfw-app-manager
+ capi-system-runtime-info
)
@@ -106,28 +92,26 @@ FOREACH(flag ${pkgs_CFLAGS})
SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
ENDFOREACH(flag)
-if("${CMAKE_SYSTEM_VERSION}" STREQUAL "arm")
- pkg_check_modules(armpkgs REQUIRED
- )
-
- FOREACH(flag ${armpkgs_CFLAGS})
- SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
- ENDFOREACH(flag)
-
-endif()
+#if("${CMAKE_SYSTEM_VERSION}" STREQUAL "arm")
+# pkg_check_modules(armpkgs REQUIRED
+# )
+#
+# FOREACH(flag ${armpkgs_CFLAGS})
+# SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
+# ENDFOREACH(flag)
+#
+#endif()
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS}")
SET(CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS}")
-#message("CFLAGS="${CMAKE_C_FLAGS})
-#message("CXXFLAGS="${CMAKE_CXX_FLAGS})
-#message("LDFLAGS="${LDFLAGS})
+message("CFLAGS="${CMAKE_C_FLAGS})
+message("CXXFLAGS="${CMAKE_CXX_FLAGS})
+message("LDFLAGS="${LDFLAGS})
+message("LDFLAGS1="${pkgs_LDFLAGS})
-ADD_DEFINITIONS("-DPREFIX=\"${CMAKE_INSTALL_PREFIX}\"")
ADD_DEFINITIONS("-DUG_MODULE_API=__attribute__ \(\(visibility\(\"default\"\)\)\)")
ADD_DEFINITIONS("-DPACKAGE=\"${PROJECT_NAME}\"")
-ADD_DEFINITIONS("-DDATADIR=\"${CMAKE_DATA_DIR}\"")
-#ADD_DEFINITIONS("-D_USE_MEDIAINFO_STRINGID_")
#ADD_EXECUTABLE(${PROJECT_NAME} ${SRCS})
ADD_LIBRARY(${PROJECT_NAME} SHARED ${SRCS})
@@ -138,39 +122,32 @@ SET_TARGET_PROPERTIES(${PROJECT_NAME} PROPERTIES INSTALL_RPATH ${CMAKE_INSTALL_P
TARGET_LINK_LIBRARIES(${PROJECT_NAME}
${pkgs_LDFLAGS} ${armpkgs_LDFLAGS}
- -ldl
- ivug_common
+ "-ldl"
+ ivug_common ivug_widget ivug_medialist ivug_slideshow
)
INSTALL(TARGETS ${PROJECT_NAME} DESTINATION ${CMAKE_INSTALL_PREFIX}/lib)
-FUNCTION (BUILD_EDJ _in _out _base _dir)
- ADD_CUSTOM_TARGET(${_out}
- COMMAND
- edje_cc -id ${_base}/${_dir}
- ${CMAKE_CURRENT_SOURCE_DIR}/${_base}/${_in}
- ${CMAKE_CURRENT_SOURCE_DIR}/${_base}/${_out}
- DEPENDS
- ${CMAKE_CURRENT_SOURCE_DIR}/${_base}/${_in}
- )
- ADD_DEPENDENCIES(${PROJECT_NAME} ${_out})
- INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/${_base}/${_out} DESTINATION ${CMAKE_INSTALL_PREFIX}/res/edje/${PROJECT_NAME})
-ENDFUNCTION (BUILD_EDJ)
-
+SET(THEME_FOLDER images/theme)
+SET(THEME white)
# Build edc files
-BUILD_EDJ(ivug-base.edc ivug-base.edj layout images)
-BUILD_EDJ(ivug-main.edc ivug-main.edj layout images)
-BUILD_EDJ(ivug-icons.edc ivug-icons.edj layout icons)
-BUILD_EDJ(ivug-setas.edc ivug-setas.edj layout images)
-BUILD_EDJ(ivug-naviframe.edc ivug-naviframe.edj layout images/gray-theme)
-BUILD_EDJ(ivug-toolbar.edc ivug-toolbar.edj layout images/gray-theme)
-BUILD_EDJ(ivug-button.edc ivug-button.edj layout images/gray-theme)
-BUILD_EDJ(ivug-effect.edc ivug-effect.edj layout images)
-BUILD_EDJ(ivug-slider.edc ivug-slider.edj layout icons)
-BUILD_EDJ(ivug-details.edc ivug-details.edj layout images)
-BUILD_EDJ(ivug-selectioninfo.edc ivug-selectioninfo.edj layout images)
-BUILD_EDJ(ivug-genlist.edc ivug-genlist.edj layout/genlist images/gray-theme)
+BUILD_EDJ(ivug-base.edc ivug-base.edj layout images)
+BUILD_EDJ(ivug-main.edc ivug-main.edj layout images)
+BUILD_EDJ(ivug-effect.edc ivug-effect.edj layout images)
+BUILD_EDJ(ivug-details.edc ivug-details.edj layout images)
+BUILD_EDJ(ivug-selectioninfo.edc ivug-selectioninfo.edj layout images)
+BUILD_EDJ(ivug-popup.edc ivug-popup.edj layout images)
+BUILD_EDJ(ivug-crop-view.edc ivug-crop-view.edj layout crop-view)
+BUILD_EDJ(ivug-icons.edc ivug-icons.edj layout icons)
+BUILD_EDJ(ivug-slider.edc ivug-slider.edj layout icons)
+BUILD_EDJ(ivug-gengrid.edc ivug-gengrid.edj layout gengrid)
+
+BUILD_EDJ(ivug-setas.edc ivug-setas.edj layout ${THEME_FOLDER}/${THEME})
+BUILD_EDJ(ivug-naviframe.edc ivug-naviframe.edj layout ${THEME_FOLDER}/${THEME})
+BUILD_EDJ(ivug-name-view.edc ivug-name-view.edj layout ${THEME_FOLDER}/${THEME})
+BUILD_EDJ(ivug-genlist.edc ivug-genlist.edj layout/genlist ../${THEME_FOLDER}/${THEME})
+
# Install image files.
INSTALL(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/res/images/ DESTINATION ${CMAKE_INSTALL_PREFIX}/res/images/${PROJECT_NAME})
@@ -180,3 +157,5 @@ INSTALL(DIRECTORY DESTINATION ${CMAKE_DATA_DIR}/${PROJECT_NAME})
# i18n
ADD_SUBDIRECTORY(res/po)
+
+