diff options
Diffstat (limited to 'tdecachegrind')
-rw-r--r-- | tdecachegrind/CMakeLists.txt | 21 | ||||
-rw-r--r-- | tdecachegrind/ConfigureChecks.cmake | 12 | ||||
-rw-r--r-- | tdecachegrind/converters/CMakeLists.txt | 15 | ||||
-rw-r--r-- | tdecachegrind/pics/CMakeLists.txt | 14 | ||||
-rw-r--r-- | tdecachegrind/pics/hicolor/CMakeLists.txt | 12 | ||||
-rw-r--r-- | tdecachegrind/tdecachegrind/CMakeLists.txt | 50 |
6 files changed, 124 insertions, 0 deletions
diff --git a/tdecachegrind/CMakeLists.txt b/tdecachegrind/CMakeLists.txt new file mode 100644 index 00000000..8c2da806 --- /dev/null +++ b/tdecachegrind/CMakeLists.txt @@ -0,0 +1,21 @@ +################################################# +# +# (C) 2012 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +include( ConfigureChecks.cmake ) + +set( KCACHEGRIND_VERSION "0.4.6kde" ) +configure_file( version.h.in version.h @ONLY ) +configure_file( tdecachegrind.spec.in kcachegrind.spec @ONLY ) +configure_file( tdecachegrind.lsm.in kcachegrind.lsm @ONLY ) + +add_subdirectory( tdecachegrind ) +add_subdirectory( pics ) +add_subdirectory( converters ) diff --git a/tdecachegrind/ConfigureChecks.cmake b/tdecachegrind/ConfigureChecks.cmake new file mode 100644 index 00000000..e9b5cc27 --- /dev/null +++ b/tdecachegrind/ConfigureChecks.cmake @@ -0,0 +1,12 @@ +################################################# +# +# (C) 2012 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +check_function_exists( mmap HAVE_MMAP ) diff --git a/tdecachegrind/converters/CMakeLists.txt b/tdecachegrind/converters/CMakeLists.txt new file mode 100644 index 00000000..03e86bcf --- /dev/null +++ b/tdecachegrind/converters/CMakeLists.txt @@ -0,0 +1,15 @@ +################################################# +# +# (C) 2012 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +install( PROGRAMS + hotshot2calltree op2calltree pprof2calltree + dprof2calltree memprof2calltree + DESTINATION ${BIN_INSTALL_DIR} ) diff --git a/tdecachegrind/pics/CMakeLists.txt b/tdecachegrind/pics/CMakeLists.txt new file mode 100644 index 00000000..ee294461 --- /dev/null +++ b/tdecachegrind/pics/CMakeLists.txt @@ -0,0 +1,14 @@ +################################################# +# +# (C) 2012 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_subdirectory( hicolor ) + +tde_install_icons( DESTINATION ${DATA_INSTALL_DIR}/tdecachegrind/icons ) diff --git a/tdecachegrind/pics/hicolor/CMakeLists.txt b/tdecachegrind/pics/hicolor/CMakeLists.txt new file mode 100644 index 00000000..1c162a16 --- /dev/null +++ b/tdecachegrind/pics/hicolor/CMakeLists.txt @@ -0,0 +1,12 @@ +################################################# +# +# (C) 2012 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +tde_install_icons( DESTINATION ${DATA_INSTALL_DIR}/tdecachegrind/icons ) diff --git a/tdecachegrind/tdecachegrind/CMakeLists.txt b/tdecachegrind/tdecachegrind/CMakeLists.txt new file mode 100644 index 00000000..cd284c36 --- /dev/null +++ b/tdecachegrind/tdecachegrind/CMakeLists.txt @@ -0,0 +1,50 @@ +################################################# +# +# (C) 2012 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +include_directories( + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_BINARY_DIR} + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### other data ################################ + +tde_install_icons( ) +install( FILES tdecachegrind.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} ) +install( FILES tdecachegrindui.rc tips DESTINATION ${DATA_INSTALL_DIR}/kcachegrind ) +install( FILES x-tdecachegrind.desktop DESTINATION ${MIME_INSTALL_DIR}/application ) + + +##### tdecachegrind (executable) ################## + +tde_add_executable( tdecachegrind AUTOMOC + SOURCES + functionselectionbase.ui stackselectionbase.ui partselectionbase.ui + configdlgbase.ui loader.cpp cachegrindloader.cpp treemap.cpp pool.cpp + main.cpp configuration.cpp functionselection.cpp coverage.cpp + partgraph.cpp toplevel.cpp stackselection.cpp stackbrowser.cpp + subcost.cpp tracedata.cpp partselection.cpp configdlg.cpp + utils.cpp fixcost.cpp traceitemview.cpp instrview.cpp tabview.cpp + sourceview.cpp callmapview.cpp callview.cpp coverageview.cpp + costtypeview.cpp partview.cpp listutils.cpp costtypeitem.cpp + multiview.cpp callitem.cpp coverageitem.cpp sourceitem.cpp + costlistitem.cpp partlistitem.cpp functionitem.cpp instritem.cpp + stackitem.cpp callgraphview.cpp + LINK kio-shared + DESTINATION ${BIN_INSTALL_DIR} +) |