diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/CMakeLists.txt | 24 | ||||
-rw-r--r-- | src/app/CMakeLists.txt | 56 | ||||
-rw-r--r-- | src/desktopfiles/CMakeLists.txt | 11 | ||||
-rw-r--r-- | src/gvcore/CMakeLists.txt | 90 | ||||
-rw-r--r-- | src/gvdirpart/CMakeLists.txt | 31 | ||||
-rw-r--r-- | src/gvimagepart/CMakeLists.txt | 26 | ||||
-rw-r--r-- | src/imageutils/CMakeLists.txt | 34 | ||||
-rw-r--r-- | src/imageutils/jpegcontent.cpp | 2 | ||||
-rw-r--r-- | src/tools/CMakeLists.txt | 6 | ||||
-rw-r--r-- | src/tsthread/CMakeLists.txt | 11 | ||||
-rw-r--r-- | src/updates/CMakeLists.txt | 11 |
11 files changed, 300 insertions, 2 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt new file mode 100644 index 0000000..3f4dd63 --- /dev/null +++ b/src/CMakeLists.txt @@ -0,0 +1,24 @@ +include_directories( + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_BINARY_DIR} + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${TDE_LIB_DIR} +) + + +##### subfolders + +add_subdirectory( app ) +add_subdirectory( desktopfiles ) +add_subdirectory( gvcore ) +add_subdirectory( gvdirpart ) +add_subdirectory( gvimagepart ) +add_subdirectory( imageutils ) +add_subdirectory( tools ) +add_subdirectory( tsthread ) +add_subdirectory( updates ) diff --git a/src/app/CMakeLists.txt b/src/app/CMakeLists.txt new file mode 100644 index 0000000..4fc06d9 --- /dev/null +++ b/src/app/CMakeLists.txt @@ -0,0 +1,56 @@ +include_directories( + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_CURRENT_BINARY_DIR} +) + + +##### libgwenshared (static) + +tde_add_library( gwenshared STATIC_PIC AUTOMOC + SOURCES vtabwidget.cpp +) + + +##### gwenview (shared) + +set( gwenview_SRCS + bookmarkowner.cpp + bookmarkviewcontroller.cpp + bookmarkdialogbase.ui + bookmarkdialog.cpp + configfileoperationspage.ui + configfullscreenpage.ui + configimagelistpage.ui + configimageviewpage.ui + configmiscpage.ui + configslideshowpage.ui + kipiinterface.cpp + mainwindow.cpp + metaedit.cpp + treeview.cpp + dirviewcontroller.cpp + configdialog.cpp + history.cpp + main.cpp +) + +tde_add_tdeinit_executable( gwenview AUTOMOC + SOURCES ${gwenview_SRCS} + LINK + gwenshared-static gwenviewcore-shared + tdeutils-shared ${LIBKIPI_LIBRARIES} + DESTINATION ${LIB_INSTALL_DIR}/trinity +) + + +##### other files + +install( + FILES gwenviewui.rc + DESTINATION ${DATA_INSTALL_DIR}/gwenview +) + +install( + FILES gwenview.xpm + DESTINATION ${SHARE_INSTALL_PREFIX}/pixmaps +) diff --git a/src/desktopfiles/CMakeLists.txt b/src/desktopfiles/CMakeLists.txt new file mode 100644 index 0000000..5352cbd --- /dev/null +++ b/src/desktopfiles/CMakeLists.txt @@ -0,0 +1,11 @@ +##### desktop files + +tde_create_translated_desktop( + SOURCE gwenview.desktop + DESTINATION ${XDG_APPS_INSTALL_DIR} +) + +tde_create_translated_desktop( + SOURCE konqgwenview.desktop + DESTINATION ${DATA_INSTALL_DIR}/konqueror/servicemenus +) diff --git a/src/gvcore/CMakeLists.txt b/src/gvcore/CMakeLists.txt new file mode 100644 index 0000000..079d86b --- /dev/null +++ b/src/gvcore/CMakeLists.txt @@ -0,0 +1,90 @@ +include_directories( + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_CURRENT_BINARY_DIR} +) + + +##### gwenviewcore (shared) + +set( gwenviewcore_SRCS + pngformattype.cpp + printdialog.cpp + printdialogpagebase.ui + thumbnailloadjob.cpp + imageview.cpp + imageviewcontroller.cpp + document.cpp + externaltoolmanager.cpp + externaltoolcontext.cpp + externaltoolaction.cpp + externaltooldialogbase.ui + externaltooldialog.cpp + fileviewcontroller.cpp + filethumbnailview.cpp + fileoperation.cpp + fileopobject.cpp + filethumbnailviewitem.cpp + filterbar.ui + qxcfi.cpp + archive.cpp + slideshow.cpp + filedetailview.cpp + filedetailviewitem.cpp + imagesavedialog.cpp + jpegformattype.cpp + mngformattype.cpp + xpm.cpp + documentimpl.cpp + documentloadingimpl.cpp + documentloadedimpl.cpp + documentjpegloadedimpl.cpp + documentanimatedloadedimpl.cpp + documentotherloadedimpl.cpp + busylevelmanager.cpp + cache.cpp + threadgate.cpp + imageviewtools.cpp + fullscreenbar.cpp + imageloader.cpp + cursortracker.cpp + captionformatter.cpp + thumbnaildetailsdialogbase.ui + thumbnaildetailsdialog.cpp + xcursor.cpp + mimetypeutils.cpp + bcgdialog.cpp + bcgdialogbase.ui + timeutils.cpp + clicklineedit.cpp + inputdialog.cpp + deletedialog.cpp + deletedialogbase.ui + miscconfig.kcfgc + slideshowconfig.kcfgc + fileoperationconfig.kcfgc + fullscreenconfig.kcfgc + imageviewconfig.kcfgc + fileviewconfig.kcfgc +) + +tde_add_library( gwenviewcore SHARED AUTOMOC + SOURCES ${gwenviewcore_SRCS} + LINK + tsthread-static gvimageutils-static + tdecore-shared tdeio-shared tdemediaplayer-shared + tdeparts-shared tdeprint-shared tdeui-shared + ${EXIV2_LIBRARIES} ${JPEG_LIBRARIES} ${MNG_LIBRARY} + ${PNG_LIBRARIES} ${XCURSOR_LIBRARIES} + VERSION 1.0.0 + DESTINATION ${LIB_INSTALL_DIR} +) + + +##### other files + +install( + FILES + miscconfig.kcfg slideshowconfig.kcfg fileoperationconfig.kcfg + fullscreenconfig.kcfg imageviewconfig.kcfg fileviewconfig.kcfg + DESTINATION ${KCFG_INSTALL_DIR} +) diff --git a/src/gvdirpart/CMakeLists.txt b/src/gvdirpart/CMakeLists.txt new file mode 100644 index 0000000..9837c29 --- /dev/null +++ b/src/gvdirpart/CMakeLists.txt @@ -0,0 +1,31 @@ +include_directories( + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_CURRENT_BINARY_DIR} +) + + +##### gvdirpart (shared) + +tde_add_kpart( libgvdirpart AUTOMOC + SOURCES gvdirpart.cpp gvdirpartconfig.kcfgc + LINK tdeparts-shared gwenviewcore-shared + DESTINATION ${LIB_INSTALL_DIR}/trinity +) + + +##### other files + +tde_create_translated_desktop( + SOURCE gvdirpart.desktop + DESTINATION ${SERVICES_INSTALL_DIR} +) + +install( + FILES gvdirpart.rc + DESTINATION ${DATA_INSTALL_DIR}/gvdirpart +) + +install( + FILES gvdirpartconfig.kcfg + DESTINATION ${KCFG_INSTALL_DIR} +) diff --git a/src/gvimagepart/CMakeLists.txt b/src/gvimagepart/CMakeLists.txt new file mode 100644 index 0000000..0c962fc --- /dev/null +++ b/src/gvimagepart/CMakeLists.txt @@ -0,0 +1,26 @@ +include_directories( + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_CURRENT_BINARY_DIR} +) + + +##### gvimagepart + +tde_add_kpart( libgvimagepart AUTOMOC + SOURCES gvimagepart.cpp + LINK tdeparts-shared gwenviewcore-shared + DESTINATION ${LIB_INSTALL_DIR}/trinity +) + + +##### other files + +tde_create_translated_desktop( + SOURCE gvimagepart.desktop + DESTINATION ${SERVICES_INSTALL_DIR} +) + +install( + FILES gvimagepart.rc gvimagepartpopup.rc + DESTINATION ${DATA_INSTALL_DIR}/gvimagepart +) diff --git a/src/imageutils/CMakeLists.txt b/src/imageutils/CMakeLists.txt new file mode 100644 index 0000000..9681a4a --- /dev/null +++ b/src/imageutils/CMakeLists.txt @@ -0,0 +1,34 @@ +include_directories( + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_CURRENT_BINARY_DIR} + ${EXIV2_INCLUDE_DIRS} + ${JPEG_INCLUDE_DIR} +) + + +##### gvimageutils (static) + +set( gvimageutils_SRCS imageutils.cpp jpegcontent.cpp scale.cpp transupp.c croppedqimage.cpp ) + +if( HAVE_X86_MMX ) + list( gvimageutils_SRCS APPEND _SRCS asm_scale.S ) + + # Force to use C compiler for asm_scale.S instead of ASM + # because it contains mixed code - ASM with C definitions + set_source_files_properties( asm_scale.S PROPERTIES LANGUAGE C ) + + add_compile_options( -DHAVE_X86_MMX ) +endif( ) + +tde_add_library( gvimageutils STATIC_PIC AUTOMOC + SOURCES ${gvimageutils_SRCS} + LINK tdecore-shared tdeio-shared ${EXIV2_LIBRARIES} ${JPEG_LIBRARIES} +) + + +##### testjpegcontent (executable) + +tde_add_check_executable( testjpegcontent AUTOMOC + SOURCES testjpegcontent.cpp + LINK gvimageutils-static +) diff --git a/src/imageutils/jpegcontent.cpp b/src/imageutils/jpegcontent.cpp index d94a32e..55bc384 100644 --- a/src/imageutils/jpegcontent.cpp +++ b/src/imageutils/jpegcontent.cpp @@ -17,9 +17,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#if defined(HAVE_CONFIG_H) #include "config.h" -#endif // System #include <math.h> diff --git a/src/tools/CMakeLists.txt b/src/tools/CMakeLists.txt new file mode 100644 index 0000000..98ddfa8 --- /dev/null +++ b/src/tools/CMakeLists.txt @@ -0,0 +1,6 @@ +##### desktop files + +tde_create_translated_desktop( + SOURCE gimp.desktop kolourpaint.desktop konqueror.desktop tiledwallpaper.desktop wallpaper.desktop + DESTINATION ${DATA_INSTALL_DIR}/gwenview/tools +) diff --git a/src/tsthread/CMakeLists.txt b/src/tsthread/CMakeLists.txt new file mode 100644 index 0000000..9d16a37 --- /dev/null +++ b/src/tsthread/CMakeLists.txt @@ -0,0 +1,11 @@ +include_directories( + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_CURRENT_BINARY_DIR} +) + + +##### tsthread (static) + +tde_add_library( tsthread STATIC_PIC AUTOMOC + SOURCES tsthread.cpp tswaitcondition.cpp +) diff --git a/src/updates/CMakeLists.txt b/src/updates/CMakeLists.txt new file mode 100644 index 0000000..ba99a56 --- /dev/null +++ b/src/updates/CMakeLists.txt @@ -0,0 +1,11 @@ +##### update files + +install( + FILES gwenview_thumbnail_size.upd gwenview_1.4_osdformat.upd + DESTINATION ${DATA_INSTALL_DIR}/tdeconf_update +) + +install( + PROGRAMS gwenview_thumbnail_size.sh gwenview_1.4_osdformat.sh + DESTINATION ${DATA_INSTALL_DIR}/tdeconf_update +) |