2013-12-10 14:37:32 +01:00
|
|
|
include(../../qtcreatorplugin.pri)
|
2015-06-01 18:51:55 +02:00
|
|
|
include(../../shared/clang/clang_installation.pri)
|
2013-12-10 14:37:32 +01:00
|
|
|
|
|
|
|
|
LIBS += $$LLVM_LIBS
|
|
|
|
|
INCLUDEPATH += $$LLVM_INCLUDEPATH
|
|
|
|
|
DEFINES += CLANGCODEMODEL_LIBRARY
|
|
|
|
|
|
2015-06-08 16:08:05 +02:00
|
|
|
# The following defines are used to determine the clang include path for intrinsics
|
|
|
|
|
DEFINES += CLANG_VERSION=\\\"$${LLVM_VERSION}\\\"
|
|
|
|
|
DEFINES += "\"CLANG_RESOURCE_DIR=\\\"$${LLVM_LIBDIR}/clang/$${LLVM_VERSION}/include\\\"\""
|
2013-12-10 14:37:32 +01:00
|
|
|
|
2015-06-08 16:08:05 +02:00
|
|
|
unix:QMAKE_LFLAGS += -Wl,-rpath,\'$$LLVM_LIBDIR\'
|
2013-12-10 14:37:32 +01:00
|
|
|
|
|
|
|
|
SOURCES += \
|
2015-07-23 13:01:02 +02:00
|
|
|
activationsequencecontextprocessor.cpp \
|
2015-07-08 14:07:13 +02:00
|
|
|
activationsequenceprocessor.cpp \
|
2015-07-06 12:05:02 +02:00
|
|
|
clangassistproposal.cpp \
|
|
|
|
|
clangassistproposalitem.cpp \
|
|
|
|
|
clangassistproposalmodel.cpp \
|
|
|
|
|
clangbackendipcintegration.cpp \
|
|
|
|
|
clangcodemodelplugin.cpp \
|
|
|
|
|
clangcompletionassistinterface.cpp \
|
|
|
|
|
clangcompletionassistprocessor.cpp \
|
|
|
|
|
clangcompletionassistprovider.cpp \
|
|
|
|
|
clangcompletioncontextanalyzer.cpp \
|
2015-09-04 12:15:17 +02:00
|
|
|
clangdiagnosticfilter.cpp \
|
|
|
|
|
clangdiagnosticmanager.cpp \
|
2015-07-06 12:05:02 +02:00
|
|
|
clangeditordocumentparser.cpp \
|
|
|
|
|
clangeditordocumentprocessor.cpp \
|
2015-08-24 18:26:09 +02:00
|
|
|
clangfixitoperation.cpp \
|
|
|
|
|
clangfixitoperationsextractor.cpp \
|
2015-07-06 12:05:02 +02:00
|
|
|
clangfunctionhintmodel.cpp \
|
|
|
|
|
clangmodelmanagersupport.cpp \
|
|
|
|
|
clangprojectsettings.cpp \
|
|
|
|
|
clangprojectsettingspropertiespage.cpp \
|
2015-08-31 16:28:26 +02:00
|
|
|
clangtextmark.cpp \
|
2015-07-06 12:05:02 +02:00
|
|
|
clangutils.cpp \
|
|
|
|
|
completionchunkstotextconverter.cpp \
|
|
|
|
|
cppcreatemarkers.cpp \
|
|
|
|
|
cxprettyprinter.cpp \
|
|
|
|
|
diagnostic.cpp \
|
|
|
|
|
fastindexer.cpp \
|
|
|
|
|
pchinfo.cpp \
|
|
|
|
|
pchmanager.cpp \
|
|
|
|
|
raii/scopedclangoptions.cpp \
|
|
|
|
|
semanticmarker.cpp \
|
|
|
|
|
sourcelocation.cpp \
|
|
|
|
|
sourcemarker.cpp \
|
|
|
|
|
symbol.cpp \
|
|
|
|
|
unit.cpp \
|
|
|
|
|
unsavedfiledata.cpp \
|
|
|
|
|
utils.cpp \
|
|
|
|
|
utils_p.cpp
|
|
|
|
|
|
2013-12-10 14:37:32 +01:00
|
|
|
|
|
|
|
|
HEADERS += \
|
2015-07-23 13:01:02 +02:00
|
|
|
activationsequencecontextprocessor.h \
|
2015-07-08 14:07:13 +02:00
|
|
|
activationsequenceprocessor.h \
|
2015-07-06 12:05:02 +02:00
|
|
|
clangassistproposal.h \
|
|
|
|
|
clangassistproposalitem.h \
|
|
|
|
|
clangassistproposalmodel.h \
|
|
|
|
|
clangbackendipcintegration.h \
|
|
|
|
|
clangcodemodelplugin.h \
|
|
|
|
|
clangcompletionassistinterface.h \
|
|
|
|
|
clangcompletionassistprocessor.h \
|
|
|
|
|
clangcompletionassistprovider.h \
|
|
|
|
|
clangcompletioncontextanalyzer.h \
|
2015-09-04 12:15:17 +02:00
|
|
|
clangdiagnosticfilter.h \
|
|
|
|
|
clangdiagnosticmanager.h \
|
2015-07-06 12:05:02 +02:00
|
|
|
clangeditordocumentparser.h \
|
|
|
|
|
clangeditordocumentprocessor.h \
|
2015-08-24 18:26:09 +02:00
|
|
|
clangfixitoperation.h \
|
|
|
|
|
clangfixitoperationsextractor.h \
|
2015-07-06 12:05:02 +02:00
|
|
|
clangfunctionhintmodel.h \
|
|
|
|
|
clang_global.h \
|
|
|
|
|
clangmodelmanagersupport.h \
|
|
|
|
|
clangprojectsettings.h \
|
|
|
|
|
clangprojectsettingspropertiespage.h \
|
2015-08-31 16:28:26 +02:00
|
|
|
clangtextmark.h \
|
2015-07-06 12:05:02 +02:00
|
|
|
clangutils.h \
|
|
|
|
|
completionchunkstotextconverter.h \
|
|
|
|
|
constants.h \
|
|
|
|
|
cppcreatemarkers.h \
|
|
|
|
|
cxprettyprinter.h \
|
|
|
|
|
cxraii.h \
|
|
|
|
|
diagnostic.h \
|
|
|
|
|
fastindexer.h \
|
|
|
|
|
pchinfo.h \
|
|
|
|
|
pchmanager.h \
|
|
|
|
|
raii/scopedclangoptions.h \
|
|
|
|
|
semanticmarker.h \
|
|
|
|
|
sourcelocation.h \
|
|
|
|
|
sourcemarker.h \
|
|
|
|
|
symbol.h \
|
|
|
|
|
unit.h \
|
|
|
|
|
unsavedfiledata.h \
|
|
|
|
|
utils.h \
|
|
|
|
|
utils_p.h
|
|
|
|
|
|
2014-08-19 15:59:29 +02:00
|
|
|
|
2013-12-10 14:37:32 +01:00
|
|
|
contains(DEFINES, CLANG_INDEXING) {
|
|
|
|
|
HEADERS += \
|
2015-07-06 12:05:02 +02:00
|
|
|
clangindexer.h \
|
|
|
|
|
index.h \
|
|
|
|
|
indexer.h
|
|
|
|
|
# dependencygraph.h \
|
2013-12-10 14:37:32 +01:00
|
|
|
|
|
|
|
|
SOURCES += \
|
2015-07-06 12:05:02 +02:00
|
|
|
clangindexer.cpp \
|
|
|
|
|
index.cpp \
|
|
|
|
|
indexer.cpp
|
|
|
|
|
# dependencygraph.cpp \
|
2013-12-10 14:37:32 +01:00
|
|
|
}
|
|
|
|
|
|
2015-07-06 12:05:02 +02:00
|
|
|
FORMS += clangprojectsettingspropertiespage.ui
|
2015-06-08 16:08:05 +02:00
|
|
|
|
2013-12-10 14:37:32 +01:00
|
|
|
equals(TEST, 1) {
|
|
|
|
|
RESOURCES += \
|
2015-07-06 12:05:02 +02:00
|
|
|
test/clang_tests_database.qrc
|
2013-12-10 14:37:32 +01:00
|
|
|
|
|
|
|
|
HEADERS += \
|
2015-07-23 13:01:02 +02:00
|
|
|
test/clangcodecompletion_test.h
|
2013-12-10 14:37:32 +01:00
|
|
|
|
|
|
|
|
SOURCES += \
|
2015-07-23 13:01:02 +02:00
|
|
|
test/clangcodecompletion_test.cpp
|
2013-12-10 14:37:32 +01:00
|
|
|
|
2014-09-12 14:34:28 +02:00
|
|
|
DISTFILES += \
|
2015-07-06 12:05:02 +02:00
|
|
|
test/mysource.cpp \
|
|
|
|
|
test/myheader.cpp \
|
|
|
|
|
test/completionWithProject.cpp \
|
|
|
|
|
test/memberCompletion.cpp \
|
|
|
|
|
test/doxygenKeywordsCompletion.cpp \
|
|
|
|
|
test/preprocessorKeywordsCompletion.cpp \
|
|
|
|
|
test/includeDirectiveCompletion.cpp
|
2013-12-10 14:37:32 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
macx {
|
|
|
|
|
LIBCLANG_VERSION=3.3
|
|
|
|
|
POSTL = install_name_tool -change "@executable_path/../lib/libclang.$${LIBCLANG_VERSION}.dylib" "$$LLVM_INSTALL_DIR/lib/libclang.$${LIBCLANG_VERSION}.dylib" "\"$${DESTDIR}/lib$${TARGET}.dylib\"" $$escape_expand(\\n\\t)
|
|
|
|
|
!isEmpty(QMAKE_POST_LINK):QMAKE_POST_LINK = $$escape_expand(\\n\\t)$$QMAKE_POST_LINK
|
|
|
|
|
QMAKE_POST_LINK = $$POSTL $$QMAKE_POST_LINK
|
|
|
|
|
}
|