kdesupport/kdewin32
Ralf Habacker
Ralf.Habacker at freenet.de
Mon Jun 8 02:42:05 CEST 2009
SVN commit 978731 by habacker:
added LinkFile class in KDE::Windows namespace from kdebase/runtime/platform/win/kwinstartmenu.
This should help to avoid redundant shell link file code in kdelibs and other packages.
KWinstartmenu will be refactored to use this code later.
Because noone uses this code yet there is room for refactoring if required when integration into
the ksycoca code.
CCMAIL:kde-windows at kde.org
M +11 -4 CMakeLists.txt
A include/KDE (directory)
A include/KDE/Windows (directory)
A include/KDE/Windows/LinkFile
A include/kdewin (directory)
A include/kdewin/linkfile.h [License: LGPL (v2)]
M +3 -0 readme.txt
A src/linkfile.cpp [License: LGPL (v2+)]
--- trunk/kdesupport/kdewin32/CMakeLists.txt #978730:978731
@@ -1,6 +1,6 @@
set (NAME kdewin)
set (KDEWIN_VERSION 0x000400)
-set (KDEWIN_VERSION_STR 0.4.0)
+set (KDEWIN_VERSION_STR 0.4.1)
# stay in sync with kdelibs
cmake_minimum_required(VERSION 2.6.2)
@@ -27,6 +27,7 @@
${kdewin_SOURCE_DIR}/include/kdewin
${kdewin_BINARY_DIR}
${kdewin_BINARY_DIR}/include
+ ${QT_INCLUDES}
)
if(MINGW)
@@ -104,6 +105,10 @@
)
endif(MSVC)
+set(kdewin_SRCS
+ src/linkfile.cpp
+)
+
# for compatibility
set(CMAKE_DEBUG_POSTFIX "d")
add_library(kdewin32 SHARED ${win_LIB_SRCS})
@@ -126,8 +131,8 @@
)
# end for compatibiliy
-add_library(kdewin SHARED ${win_LIB_SRCS})
-target_link_libraries(kdewin advapi32 shell32 ws2_32)
+add_library(kdewin SHARED ${win_LIB_SRCS} ${kdewin_SRCS})
+target_link_libraries(kdewin advapi32 shell32 ws2_32 ${QT_QTCORE_LIBRARIES})
set_target_properties(kdewin PROPERTIES DEFINE_SYMBOL MAKE_KDEWIN_LIB )
set_target_properties(kdewin PROPERTIES VERSION ${KDEWIN_VERSION_STR} )
@@ -147,7 +152,9 @@
install(DIRECTORY include/${_incDirPrefix} DESTINATION include PATTERN ".svn" EXCLUDE)
install(FILES include/fixwinh.h include/kde_file_win.h DESTINATION include)
-install(FILES ${CMAKE_BINARY_DIR}/include/kdewin_export.h DESTINATION include)
+install(DIRECTORY include/kdewin DESTINATION include PATTERN ".svn" EXCLUDE)
+install(DIRECTORY include/KDE DESTINATION include PATTERN ".svn" EXCLUDE)
+install(FILES ${CMAKE_BINARY_DIR}/include/kdewin_export.h DESTINATION include)
install(FILES readme.txt DESTINATION doc/${NAME}-${KDEWIN_VERSION_STR})
if(MINGW)
install(DIRECTORY include/directx DESTINATION include/${_incDirPrefix} PATTERN ".svn" EXCLUDE)
--- trunk/kdesupport/kdewin32/readme.txt #978730:978731
@@ -2,6 +2,9 @@
history
-------
+version 0.4.1
+- added class LinkFile from kdebase/runtime/platform/win/kwinstartmenu to be usable in more kde code
+
version 0.4.0
- removed 32 from project name to have room for furture 64 bit versions too
- renamed WINPOSIX_EXPORT, winposix_export.h to KDEWIN_EXPORT, kdewin_export.h
More information about the Kde-windows
mailing list