[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    koffice/tools/kfile-plugins
From:       Laurent Montel <montel () kde ! org>
Date:       2007-04-19 9:59:08
Message-ID: 1176976748.939566.2986.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 655773 by mlaurent:

Now abiword kfile plugins was ported to strigi api


 M  +1 -1      CMakeLists.txt  
 M  +9 -12     abiword/CMakeLists.txt  
 D             abiword/Messages.sh  
 AM            abiword/abiwordthroughanalyzer.cpp   [License: GPL]
 D             abiword/kfile_abiword.cpp  
 D             abiword/kfile_abiword.desktop  
 D             abiword/kfile_abiword.h  


--- trunk/koffice/tools/kfile-plugins/CMakeLists.txt #655772:655773
@@ -1,3 +1,3 @@
 add_subdirectory( koffice )
 add_subdirectory( gnumeric )
-#add_subdirectory( abiword )
+add_subdirectory( abiword )
--- trunk/koffice/tools/kfile-plugins/abiword/CMakeLists.txt #655772:655773
@@ -1,18 +1,15 @@
 include_directories( ${KOFFICECORE_INCLUDES})
+# build the analyzer as a module
+kde4_add_library(abiword MODULE abiwordthroughanalyzer.cpp)
 
-set(kfile_abiword_SRCS kfile_abiword.cpp )
+# link with the required libraries
+target_link_libraries(abiword ${STREAMANALYZER_LIBRARY} ${KDE4_KIO_LIBS})
 
-kde4_automoc(${kfile_abiword_SRCS})
+# adjust the name so the module is recognized as a strigi plugin
+set_target_properties(abiword PROPERTIES
+    PREFIX strigita_)
 
-kde4_add_plugin(kfile_abiword ${kfile_abiword_SRCS})
+# install the module in the right directory so it is picked up
+install(TARGETS abiword LIBRARY DESTINATION ${LIB_INSTALL_DIR}/strigi)
 
 
-
-target_link_libraries(kfile_abiword  ${KDE4_KDECORE_LIBS} kofficecore )
-
-install(TARGETS kfile_abiword  DESTINATION ${PLUGIN_INSTALL_DIR})
-
-
-########### install files ###############
-
-install( FILES  kfile_abiword.desktop  DESTINATION ${SERVICES_INSTALL_DIR})
** trunk/koffice/tools/kfile-plugins/abiword/abiwordthroughanalyzer.cpp #property svn:eol-style
   + native
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic