Changeset View
Changeset View
Standalone View
Standalone View
kdevplatform/language/CMakeLists.txt
1 | add_definitions(-DTRANSLATION_DOMAIN=\"kdevplatform\") | 1 | add_definitions(-DTRANSLATION_DOMAIN=\"kdevplatform\") | ||
---|---|---|---|---|---|
2 | 2 | | |||
3 | # Check whether malloc_trim(3) is supported. | 3 | # Check whether malloc_trim(3) is supported. | ||
4 | include(CheckIncludeFile) | 4 | include(CheckIncludeFile) | ||
5 | include(CheckSymbolExists) | 5 | include(CheckSymbolExists) | ||
6 | check_include_file("malloc.h" HAVE_MALLOC_H) | 6 | check_include_file("malloc.h" HAVE_MALLOC_H) | ||
7 | check_symbol_exists(malloc_trim "malloc.h" HAVE_MALLOC_TRIM) | 7 | check_symbol_exists(malloc_trim "malloc.h" HAVE_MALLOC_TRIM) | ||
8 | 8 | | |||
9 | include(FindPkgConfig) | ||||
10 | # find LMDB and lmdbxx | ||||
11 | find_path(LMDBXX_INCLUDE_DIRS NAMES "lmdb++.h" HINTS "$ENV{LMDB_DIR}/include") | ||||
12 | find_path(LMDB_INCLUDE_DIRS NAMES "lmdb.h" HINTS "$ENV{LMDB_DIR}/include") | ||||
13 | find_library(LMDB_LIBRARIES NAMES lmdb HINTS $ENV{LMDB_DIR}/lib) | ||||
14 | find_package_handle_standard_args(LMDB DEFAULT_MSG LMDB_INCLUDE_DIRS LMDB_LIBRARIES) | ||||
15 | find_package_handle_standard_args(LMDBXX DEFAULT_MSG LMDBXX_INCLUDE_DIRS) | ||||
16 | pkg_check_modules(PKG_LZ4 liblz4 REQUIRED) | ||||
17 | find_package_handle_standard_args(LZ4 DEFAULT_MSG PKG_LZ4_INCLUDEDIR PKG_LZ4_LIBRARIES) | ||||
18 | # # find LevelDB stuff | ||||
19 | # find_path(LEVELDB_INCLUDE_DIRS NAMES "leveldb" HINTS "$ENV{LEVELDB_DIR}/include") | ||||
20 | # find_library(LEVELDB_LIBRARIES NAMES leveldb HINTS $ENV{LEVELDB_DIR}/lib ) | ||||
21 | # find_package_handle_standard_args(LEVELDB DEFAULT_MSG LEVELDB_INCLUDE_DIRS LEVELDB_LIBRARIES) | ||||
22 | # find KyotoCabinet stuff | ||||
23 | # pkg_check_modules(PKG_KYOTOCABINET kyotocabinet REQUIRED) | ||||
24 | # find_package_handle_standard_args(KYOTOCABINET DEFAULT_MSG PKG_KYOTOCABINET_INCLUDEDIR PKG_KYOTOCABINET_LIBRARIES) | ||||
25 | | ||||
9 | if(BUILD_TESTING) | 26 | if(BUILD_TESTING) | ||
10 | add_subdirectory(highlighting/tests) | 27 | add_subdirectory(highlighting/tests) | ||
11 | add_subdirectory(duchain/tests) | 28 | add_subdirectory(duchain/tests) | ||
12 | add_subdirectory(backgroundparser/tests) | 29 | add_subdirectory(backgroundparser/tests) | ||
13 | add_subdirectory(codegen/tests) | 30 | add_subdirectory(codegen/tests) | ||
14 | add_subdirectory(util/tests) | 31 | add_subdirectory(util/tests) | ||
15 | endif() | 32 | endif() | ||
16 | 33 | | |||
Show All 26 Lines | 37 | set(KDevPlatformLanguage_LIB_SRCS | |||
43 | duchain/ducontext.cpp | 60 | duchain/ducontext.cpp | ||
44 | duchain/indexedducontext.cpp | 61 | duchain/indexedducontext.cpp | ||
45 | duchain/indexedtopducontext.cpp | 62 | duchain/indexedtopducontext.cpp | ||
46 | duchain/localindexedducontext.cpp | 63 | duchain/localindexedducontext.cpp | ||
47 | duchain/indexeddeclaration.cpp | 64 | duchain/indexeddeclaration.cpp | ||
48 | duchain/localindexeddeclaration.cpp | 65 | duchain/localindexeddeclaration.cpp | ||
49 | duchain/topducontext.cpp | 66 | duchain/topducontext.cpp | ||
50 | duchain/topducontextdynamicdata.cpp | 67 | duchain/topducontextdynamicdata.cpp | ||
68 | duchain/topducontextdynamicdata_p.cpp | ||||
51 | duchain/topducontextutils.cpp | 69 | duchain/topducontextutils.cpp | ||
52 | duchain/functiondefinition.cpp | 70 | duchain/functiondefinition.cpp | ||
53 | duchain/declaration.cpp | 71 | duchain/declaration.cpp | ||
54 | duchain/classmemberdeclaration.cpp | 72 | duchain/classmemberdeclaration.cpp | ||
55 | duchain/classfunctiondeclaration.cpp | 73 | duchain/classfunctiondeclaration.cpp | ||
56 | duchain/classdeclaration.cpp | 74 | duchain/classdeclaration.cpp | ||
57 | duchain/use.cpp | 75 | duchain/use.cpp | ||
58 | duchain/forwarddeclaration.cpp | 76 | duchain/forwarddeclaration.cpp | ||
▲ Show 20 Lines • Show All 113 Lines • ▼ Show 20 Line(s) | |||||
172 | ) | 190 | ) | ||
173 | 191 | | |||
174 | ki18n_wrap_ui(KDevPlatformLanguage_LIB_SRCS | 192 | ki18n_wrap_ui(KDevPlatformLanguage_LIB_SRCS | ||
175 | codegen/basicrefactoring.ui | 193 | codegen/basicrefactoring.ui | ||
176 | codegen/progressdialogs/refactoringdialog.ui) | 194 | codegen/progressdialogs/refactoringdialog.ui) | ||
177 | 195 | | |||
178 | kdevplatform_add_library(KDevPlatformLanguage SOURCES ${KDevPlatformLanguage_LIB_SRCS}) | 196 | kdevplatform_add_library(KDevPlatformLanguage SOURCES ${KDevPlatformLanguage_LIB_SRCS}) | ||
179 | target_include_directories(KDevPlatformLanguage PRIVATE ${Boost_INCLUDE_DIRS}) | 197 | target_include_directories(KDevPlatformLanguage PRIVATE ${Boost_INCLUDE_DIRS}) | ||
198 | target_include_directories(KDevPlatformLanguage PRIVATE ${LMDB_INCLUDE_DIRS} ${LMDBXX_INCLUDE_DIRS} ${PKG_LZ4_INCLUDEDIR}) | ||||
199 | # target_include_directories(KDevPlatformLanguage PRIVATE ${LEVELDB_INCLUDE_DIRS}) | ||||
200 | # target_include_directories(KDevPlatformLanguage PRIVATE ${PKG_KYOTOCABINET_INCLUDEDIR}) | ||||
201 | kde_source_files_enable_exceptions(duchain/topducontextdynamicdata_p.cpp) | ||||
180 | target_link_libraries(KDevPlatformLanguage LINK_PUBLIC | 202 | target_link_libraries(KDevPlatformLanguage LINK_PUBLIC | ||
181 | KF5::ThreadWeaver | 203 | KF5::ThreadWeaver | ||
182 | KDev::Interfaces | 204 | KDev::Interfaces | ||
183 | KDev::Serialization | 205 | KDev::Serialization | ||
184 | LINK_PRIVATE | 206 | LINK_PRIVATE | ||
185 | Grantlee5::Templates | 207 | Grantlee5::Templates | ||
186 | KF5::GuiAddons | 208 | KF5::GuiAddons | ||
187 | KF5::TextEditor | 209 | KF5::TextEditor | ||
188 | KF5::Parts | 210 | KF5::Parts | ||
189 | KF5::Archive | 211 | KF5::Archive | ||
190 | KF5::IconThemes | 212 | KF5::IconThemes | ||
191 | KDev::Util | 213 | KDev::Util | ||
192 | KDev::Project | 214 | KDev::Project | ||
193 | ) | 215 | ) | ||
216 | target_link_libraries(KDevPlatformLanguage LINK_PRIVATE ${LMDB_LIBRARIES} ${PKG_LZ4_LIBRARIES}) | ||||
217 | # target_link_libraries(KDevPlatformLanguage LINK_PRIVATE ${LEVELDB_LIBRARIES}) | ||||
218 | # target_link_libraries(KDevPlatformLanguage LINK_PRIVATE ${PKG_KYOTOCABINET_LIBRARIES}) | ||||
194 | 219 | | |||
195 | install(FILES | 220 | install(FILES | ||
196 | assistant/renameaction.h | 221 | assistant/renameaction.h | ||
197 | assistant/renameassistant.h | 222 | assistant/renameassistant.h | ||
198 | assistant/staticassistant.h | 223 | assistant/staticassistant.h | ||
199 | assistant/staticassistantsmanager.h | 224 | assistant/staticassistantsmanager.h | ||
200 | DESTINATION ${KDE_INSTALL_INCLUDEDIR}/kdevplatform/language/assistant COMPONENT Devel | 225 | DESTINATION ${KDE_INSTALL_INCLUDEDIR}/kdevplatform/language/assistant COMPONENT Devel | ||
201 | ) | 226 | ) | ||
▲ Show 20 Lines • Show All 198 Lines • Show Last 20 Lines |