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-11-27 16:02:38 +01:00
|
|
|
# The following defines are used to determine the clang include path for intrinsics.
|
2015-06-08 16:08:05 +02:00
|
|
|
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 \
|
2015-11-18 17:07:44 +01:00
|
|
|
highlightingmarksreporter.cpp \
|
2015-07-06 12:05:02 +02:00
|
|
|
pchinfo.cpp \
|
|
|
|
|
pchmanager.cpp \
|
|
|
|
|
raii/scopedclangoptions.cpp \
|
|
|
|
|
unit.cpp \
|
2015-11-27 16:02:38 +01:00
|
|
|
unsavedfiledata.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 \
|
2015-11-18 17:07:44 +01:00
|
|
|
highlightingmarksreporter.h \
|
2015-07-06 12:05:02 +02:00
|
|
|
pchinfo.h \
|
|
|
|
|
pchmanager.h \
|
|
|
|
|
raii/scopedclangoptions.h \
|
|
|
|
|
unit.h \
|
2015-11-27 16:02:38 +01:00
|
|
|
unsavedfiledata.h
|
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) {
|
|
|
|
|
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
|
|
|
|
2015-09-17 11:53:58 +02:00
|
|
|
RESOURCES += test/data/clangtestdata.qrc
|
|
|
|
|
OTHER_FILES += $$files(test/data/*)
|
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
|
|
|
|
|
}
|