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

List:       kde-commits
Subject:    quality/krazy2db
From:       Bertjan Broeksema <broeksema () kde ! org>
Date:       2010-06-22 20:12:19
Message-ID: 20100622201219.F2EF2AC8E0 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1141457 by bbroeksema:

Reorganize the code a bit

- add a src dir.
- move storage into the src dir
- rename the tool from xmltodb to krazy2db
- get rid of the seperate sloctodb dir


 M  +1 -49     CMakeLists.txt  
 D             sloctodb/example.sloc  
 D             sloctodb/main.cpp  
 A             src (directory)  
 A             src/CMakeLists.txt  
 A             src/main.cpp   xmltodb/main.cpp#1141449 [License: GPL (v2+)]
 A             src/resultanalyzer.cpp   xmltodb/resultanalyzer.cpp#1141449 [License: GPL (v2+)]
 A             src/resultanalyzer.h   xmltodb/resultanalyzer.h#1141449 [License: GPL (v2+)]
 A             src/slocparser.cpp   xmltodb/slocparser.cpp#1141449 [License: UNKNOWN]
 A             src/slocparser.h   xmltodb/slocparser.h#1141449 [License: UNKNOWN]
 A             src/storage (directory)  
 A             src/storage/database.cpp   storage/database.cpp#1141447 [License: GPL (v2+)]
 D             storage/database.cpp  
 D             storage/database.h  
 D             storage/dbconfig.cpp  
 D             storage/dbconfig.h  
 D             storage/dbconfigpostgres.cpp  
 D             storage/dbconfigpostgres.h  
 D             storage/dbconfigsqlite.cpp  
 D             storage/dbconfigsqlite.h  
 D             storage/plugin.cpp  
 D             storage/plugin.h  
 D             storage/tool.cpp  
 D             storage/tool.h  
 M  +2 -2      store-results.sh  
 D             xmltodb/main.cpp  
 D             xmltodb/resultanalyzer.cpp  
 D             xmltodb/resultanalyzer.h  
 D             xmltodb/slocparser.cpp  
 D             xmltodb/slocparser.h  
 D             xmltodb/toollistparser.cpp  
 D             xmltodb/toollistparser.h  
 D             xmltodb/toolrunresultparser.cpp  
 D             xmltodb/toolrunresultparser.h  
 D             xmltodb/xmldocument.cpp  
 D             xmltodb/xmldocument.h  
 D             xmltodb/xmlparser.cpp  
 D             xmltodb/xmlparser.h  


--- trunk/quality/krazy2db/CMakeLists.txt #1141456:1141457
@@ -23,52 +23,4 @@
                                  LIBRARY DESTINATION lib${LIB_SUFFIX}
                                  ARCHIVE DESTINATION lib${LIB_SUFFIX})
 
-include_directories(
-  ${QT_INCLUDE_DIR}
-  ${CMAKE_SOURCE_DIR}
-)
-
-set(storage_SRCS
-  storage/plugin.cpp
-  storage/tool.cpp
-  storage/dbconfig.cpp
-  storage/dbconfigsqlite.cpp
-  storage/dbconfigpostgres.cpp
-  storage/database.cpp
-)
-
-add_library(storage ${storage_SRCS})
-target_link_libraries(storage
-  ${QT_QTCORE_LIBRARY}
-  ${QT_QTSQL_LIBRARY}
-  storage
-)
-
-set(xmltodb_SRCS
-  xmltodb/slocparser.cpp
-  xmltodb/toolrunresultparser.cpp
-  xmltodb/resultanalyzer.cpp
-  xmltodb/xmldocument.cpp
-  xmltodb/xmlparser.cpp
-  xmltodb/toollistparser.cpp
-  xmltodb/main.cpp
-)
-
-add_executable(xmltodb ${xmltodb_SRCS})
-target_link_libraries(xmltodb
-  ${QT_QTXMLPATTERNS_LIBRARY}
-  storage
-)
-
-#set(sloctodb_SRCS
-#  sloctodb/slocparser.cpp
-#  sloctodb/main.cpp
-#)
-
-#add_executable(sloctodb ${sloctodb_SRCS})
-#target_link_libraries(sloctodb
-#  storage
-#)
-
-
-
+add_subdirectory(src)
--- trunk/quality/krazy2db/store-results.sh #1141456:1141457
@@ -1,6 +1,6 @@
 #!/bin/bash
 
-G_XMLTODB_EXEC=build/xmltodb
+G_XMLTODB_EXEC=./build/src/krazy2db
 
 # First things first, was the tool build?
 if [[ ! -x $G_XMLTODB_EXEC ]]; then
@@ -30,7 +30,7 @@
 for module in $1/*; do
   if [[ -d $module ]]; then
     echo "Reading results of $module...";
-    ./build/xmltodb $module $2
+    $G_XMLTODB_EXEC $module $2
   fi
 done
 
[prev in list] [next in list] [prev in thread] [next in thread] 

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