Warning, /kdevelop/kdevelop/kdevplatform/language/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 add_definitions(-DTRANSLATION_DOMAIN=\"kdevplatform\")
0002 
0003 # Check whether malloc_trim(3) is supported.
0004 include(CheckIncludeFile)
0005 include(CheckSymbolExists)
0006 check_include_file("malloc.h" HAVE_MALLOC_H)
0007 check_symbol_exists(malloc_trim "malloc.h" HAVE_MALLOC_TRIM)
0008 
0009 if(BUILD_TESTING)
0010     add_subdirectory(highlighting/tests)
0011     add_subdirectory(duchain/tests)
0012     add_subdirectory(backgroundparser/tests)
0013     add_subdirectory(codegen/tests)
0014     add_subdirectory(util/tests)
0015 endif()
0016 
0017 configure_file(${CMAKE_CURRENT_SOURCE_DIR}/language-features.h.cmake
0018                ${CMAKE_CURRENT_BINARY_DIR}/language-features.h )
0019 
0020 set(KDevPlatformLanguage_LIB_SRCS
0021     assistant/staticassistantsmanager.cpp
0022     assistant/renameaction.cpp
0023     assistant/renameassistant.cpp
0024     assistant/renamefileaction.cpp
0025     assistant/staticassistant.cpp
0026 
0027     editor/persistentmovingrangeprivate.cpp
0028     editor/persistentmovingrange.cpp
0029     editor/modificationrevisionset.cpp
0030     editor/modificationrevision.cpp
0031 
0032     backgroundparser/backgroundparser.cpp
0033     backgroundparser/parsejob.cpp
0034     backgroundparser/documentchangetracker.cpp
0035     backgroundparser/parseprojectjob.cpp
0036     backgroundparser/urlparselock.cpp
0037 
0038     duchain/specializationstore.cpp
0039     duchain/codemodel.cpp
0040     duchain/duchain.cpp
0041     duchain/waitforupdate.cpp
0042     duchain/duchainpointer.cpp
0043     duchain/ducontext.cpp
0044     duchain/indexedducontext.cpp
0045     duchain/indexedtopducontext.cpp
0046     duchain/localindexedducontext.cpp
0047     duchain/indexeddeclaration.cpp
0048     duchain/localindexeddeclaration.cpp
0049     duchain/topducontext.cpp
0050     duchain/topducontextdynamicdata.cpp
0051     duchain/topducontextutils.cpp
0052     duchain/functiondefinition.cpp
0053     duchain/declaration.cpp
0054     duchain/classmemberdeclaration.cpp
0055     duchain/classfunctiondeclaration.cpp
0056     duchain/classdeclaration.cpp
0057     duchain/use.cpp
0058     duchain/forwarddeclaration.cpp
0059     duchain/duchainbase.cpp
0060     duchain/duchainlock.cpp
0061     duchain/identifier.cpp
0062     duchain/parsingenvironment.cpp
0063     duchain/abstractfunctiondeclaration.cpp
0064     duchain/functiondeclaration.cpp
0065     duchain/stringhelpers.cpp
0066     duchain/namespacealiasdeclaration.cpp
0067     duchain/aliasdeclaration.cpp
0068     duchain/dumpdotgraph.cpp
0069     duchain/duchainutils.cpp
0070     duchain/declarationid.cpp
0071     duchain/definitions.cpp
0072     duchain/uses.cpp
0073     duchain/importers.cpp
0074     duchain/duchaindumper.cpp
0075     duchain/duchainregister.cpp
0076     duchain/persistentsymboltable.cpp
0077     duchain/instantiationinformation.cpp
0078     duchain/problem.cpp
0079 
0080     duchain/types/typesystem.cpp
0081     duchain/types/typeregister.cpp
0082     duchain/types/typerepository.cpp
0083     duchain/types/identifiedtype.cpp
0084     duchain/types/abstracttype.cpp
0085     duchain/types/integraltype.cpp
0086     duchain/types/functiontype.cpp
0087     duchain/types/structuretype.cpp
0088     duchain/types/pointertype.cpp
0089     duchain/types/referencetype.cpp
0090     duchain/types/delayedtype.cpp
0091     duchain/types/arraytype.cpp
0092     duchain/types/indexedtype.cpp
0093     duchain/types/enumerationtype.cpp
0094     duchain/types/constantintegraltype.cpp
0095     duchain/types/enumeratortype.cpp
0096     duchain/types/typeutils.cpp
0097     duchain/types/typealiastype.cpp
0098     duchain/types/unsuretype.cpp
0099     duchain/types/containertypes.cpp
0100 
0101     duchain/builders/dynamiclanguageexpressionvisitor.cpp
0102 
0103     duchain/navigation/problemnavigationcontext.cpp
0104     duchain/navigation/abstractnavigationwidget.cpp
0105     duchain/navigation/abstractnavigationcontext.cpp
0106     duchain/navigation/usesnavigationcontext.cpp
0107     duchain/navigation/abstractdeclarationnavigationcontext.cpp
0108     duchain/navigation/abstractincludenavigationcontext.cpp
0109     duchain/navigation/useswidget.cpp
0110     duchain/navigation/usescollector.cpp
0111     duchain/navigation/quickopenembeddedwidgetcombiner.cpp
0112 
0113     interfaces/abbreviations.cpp
0114     interfaces/iastcontainer.cpp
0115     interfaces/ilanguagesupport.cpp
0116     interfaces/quickopendataprovider.cpp
0117     interfaces/iquickopen.cpp
0118     interfaces/editorcontext.cpp
0119     interfaces/codecontext.cpp
0120     interfaces/icreateclasshelper.cpp
0121     interfaces/icontextbrowser.cpp
0122 
0123     codecompletion/codecompletion.cpp
0124     codecompletion/codecompletionworker.cpp
0125     codecompletion/codecompletionmodel.cpp
0126     codecompletion/codecompletionitem.cpp
0127     codecompletion/codecompletioncontext.cpp
0128     codecompletion/codecompletionitemgrouper.cpp
0129     codecompletion/codecompletionhelper.cpp
0130     codecompletion/normaldeclarationcompletionitem.cpp
0131 
0132     codegen/applychangeswidget.cpp
0133     codegen/coderepresentation.cpp
0134     codegen/documentchangeset.cpp
0135     codegen/duchainchangeset.cpp
0136     codegen/utilities.cpp
0137     codegen/codedescription.cpp
0138 
0139     codegen/basicrefactoring.cpp
0140     codegen/progressdialogs/refactoringdialog.cpp
0141 
0142     util/setrepository.cpp
0143     util/includeitem.cpp
0144     util/navigationtooltip.cpp
0145 
0146     highlighting/colorcache.cpp
0147     highlighting/configurablecolors.cpp
0148     highlighting/codehighlighting.cpp
0149     highlighting/syntax/syntax.qrc
0150 
0151     checks/dataaccessrepository.cpp checks/dataaccess.cpp
0152     checks/controlflowgraph.cpp checks/controlflownode.cpp
0153 
0154     classmodel/classmodel.cpp
0155     classmodel/classmodelnode.cpp
0156     classmodel/classmodelnodescontroller.cpp
0157     classmodel/allclassesfolder.cpp
0158     classmodel/documentclassesfolder.cpp
0159     classmodel/projectfolder.cpp
0160 
0161     codegen/templatesmodel.cpp
0162     codegen/templatepreviewicon.cpp
0163     codegen/templateclassgenerator.cpp
0164     codegen/sourcefiletemplate.cpp
0165     codegen/templaterenderer.cpp
0166     codegen/templateengine.cpp
0167     codegen/archivetemplateloader.cpp
0168 )
0169 
0170 declare_qt_logging_category(KDevPlatformLanguage_LIB_SRCS
0171     TYPE LIBRARY
0172     CATEGORY_BASENAME "language"
0173 )
0174 
0175 ki18n_wrap_ui(KDevPlatformLanguage_LIB_SRCS
0176     codegen/basicrefactoring.ui
0177     codegen/progressdialogs/refactoringdialog.ui)
0178 
0179 kdevplatform_add_library(KDevPlatformLanguage SOURCES ${KDevPlatformLanguage_LIB_SRCS})
0180 target_include_directories(KDevPlatformLanguage PRIVATE ${Boost_INCLUDE_DIRS})
0181 target_link_libraries(KDevPlatformLanguage
0182 PUBLIC
0183     KDev::Serialization
0184     KDev::Interfaces
0185     KDev::Util
0186     KF5::ThreadWeaver
0187 PRIVATE
0188     KDev::Project
0189     KDev::Sublime
0190     KF5::GuiAddons
0191     KF5::TextEditor
0192     KF5::Parts
0193     KF5::Archive
0194     Grantlee5::Templates
0195 )
0196 
0197 install(FILES
0198     assistant/renameaction.h
0199     assistant/renameassistant.h
0200     assistant/staticassistant.h
0201     assistant/staticassistantsmanager.h
0202     DESTINATION ${KDE_INSTALL_INCLUDEDIR}/kdevplatform/language/assistant COMPONENT Devel
0203 )
0204 
0205 install(FILES
0206     interfaces/ilanguagesupport.h
0207     interfaces/icodehighlighting.h
0208     interfaces/quickopendataprovider.h
0209     interfaces/quickopenfilter.h
0210     interfaces/iquickopen.h
0211     interfaces/codecontext.h
0212     interfaces/editorcontext.h
0213     interfaces/iastcontainer.h
0214     interfaces/icreateclasshelper.h
0215     interfaces/icontextbrowser.h
0216     interfaces/abbreviations.h
0217     DESTINATION ${KDE_INSTALL_INCLUDEDIR}/kdevplatform/language/interfaces COMPONENT Devel
0218 )
0219 
0220 install(FILES
0221     editor/persistentmovingrange.h
0222     editor/documentrange.h
0223     editor/documentcursor.h
0224     editor/cursorinrevision.h
0225     editor/rangeinrevision.h
0226     editor/modificationrevision.h
0227     editor/modificationrevisionset.h
0228     DESTINATION ${KDE_INSTALL_INCLUDEDIR}/kdevplatform/language/editor COMPONENT Devel
0229 )
0230 
0231 install(FILES
0232     backgroundparser/backgroundparser.h
0233     backgroundparser/parsejob.h
0234     backgroundparser/parseprojectjob.h
0235     backgroundparser/urlparselock.h
0236     backgroundparser/documentchangetracker.h
0237     DESTINATION ${KDE_INSTALL_INCLUDEDIR}/kdevplatform/language/backgroundparser COMPONENT Devel
0238 )
0239 
0240 install(FILES
0241     util/navigationtooltip.h
0242     util/setrepository.h
0243     util/basicsetrepository.h
0244     util/includeitem.h
0245     util/debuglanguageparserhelper.h
0246     util/kdevhash.h
0247     DESTINATION ${KDE_INSTALL_INCLUDEDIR}/kdevplatform/language/util COMPONENT Devel
0248 )
0249 
0250 install(FILES
0251     duchain/parsingenvironment.h
0252     duchain/duchain.h
0253     duchain/codemodel.h
0254     duchain/ducontext.h
0255     duchain/ducontextdata.h
0256     duchain/topducontext.h
0257     duchain/topducontextutils.h
0258     duchain/topducontextdata.h
0259     duchain/declaration.h
0260     duchain/declarationdata.h
0261     duchain/classmemberdeclaration.h
0262     duchain/classmemberdeclarationdata.h
0263     duchain/classfunctiondeclaration.h
0264     duchain/classdeclaration.h
0265     duchain/functiondefinition.h
0266     duchain/use.h
0267     duchain/forwarddeclaration.h
0268     duchain/duchainbase.h
0269     duchain/duchainpointer.h
0270     duchain/duchainlock.h
0271     duchain/identifier.h
0272     duchain/abstractfunctiondeclaration.h
0273     duchain/functiondeclaration.h
0274     duchain/stringhelpers.h
0275     duchain/namespacealiasdeclaration.h
0276     duchain/aliasdeclaration.h
0277     duchain/dumpdotgraph.h
0278     duchain/duchainutils.h
0279     duchain/duchaindumper.h
0280     duchain/declarationid.h
0281     duchain/appendedlist.h
0282     duchain/duchainregister.h
0283     duchain/persistentsymboltable.h
0284     duchain/instantiationinformation.h
0285     duchain/specializationstore.h
0286     duchain/indexedducontext.h
0287     duchain/indexedtopducontext.h
0288     duchain/localindexedducontext.h
0289     duchain/indexeddeclaration.h
0290     duchain/localindexeddeclaration.h
0291     duchain/definitions.h
0292     duchain/problem.h
0293     DESTINATION ${KDE_INSTALL_INCLUDEDIR}/kdevplatform/language/duchain COMPONENT Devel
0294 )
0295 
0296 install(FILES
0297     duchain/types/unsuretype.h
0298     duchain/types/identifiedtype.h
0299     duchain/types/typesystem.h
0300     duchain/types/typeregister.h
0301     duchain/types/typerepository.h
0302     duchain/types/typepointer.h
0303     duchain/types/typesystemdata.h
0304     duchain/types/abstracttype.h
0305     duchain/types/integraltype.h
0306     duchain/types/functiontype.h
0307     duchain/types/structuretype.h
0308     duchain/types/pointertype.h
0309     duchain/types/referencetype.h
0310     duchain/types/delayedtype.h
0311     duchain/types/arraytype.h
0312     duchain/types/indexedtype.h
0313     duchain/types/enumerationtype.h
0314     duchain/types/constantintegraltype.h
0315     duchain/types/enumeratortype.h
0316     duchain/types/alltypes.h
0317     duchain/types/typeutils.h
0318     duchain/types/typealiastype.h
0319     duchain/types/containertypes.h
0320     DESTINATION ${KDE_INSTALL_INCLUDEDIR}/kdevplatform/language/duchain/types COMPONENT Devel
0321 )
0322 
0323 install(FILES
0324     duchain/builders/abstractcontextbuilder.h
0325     duchain/builders/abstractdeclarationbuilder.h
0326     duchain/builders/abstracttypebuilder.h
0327     duchain/builders/abstractusebuilder.h
0328     duchain/builders/dynamiclanguageexpressionvisitor.h
0329     DESTINATION ${KDE_INSTALL_INCLUDEDIR}/kdevplatform/language/duchain/builders COMPONENT Devel
0330 )
0331 
0332 install(FILES
0333     codecompletion/codecompletion.h
0334     codecompletion/codecompletionworker.h
0335     codecompletion/codecompletionmodel.h
0336     codecompletion/codecompletionitem.h
0337     codecompletion/codecompletioncontext.h
0338     codecompletion/codecompletionitemgrouper.h
0339     codecompletion/codecompletionhelper.h
0340     codecompletion/normaldeclarationcompletionitem.h
0341     codecompletion/abstractincludefilecompletionitem.h
0342     codecompletion/codecompletiontesthelper.h
0343     DESTINATION ${KDE_INSTALL_INCLUDEDIR}/kdevplatform/language/codecompletion COMPONENT Devel
0344 )
0345 
0346 install(FILES
0347     codegen/applychangeswidget.h
0348     codegen/astchangeset.h
0349     codegen/duchainchangeset.h
0350     codegen/documentchangeset.h
0351     codegen/coderepresentation.h
0352     codegen/utilities.h
0353     codegen/templatesmodel.h
0354     codegen/templatepreviewicon.h
0355     codegen/templaterenderer.h
0356     codegen/templateengine.h
0357     codegen/sourcefiletemplate.h
0358     codegen/templateclassgenerator.h
0359     codegen/codedescription.h
0360     codegen/basicrefactoring.h
0361     DESTINATION ${KDE_INSTALL_INCLUDEDIR}/kdevplatform/language/codegen COMPONENT Devel
0362 )
0363 
0364 install(FILES
0365     duchain/navigation/usesnavigationcontext.h
0366     duchain/navigation/abstractnavigationcontext.h
0367     duchain/navigation/abstractdeclarationnavigationcontext.h
0368     duchain/navigation/abstractincludenavigationcontext.h
0369     duchain/navigation/abstractnavigationwidget.h
0370     duchain/navigation/navigationaction.h
0371     duchain/navigation/useswidget.h
0372     duchain/navigation/usescollector.h
0373     DESTINATION ${KDE_INSTALL_INCLUDEDIR}/kdevplatform/language/duchain/navigation COMPONENT Devel
0374 )
0375 
0376 install(FILES
0377     highlighting/codehighlighting.h
0378     highlighting/colorcache.h
0379     highlighting/configurablecolors.h
0380     DESTINATION ${KDE_INSTALL_INCLUDEDIR}/kdevplatform/language/highlighting COMPONENT Devel
0381 )
0382 
0383 install(FILES
0384     checks/dataaccess.h
0385     checks/dataaccessrepository.h
0386     checks/controlflowgraph.h
0387     checks/controlflownode.h
0388     DESTINATION ${KDE_INSTALL_INCLUDEDIR}/kdevplatform/language/checks COMPONENT Devel
0389 )
0390 
0391 install(FILES
0392     classmodel/classmodel.h
0393     classmodel/classmodelnode.h
0394     classmodel/classmodelnodescontroller.h
0395     classmodel/allclassesfolder.h
0396     classmodel/documentclassesfolder.h
0397     classmodel/projectfolder.h
0398     DESTINATION ${KDE_INSTALL_INCLUDEDIR}/kdevplatform/language/classmodel COMPONENT Devel
0399 )