Commit 59b73f3adfb8d2d597b722fc869ca2fcdf11753f
- Diff rendering mode:
- inline
- side by side
TODOFILES
(47 / 47)
|   | |||
| 91 | 91 | - src/streamanalyzer/programthroughanalyzer.h | |
| 92 | 92 | ? src/streamanalyzer/tests/indextests.cpp | |
| 93 | 93 | ? src/streamanalyzer/tests/querytests.cpp | |
| 94 | # what to do with xesam queries ? | ||
| 95 | ? src/streamanalyzer/xesam/location.hh | ||
| 96 | ? src/streamanalyzer/xesam/position.hh | ||
| 97 | ? src/streamanalyzer/xesam/stack.hh | ||
| 98 | ? src/streamanalyzer/xesam/StrigiQueryBuilder.cc | ||
| 99 | ? src/streamanalyzer/xesam/StrigiQueryBuilder.h | ||
| 100 | ? src/streamanalyzer/xesam/test.cpp | ||
| 101 | ? src/streamanalyzer/xesam/testqueries/africa2.txt | ||
| 102 | ? src/streamanalyzer/xesam/testqueries/africa.txt | ||
| 103 | ? src/streamanalyzer/xesam/testqueries/helloworld2.txt | ||
| 104 | ? src/streamanalyzer/xesam/testqueries/helloworld3.txt | ||
| 105 | ? src/streamanalyzer/xesam/testqueries/helloworld.txt | ||
| 106 | ? src/streamanalyzer/xesam/testqueries/hendrix2.txt | ||
| 107 | ? src/streamanalyzer/xesam/testqueries/hendrix.txt | ||
| 108 | ? src/streamanalyzer/xesam/testqueries/hendrix.xml | ||
| 109 | ? src/streamanalyzer/xesam/testqueries/inSet.xml | ||
| 110 | ? src/streamanalyzer/xesam/testqueries/irc_oever.xml | ||
| 111 | ? src/streamanalyzer/xesam/testqueries/negate.txt | ||
| 112 | ? src/streamanalyzer/xesam/testqueries/uglyduckling2.xml | ||
| 113 | ? src/streamanalyzer/xesam/testqueries/uglyduckling.xml | ||
| 114 | ? src/streamanalyzer/xesam/testqueries/userQuery.xml | ||
| 115 | ? src/streamanalyzer/xesam/xesam2strigi.cpp | ||
| 116 | ? src/streamanalyzer/xesam/xesam2strigi.h | ||
| 117 | ? src/streamanalyzer/xesam/XesamParser.h | ||
| 118 | ? src/streamanalyzer/xesam/XesamQLParser.cc | ||
| 119 | ? src/streamanalyzer/xesam/XesamQLParser.h | ||
| 120 | ? src/streamanalyzer/xesam/XesamQueryBuilder.cc | ||
| 121 | ? src/streamanalyzer/xesam/XesamQueryBuilder.h | ||
| 122 | ? src/streamanalyzer/xesam/xesam_ul_driver.cc | ||
| 123 | ? src/streamanalyzer/xesam/xesam_ul_driver.hh | ||
| 124 | ? src/streamanalyzer/xesam/xesam_ul_file_scanner.cpp | ||
| 125 | ? src/streamanalyzer/xesam/xesam_ul_file_scanner.h | ||
| 126 | ? src/streamanalyzer/xesam/xesam_ul_parser.cc | ||
| 127 | ? src/streamanalyzer/xesam/xesam_ul_parser.hh | ||
| 128 | ? src/streamanalyzer/xesam/xesam_ul_parser.yy | ||
| 129 | ? src/streamanalyzer/xesam/xesam_ul_scanner.cpp | ||
| 130 | ? src/streamanalyzer/xesam/xesam_ul_scanner.h | ||
| 131 | ? src/streamanalyzer/xesam/xesam_ul_string_scanner.cpp | ||
| 132 | ? src/streamanalyzer/xesam/xesam_ul_string_scanner.h | ||
| 94 | # this code was only used in strigicmd | ||
| 95 | - src/streamanalyzer/xesam/location.hh | ||
| 96 | - src/streamanalyzer/xesam/position.hh | ||
| 97 | - src/streamanalyzer/xesam/stack.hh | ||
| 98 | - src/streamanalyzer/xesam/StrigiQueryBuilder.cc | ||
| 99 | - src/streamanalyzer/xesam/StrigiQueryBuilder.h | ||
| 100 | - src/streamanalyzer/xesam/test.cpp | ||
| 101 | - src/streamanalyzer/xesam/testqueries/africa2.txt | ||
| 102 | - src/streamanalyzer/xesam/testqueries/africa.txt | ||
| 103 | - src/streamanalyzer/xesam/testqueries/helloworld2.txt | ||
| 104 | - src/streamanalyzer/xesam/testqueries/helloworld3.txt | ||
| 105 | - src/streamanalyzer/xesam/testqueries/helloworld.txt | ||
| 106 | - src/streamanalyzer/xesam/testqueries/hendrix2.txt | ||
| 107 | - src/streamanalyzer/xesam/testqueries/hendrix.txt | ||
| 108 | - src/streamanalyzer/xesam/testqueries/hendrix.xml | ||
| 109 | - src/streamanalyzer/xesam/testqueries/inSet.xml | ||
| 110 | - src/streamanalyzer/xesam/testqueries/irc_oever.xml | ||
| 111 | - src/streamanalyzer/xesam/testqueries/negate.txt | ||
| 112 | - src/streamanalyzer/xesam/testqueries/uglyduckling2.xml | ||
| 113 | - src/streamanalyzer/xesam/testqueries/uglyduckling.xml | ||
| 114 | - src/streamanalyzer/xesam/testqueries/userQuery.xml | ||
| 115 | - src/streamanalyzer/xesam/xesam2strigi.cpp | ||
| 116 | - src/streamanalyzer/xesam/xesam2strigi.h | ||
| 117 | - src/streamanalyzer/xesam/XesamParser.h | ||
| 118 | - src/streamanalyzer/xesam/XesamQLParser.cc | ||
| 119 | - src/streamanalyzer/xesam/XesamQLParser.h | ||
| 120 | - src/streamanalyzer/xesam/XesamQueryBuilder.cc | ||
| 121 | - src/streamanalyzer/xesam/XesamQueryBuilder.h | ||
| 122 | - src/streamanalyzer/xesam/xesam_ul_driver.cc | ||
| 123 | - src/streamanalyzer/xesam/xesam_ul_driver.hh | ||
| 124 | - src/streamanalyzer/xesam/xesam_ul_file_scanner.cpp | ||
| 125 | - src/streamanalyzer/xesam/xesam_ul_file_scanner.h | ||
| 126 | - src/streamanalyzer/xesam/xesam_ul_parser.cc | ||
| 127 | - src/streamanalyzer/xesam/xesam_ul_parser.hh | ||
| 128 | - src/streamanalyzer/xesam/xesam_ul_parser.yy | ||
| 129 | - src/streamanalyzer/xesam/xesam_ul_scanner.cpp | ||
| 130 | - src/streamanalyzer/xesam/xesam_ul_scanner.h | ||
| 131 | - src/streamanalyzer/xesam/xesam_ul_string_scanner.cpp | ||
| 132 | - src/streamanalyzer/xesam/xesam_ul_string_scanner.h | ||
| 133 | 133 | - src/streams/decodebase64.cpp | |
| 134 | 134 | - src/streams/filereader.cpp | |
| 135 | 135 | - src/streams/oletest.cpp | |
| … | … | ||
| 144 | 144 | ? src/streams/strigi/strigiconfig.h.win32.cmake | |
| 145 | 145 | - src/streams/strigi/strigi_thread.h | |
| 146 | 146 | - src/streams/testpt.cpp | |
| 147 | # no-one was using the sqliste backend | ||
| 148 | ? src/xapianindexer/xapianindexer.cpp | ||
| 149 | ? src/xapianindexer/xapianindexmanager.cpp | ||
| 150 | ? src/xapianindexer/xapianindexmanager.h | ||
| 151 | ? src/xapianindexer/xapianindexreader.cpp | ||
| 152 | ? src/xapianindexer/xapianindexreader.h | ||
| 153 | ? src/xapianindexer/xapianindexwriter.cpp | ||
| 154 | ? src/xapianindexer/xapianindexwriter.h | ||
| 147 | # no-one was using the xapian backend | ||
| 148 | - src/xapianindexer/xapianindexer.cpp | ||
| 149 | - src/xapianindexer/xapianindexmanager.cpp | ||
| 150 | - src/xapianindexer/xapianindexmanager.h | ||
| 151 | - src/xapianindexer/xapianindexreader.cpp | ||
| 152 | - src/xapianindexer/xapianindexreader.h | ||
| 153 | - src/xapianindexer/xapianindexwriter.cpp | ||
| 154 | - src/xapianindexer/xapianindexwriter.h | ||
| 155 | 155 | - testdata/analyzers/all/config | |
| 156 | 156 | - testdata/analyzers/zip/config | |
| 157 | 157 | ./tests/bashscripts/findPatchThatBrokeUnitTest.sh |
libstreamanalyzer/CMakeLists.txt
(18 / 4)
|   | |||
| 62 | 62 | ${libstreamanalyzer_BINARY_DIR}/include/strigi/strigi_thread.h) | |
| 63 | 63 | ||
| 64 | 64 | # every directory needs the headers that will be installed | |
| 65 | include_directories(${LIBSTREAMS_INCLUDE_DIRS}) | ||
| 66 | include_directories(${libstreamanalyzer_SOURCE_DIR}/include) | ||
| 67 | include_directories(${libstreamanalyzer_BINARY_DIR}/include) | ||
| 68 | link_directories(${LIBSTREAMS_LIBRARY_DIRS}) | ||
| 65 | include_directories(${LIBSTREAMS_INCLUDE_DIRS} | ||
| 66 | ${libstreamanalyzer_SOURCE_DIR}/include | ||
| 67 | ${libstreamanalyzer_BINARY_DIR}/include | ||
| 68 | ${ICONV_INCLUDE_DIR} | ||
| 69 | ${XATTR_INCLUDE_DIR} | ||
| 70 | ${LIBSTREAMS_LIBRARY_DIRS} | ||
| 71 | ${EXIV2_INCLUDEDIR} | ||
| 72 | ${XINE_INCLUDE_DIR} | ||
| 73 | ${FFMPEG_INCLUDE_DIRS} | ||
| 74 | ${MAGIC_INCLUDE_DIR} | ||
| 75 | ${LIBXML2_INCLUDE_DIR} | ||
| 76 | ${libstreamanalyzer_BINARY_DIR}/lib | ||
| 77 | ) | ||
| 78 | if(${CLucene_FOUND}) | ||
| 79 | include_directories(${CLUCENE_INCLUDE_DIR} | ||
| 80 | ${CLUCENE_LIBRARY_DIR}) | ||
| 81 | endif(${CLucene_FOUND}) | ||
| 82 | |||
| 69 | 83 | ||
| 70 | 84 | add_subdirectory(lib) | |
| 71 | 85 | add_subdirectory(plugins) |
|   | |||
| 1 | #add_subdirectory(throughplugins) | ||
| 2 | #add_subdirectory(lineplugins) | ||
| 3 | #add_subdirectory(saxplugins) | ||
| 4 | #add_subdirectory(endplugins) | ||
| 5 | #add_subdirectory(tests) | ||
| 6 | #add_subdirectory(fieldproperties) | ||
| 7 | #add_subdirectory(xesam) | ||
| 8 | 1 | add_definitions(-DMAKE_STREAMANALYZER_LIB) | |
| 9 | include_directories( | ||
| 10 | ${LIBXML2_INCLUDE_DIR} | ||
| 11 | ${libstreamanalyzer_SOURCE_DIR}/lib | ||
| 12 | ${libstreamanalyzer_BINARY_DIR}/lib | ||
| 13 | ) | ||
| 14 | |||
| 15 | #include_directories( ./ ../streams ../streams/pdf ${BZIP2_INCLUDE_DIR} | ||
| 16 | # endanalyzers ${LIBXML2_INCLUDE_DIR} ${ICONV_INCLUDE_DIR} | ||
| 17 | # ${strigi_BINARY_DIR}/src/streams | ||
| 18 | # ${strigi_SOURCE_DIR}/src/streams/strigi ${CMAKE_BINARY_DIR} ) | ||
| 19 | 2 | ||
| 20 | 3 | set(streamanalyzer_SRCS | |
| 21 | 4 | analysisresult.cpp |
|   | |||
| 1 | #add_subdirectory(txlib) | ||
| 2 | |||
| 3 | include_directories(.. | ||
| 4 | ${strigi_BINARY_DIR}/src/streams | ||
| 5 | ${strigi_SOURCE_DIR}/src/streams/strigi | ||
| 6 | ) | ||
| 7 | 1 | if (Magic_FOUND) | |
| 8 | include_directories(${MAGIC_INCLUDE_DIR}) | ||
| 9 | |||
| 10 | add_executable(pdftest pdftest.cpp) | ||
| 11 | |||
| 12 | target_link_libraries(pdftest STATIC streams ${MAGIC_LIBRARIES}) | ||
| 2 | add_executable(pdftest pdftest.cpp) | ||
| 3 | target_link_libraries(pdftest STATIC streams ${MAGIC_LIBRARIES}) | ||
| 13 | 4 | endif (Magic_FOUND) | |
| 14 | 5 | ||
| 15 | 6 | add_library(pdfstream STATIC pdfparser.cpp) |
|   | |||
| 1 | include_directories( .. ../../streams ${strigi_BINARY_DIR}/src/streams) | ||
| 2 | |||
| 3 | 1 | MACRO(ADD_STRIGIEA libname files) | |
| 4 | 2 | if(WIN32) | |
| 5 | 3 | # this is needed to have mingw, cygwin and msvc libs installed in one directory | |
| … | … | ||
| 21 | 21 | ENDMACRO(ADD_STRIGIEA) | |
| 22 | 22 | ||
| 23 | 23 | if(EXIV2_FOUND) | |
| 24 | include_directories(${EXIV2_INCLUDEDIR}) | ||
| 25 | 24 | ADD_STRIGIEA(jpeg jpegendanalyzer.cpp) | |
| 26 | 25 | target_link_libraries(jpeg ${EXIV2_LIBRARIES}) | |
| 27 | 26 | endif(EXIV2_FOUND) | |
| 28 | 27 | ||
| 29 | 28 | if(XINE_FOUND) | |
| 30 | include_directories(${XINE_INCLUDE_DIR}) | ||
| 31 | 29 | ADD_STRIGIEA(xine xineendanalyzer.cpp) | |
| 32 | 30 | target_link_libraries(xine ${XINE_LIBRARY}) | |
| 33 | 31 | endif(XINE_FOUND) | |
| 34 | 32 | ||
| 35 | 33 | if(FFMPEG_FOUND) | |
| 36 | include_directories(${FFMPEG_INCLUDE_DIRS}) | ||
| 37 | 34 | ADD_STRIGIEA(ffmpeg ffmpegendanalyzer.cpp) | |
| 38 | 35 | #set_target_properties( ffmpeg PROPERTIES COMPILE_FLAGS "${FFMPEG_DEFINITIONS}" ) | |
| 39 | 36 | target_link_libraries(ffmpeg ${FFMPEG_LIBRARIES}) |
|   | |||
| 1 | include_directories( .. ../../streams ${strigi_BINARY_DIR}/src/streams) | ||
| 2 | |||
| 3 | 1 | MACRO(ADD_STRIGIEA libname files) | |
| 4 | 2 | if(WIN32) | |
| 5 | 3 | # this is needed to have mingw, cygwin and msvc libs installed in one directory |
|   | |||
| 1 | 1 | include (CheckCXXCompilerFlag) | |
| 2 | 2 | ||
| 3 | include_directories( | ||
| 4 | ${strigi_SOURCE_DIR}/src/streamanalyzer | ||
| 5 | ${strigi_SOURCE_DIR}/src/streams | ||
| 6 | ${strigi_BINARY_DIR}/src/streams | ||
| 7 | ${strigi_SOURCE_DIR}/src/streams/strigi | ||
| 8 | ${CLUCENE_LIBRARY_DIR} | ||
| 9 | ${CLUCENE_INCLUDE_DIR} | ||
| 10 | ${ICONV_INCLUDE_DIR} | ||
| 11 | ) | ||
| 12 | |||
| 13 | 3 | IF(WIN32) | |
| 14 | 4 | # why only here and not for the complete project? | |
| 15 | 5 | ADD_DEFINITIONS(-D_UNICODE) |
|   | |||
| 1 | include_directories(${CLUCENE_LIBRARY_DIR} ${CLUCENE_INCLUDE_DIR} | ||
| 2 | ${ICONV_INCLUDE_DIR} ..) | ||
| 3 | 1 | add_executable(indexdump indexdump.cpp ../tcharutils.cpp) | |
| 4 | 2 | target_link_libraries(indexdump streamanalyzer ${CLUCENE_LIBRARY}) |
|   | |||
| 1 | include_directories(.. ../../indexertests) | ||
| 2 | |||
| 3 | 1 | CREATE_TEST_SOURCELIST(Tests testrunner.cpp CLuceneTest.cpp) | |
| 4 | 2 | ||
| 5 | 3 | ADD_EXECUTABLE(testrunner-lucene ${Tests} ) |
|   | |||
| 1 | include_directories( .. ../../streams ${strigi_BINARY_DIR}/src/streams) | ||
| 2 | |||
| 3 | 1 | MACRO(ADD_STRIGILA libname files) | |
| 4 | 2 | if(WIN32) | |
| 5 | 3 | # this is needed to have mingw, cygwin and msvc libs installed in one directory |
|   | |||
| 1 | include_directories( .. ../../streams ${strigi_BINARY_DIR}/src/streams) | ||
| 2 | |||
| 3 | 1 | MACRO(ADD_STRIGILA libname files) | |
| 4 | 2 | if(WIN32) | |
| 5 | 3 | # this is needed to have mingw, cygwin and msvc libs installed in one directory |
|   | |||
| 1 | include_directories( .. ../../streams ${strigi_BINARY_DIR}/src/streams) | ||
| 2 | |||
| 3 | 1 | MACRO(ADD_STRIGITA libname files) | |
| 4 | 2 | if(WIN32) | |
| 5 | 3 | # this is needed to have mingw, cygwin and msvc libs installed in one directory | |
| … | … | ||
| 18 | 18 | install(TARGETS ${libname} LIBRARY DESTINATION ${LIB_DESTINATION}/strigi) | |
| 19 | 19 | ENDMACRO(ADD_STRIGITA) | |
| 20 | 20 | ||
| 21 | |||
| 22 | 21 | if (XATTR_FOUND) | |
| 23 | include_directories(${XATTR_INCLUDE_DIR}) | ||
| 24 | 22 | ADD_STRIGITA(xattr xattrthroughanalyzer.cpp) | |
| 25 | 23 | endif (XATTR_FOUND) | |
| 26 | 24 |
libstreams/CMakeLists.txt
(9 / 2)
|   | |||
| 46 | 46 | ##### building and testing ##### | |
| 47 | 47 | ||
| 48 | 48 | # every directory needs the headers that will be installed | |
| 49 | include_directories(${libstreams_SOURCE_DIR}/include) | ||
| 50 | include_directories(${libstreams_BINARY_DIR}/include) | ||
| 49 | include_directories(${libstreams_SOURCE_DIR}/include | ||
| 50 | ${libstreams_SOURCE_DIR}/lib | ||
| 51 | ${libstreams_BINARY_DIR}/include | ||
| 52 | ${libstreams_BINARY_DIR}/lib | ||
| 53 | ${ZLIB_INCLUDE_DIR} | ||
| 54 | ${BZIP2_INCLUDE_DIR} | ||
| 55 | ${ICONV_INCLUDE_DIR} | ||
| 56 | ) | ||
| 57 | |||
| 51 | 58 | ||
| 52 | 59 | add_subdirectory(lib) | |
| 53 | 60 | add_subdirectory(tests) |
|   | |||
| 1 | 1 | # This directory builds only the library libstreams | |
| 2 | 2 | add_definitions(-DMAKE_STREAMS_LIB) | |
| 3 | 3 | ||
| 4 | include_directories( | ||
| 5 | ${ZLIB_INCLUDE_DIR} | ||
| 6 | ${BZIP2_INCLUDE_DIR} | ||
| 7 | ${ICONV_INCLUDE_DIR} | ||
| 8 | ${libstreams_SOURCE_DIR}/lib | ||
| 9 | ${libstreams_BINARY_DIR}/lib | ||
| 10 | ) | ||
| 11 | |||
| 12 | 4 | set(streams_SRCS | |
| 13 | 5 | archivereader.cpp | |
| 14 | 6 | archiveentrycache.cpp |
|   | |||
| 1 | include_directories( | ||
| 2 | ${_BINARY_DIR}/src/streams | ||
| 3 | ${strigi_SOURCE_DIR}/src/streams/strigi | ||
| 4 | ${BZIP2_INCLUDE_DIR} | ||
| 5 | ${ICONV_INCLUDE_DIR} | ||
| 6 | ) | ||
| 7 | 1 | set(streamtests | |
| 8 | 2 | testrunner.cpp | |
| 9 | 3 | ArInputStreamTest.cpp |
|   | |||
| 1 | # the internal tests have access to the headers that are not installed | ||
| 2 | include_directories( | ||
| 3 | ${libstreams_SOURCE_DIR}/lib | ||
| 4 | ${libstreams_BINARY_DIR}/lib | ||
| 5 | ) | ||
| 6 | |||
| 7 | 1 | # allow use of internal api from shared test code | |
| 8 | 2 | add_definitions(-DSTRIGI_INTERNAL_TEST) | |
| 9 | 3 |
strigiclient/CMakeLists.txt
(8 / 3)
|   | |||
| 48 | 48 | ||
| 49 | 49 | ||
| 50 | 50 | # every directory needs the headers that will be installed | |
| 51 | include_directories(${LIBSTREAMS_INCLUDE_DIRS}) | ||
| 52 | include_directories(${LIBSTREAMANALYZER_INCLUDE_DIRS}) | ||
| 53 | include_directories(${LIBSEARCHCLIENT_INCLUDE_DIRS}) | ||
| 51 | include_directories(${LIBSTREAMS_INCLUDE_DIRS} | ||
| 52 | ${LIBSTREAMANALYZER_INCLUDE_DIRS} | ||
| 53 | ${LIBSEARCHCLIENT_INCLUDE_DIRS} | ||
| 54 | lib/htmlgui | ||
| 55 | lib/searchclient/filterwidget | ||
| 56 | lib/searchclient/qtdbus | ||
| 57 | ) | ||
| 58 | |||
| 54 | 59 | link_directories(${LIBSTREAMANALYZER_LIBRARY_DIRS}) | |
| 55 | 60 | link_directories(${LIBSEARCHCLIENT_LIBRARY_DIRS}) | |
| 56 | 61 |
Binary files differ
|   | |||
| 1 | include_directories( ../daemon ../streamanalyzer ../streams | ||
| 2 | ${strigi_BINARY_DIR}/src/streams) | ||
| 3 | |||
| 4 | 1 | add_library(strigihtmlgui SHARED strigihtmlgui.cpp) | |
| 5 | 2 | set_target_properties(strigihtmlgui PROPERTIES | |
| 6 | 3 | VERSION ${STRIGI_VERSION_STRING} |
|   | |||
| 1 | include_directories(../streamanalyzer ../htmlgui ../streams ../daemon | ||
| 2 | qtdbus ${strigi_BINARY_DIR}/src/streams filterwidget) | ||
| 3 | |||
| 4 | 1 | add_subdirectory(qtdbus) | |
| 5 | 2 | # disable searchclient for now | |
| 6 | 3 | if(NOT WIN32) |
|   | |||
| 1 | include_directories(../../streamanalyzer ../../htmlgui ../../streams ../../daemon | ||
| 2 | qtdbus ${strigi_BINARY_DIR}/src/streams/strigi filterwidget) | ||
| 3 | |||
| 4 | 1 | include(${QT_USE_FILE}) | |
| 5 | 2 | ||
| 6 | 3 | # strigiclient |
|   | |||
| 1 | include_directories(${QT_INCLUDE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/.. | ||
| 2 | qtdbus ${strigi_BINARY_DIR}/src/streams) | ||
| 3 | |||
| 4 | 1 | include(${QT_USE_FILE}) | |
| 5 | 2 | ||
| 6 | 3 | # strigiclient |
strigidaemon/CMakeLists.txt
(15 / 5)
|   | |||
| 56 | 56 | configure_file(${strigidaemon_SOURCE_DIR}/strigi_thread.h.cmake | |
| 57 | 57 | ${strigidaemon_BINARY_DIR}/include/strigi/strigi_thread.h) | |
| 58 | 58 | ||
| 59 | include_directories(${LIBSTREAMS_INCLUDE_DIRS}) | ||
| 60 | include_directories(${LIBSTREAMANALYZER_INCLUDE_DIRS}) | ||
| 61 | include_directories(${strigidaemon_SOURCE_DIR}/include) | ||
| 62 | include_directories(${strigidaemon_BINARY_DIR}/include) | ||
| 59 | include_directories(${LIBSTREAMS_INCLUDE_DIRS} | ||
| 60 | ${LIBSTREAMANALYZER_INCLUDE_DIRS} | ||
| 61 | ${strigidaemon_SOURCE_DIR}/include | ||
| 62 | ${strigidaemon_BINARY_DIR}/include | ||
| 63 | ${strigidaemon_BINARY_DIR}/bin/daemon/dbus | ||
| 64 | ${DBUS_INCLUDE_DIRS} | ||
| 65 | ${ICONV_INCLUDE_DIR} | ||
| 66 | ${LIBXML2_INCLUDE_DIR} | ||
| 67 | bin/combinedindex | ||
| 68 | bin/daemon | ||
| 69 | ) | ||
| 70 | if(LOG4CXX_FOUND) | ||
| 71 | include_directories(${LOG4CXX_INCLUDE_DIR}) | ||
| 72 | endif(LOG4CXX_FOUND) | ||
| 63 | 73 | link_directories(${LIBSTREAMS_LIBRARY_DIRS}) | |
| 64 | 74 | link_directories(${LIBSTREAMANALYZER_LIBRARY_DIRS}) | |
| 65 | 75 | ||
| 66 | 76 | add_subdirectory(lib) | |
| 67 | 77 | add_subdirectory(bin) | |
| 68 | add_subdirectory(tests) | ||
| 78 | #add_subdirectory(tests) | ||
| 69 | 79 | ||
| 70 | 80 | ##### installing ##### | |
| 71 | 81 |
|   | |||
| 1 | #subdirs(tests) | ||
| 2 | |||
| 3 | include_directories( ../streamanalyzer ../streams ../filters ../dummyindexer | ||
| 4 | ${strigi_BINARY_DIR}/src/streams | ||
| 5 | ${strigi_SOURCE_DIR}/src/streams/strigi) | ||
| 6 | |||
| 7 | 1 | add_library(combinedindex STATIC combinedindexmanager.cpp) | |
| 8 | 2 | ||
| 9 | 3 | target_link_libraries(combinedindex streamanalyzer) |
|   | |||
| 1 | include_directories(../combinedindex) | ||
| 2 | 1 | add_subdirectory(eventlistener) | |
| 3 | 2 | add_subdirectory(queue) | |
| 4 | 3 | add_subdirectory(xesam) |
|   | |||
| 1 | include_directories(${CMAKE_CURRENT_BINARY_DIR} ${DBUS_INCLUDE_DIRS} .) | ||
| 2 | 1 | subdirs(dbuscpp) | |
| 3 | 2 | ||
| 4 | 3 | IF (ENABLE_LOG4CXX AND LOG4CXX_FOUND) | |
| 5 | 4 | add_definitions(-DHAVE_LOG4CXX) | |
| 6 | 5 | set(test_LIBS ${LOG4CXX_LIBRARIES}) | |
| 7 | include_directories( ${LOG4CXX_INCLUDE_DIR} ) | ||
| 8 | 6 | ENDIF (ENABLE_LOG4CXX AND LOG4CXX_FOUND) | |
| 9 | 7 | ||
| 10 | 8 | # if available, use Perl for generating the dbus interfaces. | |
| … | … | ||
| 55 | 55 | ||
| 56 | 56 | CreateDBusBinding("${CMAKE_CURRENT_SOURCE_DIR}/../../../include/strigi/clientinterface.h" | |
| 57 | 57 | "clientinterface" "vandenoever.strigi" | |
| 58 | "dbusserialization.h") | ||
| 58 | "dbus/dbusserialization.h") | ||
| 59 | 59 | CreateDBusBinding("${CMAKE_CURRENT_SOURCE_DIR}/testinterface.h" | |
| 60 | 60 | "testinterface" "vandenoever.strigi" "") | |
| 61 | 61 | CreateDBusBinding( | |
| 62 | 62 | "${CMAKE_CURRENT_SOURCE_DIR}/../xesam/xesamlivesearchinterface.h" | |
| 63 | 63 | "xesamlivesearchinterface" "org.freedesktop.xesam.Search" | |
| 64 | "dbusserialization.h") | ||
| 64 | "dbus/dbusserialization.h") | ||
| 65 | 65 | ||
| 66 | 66 | add_library(dbusserver STATIC testinterface.cpp dbusserver.cpp | |
| 67 | 67 | dbusserialization.cpp |
|   | |||
| 1 | #include_directories(test) | ||
| 2 | |||
| 3 | IF(WIN32) | ||
| 4 | include_directories(${DBUS_INCLUDE_DIR}) | ||
| 5 | ENDIF(WIN32) | ||
| 6 | |||
| 7 | 1 | add_library(dbuscpp STATIC dbushandler.cpp dbusmessagereader.cpp | |
| 8 | 2 | dbusmessagewriter.cpp dbusobjectcallhandler.cpp | |
| 9 | 3 | ) | |
| 10 | #SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${DBUS_CFLAGS}") | ||
| 11 | 4 | ||
| 12 | 5 | IF(WIN32) | |
| 13 | target_link_libraries(dbuscpp ${DBUS_LIBRARY}) | ||
| 6 | target_link_libraries(dbuscpp ${DBUS_LIBRARY}) | ||
| 14 | 7 | ELSE(WIN32) | |
| 15 | target_link_libraries(dbuscpp ${DBUS_LDFLAGS}) | ||
| 8 | target_link_libraries(dbuscpp ${DBUS_LDFLAGS}) | ||
| 16 | 9 | ENDIF(WIN32) |
|   | |||
| 358 | 358 | if (defined $extrainclude && length($extrainclude)) { | |
| 359 | 359 | print FH "#include \"$extrainclude\"\n"; | |
| 360 | 360 | } | |
| 361 | print FH "#include \"dbuscpp/dbusobjectinterface.h\"\n"; | ||
| 362 | print FH "#include \"dbuscpp/dbusmessagereader.h\"\n"; | ||
| 363 | print FH "#include \"dbuscpp/dbusmessagewriter.h\"\n"; | ||
| 361 | print FH "#include \"dbus/dbuscpp/dbusobjectinterface.h\"\n"; | ||
| 362 | print FH "#include \"dbus/dbuscpp/dbusmessagereader.h\"\n"; | ||
| 363 | print FH "#include \"dbus/dbuscpp/dbusmessagewriter.h\"\n"; | ||
| 364 | 364 | print FH "#include <sstream>\n"; | |
| 365 | 365 | print FH "class Private$classname : public DBusObjectInterface {\n"; | |
| 366 | 366 | print FH "private:\n"; |
|   | |||
| 1 | |||
| 2 | include_directories( ../streamanalyzer ../combinedindexer ../streams ../xsd dbus | ||
| 3 | ${strigi_BINARY_DIR}/src/streams/strigi ../streams/strigi) | ||
| 4 | |||
| 5 | 1 | add_executable(newdaemon main.cpp jobqueue.cpp) | |
| 6 | 2 | ||
| 7 | 3 | set(newdaemon_LIBS |
|   | |||
| 1 | include_directories(.. ../../streamanalyzer) | ||
| 2 | |||
| 3 | 1 | add_library(xesam STATIC xesamlivesearchinterface.cpp xesamlivesearch.cpp | |
| 4 | 2 | xesamsession.cpp xesamsearch.cpp) | |
| 5 | 3 |
|   | |||
| 1 | |||
| 2 | 1 | # create a library with the shared code for parsing xml files | |
| 3 | include_directories(. ${ICONV_INCLUDE_DIR}) | ||
| 4 | 2 | ||
| 5 | 3 | if (LIBXML2_FOUND) | |
| 6 | include_directories(${LIBXML2_INCLUDE_DIR}) | ||
| 7 | 4 | add_library(xmlstream STATIC | |
| 8 | 5 | xsdparser/libxmlstream.cpp | |
| 9 | 6 | xsdparser/xmlstream.cpp | |
| 10 | 7 | ) | |
| 11 | 8 | target_link_libraries(xmlstream ${LIBXML2_LIBRARIES}) | |
| 12 | else (LIBXML2_FOUND) | ||
| 13 | # we use expat | ||
| 14 | include_directories(${EXPAT_INCLUDE_DIR}) | ||
| 15 | add_library(xmlstream STATIC | ||
| 16 | xsdparser/expatxmlstream.cpp | ||
| 17 | xsdparser/xmlstream.cpp | ||
| 18 | ) | ||
| 19 | target_link_libraries(xmlstream ${EXPAT_LIBRARY}) | ||
| 20 | 9 | endif (LIBXML2_FOUND) | |
| 21 | 10 | ||
| 22 | 11 | # javac >= 1.5 is required to compile the xsd parser |
|   | |||
| 108 | 108 | header.println("/* This file is generated from " + xsdfile + " */"); | |
| 109 | 109 | header.println("#ifndef " + base.toUpperCase() + "_H"); | |
| 110 | 110 | header.println("#define " + base.toUpperCase() + "_H"); | |
| 111 | header.println("#include \"xsdparser/xmlstream.h\""); | ||
| 111 | header.println("#include \"xsd/xsdparser/xmlstream.h\""); | ||
| 112 | 112 | header.println("#include <string>"); | |
| 113 | 113 | header.println("#include <list>"); | |
| 114 | 114 | PrintWriter impl = new PrintWriter(new FileWriter(base + ".cpp")); |
|   | |||
| 1 | include_directories( | ||
| 2 | ../combinedindexer | ||
| 3 | ../streamanalyzer | ||
| 4 | ../streamanalyzer/xesam | ||
| 5 | ${strigi_BINARY_DIR}/src/streams | ||
| 6 | ${strigi_SOURCE_DIR}/src/streams/strigi | ||
| 7 | ${LIBXML2_INCLUDE_DIR} | ||
| 8 | ) | ||
| 9 | |||
| 10 | 1 | set(strigicmd_LIBS streamanalyzer combinedindex) | |
| 11 | 2 | ||
| 12 | 3 | IF (ENABLE_LOG4CXX AND LOG4CXX_FOUND) | |
| 13 | 4 | add_definitions(-DHAVE_LOG4CXX) | |
| 14 | 5 | set(strigicmd_LIBS ${strigicmd_LIBS} ${LOG4CXX_LIBRARIES}) | |
| 15 | include_directories( ${LOG4CXX_INCLUDE_DIR} ) | ||
| 16 | 6 | ENDIF (ENABLE_LOG4CXX AND LOG4CXX_FOUND) | |
| 17 | 7 | ||
| 18 | 8 | add_executable(strigicmd strigicmd.cpp) |
|   | |||
| 1 | include_directories( | ||
| 2 | ../streamanalyzer | ||
| 3 | ../streams | ||
| 4 | ../streams/strigi | ||
| 5 | ${strigi_BINARY_DIR}/src/streams | ||
| 6 | ${BZIP2_INCLUDE_DIR} | ||
| 7 | ) | ||
| 8 | |||
| 9 | 1 | add_library(librdfindexer | |
| 10 | 2 | rdfindexer.cpp | |
| 11 | 3 | tagmapping.cpp |

