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 += \
|
|
|
|
|
$$PWD/clangcodemodelplugin.cpp \
|
2015-05-08 15:48:17 +02:00
|
|
|
$$PWD/clangcompletioncontextanalyzer.cpp \
|
2015-06-08 16:08:05 +02:00
|
|
|
$$PWD/clangcompletion.cpp \
|
2014-08-19 15:59:29 +02:00
|
|
|
$$PWD/clangeditordocumentparser.cpp \
|
|
|
|
|
$$PWD/clangeditordocumentprocessor.cpp \
|
2015-06-08 16:08:05 +02:00
|
|
|
$$PWD/clangmodelmanagersupport.cpp \
|
|
|
|
|
$$PWD/clangprojectsettings.cpp \
|
|
|
|
|
$$PWD/clangprojectsettingspropertiespage.cpp \
|
|
|
|
|
$$PWD/clangutils.cpp \
|
2015-06-16 11:56:00 +02:00
|
|
|
$$PWD/clangbackendipcintegration.cpp \
|
2015-05-08 15:48:17 +02:00
|
|
|
$$PWD/completionchunkstotextconverter.cpp \
|
2015-06-08 16:08:05 +02:00
|
|
|
$$PWD/cppcreatemarkers.cpp \
|
|
|
|
|
$$PWD/cxprettyprinter.cpp \
|
2013-12-10 14:37:32 +01:00
|
|
|
$$PWD/diagnostic.cpp \
|
|
|
|
|
$$PWD/fastindexer.cpp \
|
|
|
|
|
$$PWD/pchinfo.cpp \
|
|
|
|
|
$$PWD/pchmanager.cpp \
|
|
|
|
|
$$PWD/raii/scopedclangoptions.cpp \
|
2015-06-08 16:08:05 +02:00
|
|
|
$$PWD/semanticmarker.cpp \
|
|
|
|
|
$$PWD/sourcelocation.cpp \
|
|
|
|
|
$$PWD/sourcemarker.cpp \
|
|
|
|
|
$$PWD/symbol.cpp \
|
|
|
|
|
$$PWD/unit.cpp \
|
|
|
|
|
$$PWD/unsavedfiledata.cpp \
|
|
|
|
|
$$PWD/utils.cpp \
|
|
|
|
|
$$PWD/utils_p.cpp
|
2013-12-10 14:37:32 +01:00
|
|
|
|
|
|
|
|
HEADERS += \
|
|
|
|
|
$$PWD/clangcodemodelplugin.h \
|
2015-05-08 15:48:17 +02:00
|
|
|
$$PWD/clangcompletioncontextanalyzer.h \
|
2015-06-08 16:08:05 +02:00
|
|
|
$$PWD/clangcompletion.h \
|
2014-08-19 15:59:29 +02:00
|
|
|
$$PWD/clangeditordocumentparser.h \
|
|
|
|
|
$$PWD/clangeditordocumentprocessor.h \
|
2013-12-10 14:37:32 +01:00
|
|
|
$$PWD/clang_global.h \
|
2015-06-08 16:08:05 +02:00
|
|
|
$$PWD/clangmodelmanagersupport.h \
|
|
|
|
|
$$PWD/clangprojectsettings.h \
|
|
|
|
|
$$PWD/clangprojectsettingspropertiespage.h \
|
|
|
|
|
$$PWD/clangutils.h \
|
2015-06-16 11:56:00 +02:00
|
|
|
$$PWD/clangbackendipcintegration.h \
|
2015-05-08 15:48:17 +02:00
|
|
|
$$PWD/completionchunkstotextconverter.h \
|
2013-12-10 14:37:32 +01:00
|
|
|
$$PWD/constants.h \
|
2015-06-08 16:08:05 +02:00
|
|
|
$$PWD/cppcreatemarkers.h \
|
|
|
|
|
$$PWD/cxprettyprinter.h \
|
2013-12-10 14:37:32 +01:00
|
|
|
$$PWD/cxraii.h \
|
|
|
|
|
$$PWD/diagnostic.h \
|
|
|
|
|
$$PWD/fastindexer.h \
|
|
|
|
|
$$PWD/pchinfo.h \
|
|
|
|
|
$$PWD/pchmanager.h \
|
|
|
|
|
$$PWD/raii/scopedclangoptions.h \
|
2015-06-08 16:08:05 +02:00
|
|
|
$$PWD/semanticmarker.h \
|
|
|
|
|
$$PWD/sourcelocation.h \
|
|
|
|
|
$$PWD/sourcemarker.h \
|
|
|
|
|
$$PWD/symbol.h \
|
|
|
|
|
$$PWD/unit.h \
|
|
|
|
|
$$PWD/unsavedfiledata.h \
|
|
|
|
|
$$PWD/utils.h \
|
|
|
|
|
$$PWD/utils_p.h
|
2014-08-19 15:59:29 +02:00
|
|
|
|
2013-12-10 14:37:32 +01:00
|
|
|
contains(DEFINES, CLANG_INDEXING) {
|
|
|
|
|
HEADERS += \
|
|
|
|
|
$$PWD/clangindexer.h \
|
|
|
|
|
$$PWD/index.h \
|
|
|
|
|
$$PWD/indexer.h
|
|
|
|
|
# $$PWD/dependencygraph.h \
|
|
|
|
|
|
|
|
|
|
SOURCES += \
|
|
|
|
|
$$PWD/clangindexer.cpp \
|
|
|
|
|
$$PWD/index.cpp \
|
|
|
|
|
$$PWD/indexer.cpp
|
|
|
|
|
# $$PWD/dependencygraph.cpp \
|
|
|
|
|
}
|
|
|
|
|
|
2015-06-08 16:08:05 +02:00
|
|
|
FORMS += $$PWD/clangprojectsettingspropertiespage.ui
|
|
|
|
|
|
2013-12-10 14:37:32 +01:00
|
|
|
equals(TEST, 1) {
|
|
|
|
|
RESOURCES += \
|
|
|
|
|
$$PWD/test/clang_tests_database.qrc
|
|
|
|
|
|
|
|
|
|
HEADERS += \
|
2015-05-08 15:48:17 +02:00
|
|
|
$$PWD/test/clangcodecompletion_test.h \
|
2015-07-02 12:11:18 +02:00
|
|
|
$$PWD/test/clangcompletioncontextanalyzertest.h
|
2013-12-10 14:37:32 +01:00
|
|
|
|
|
|
|
|
SOURCES += \
|
2015-05-08 15:48:17 +02:00
|
|
|
$$PWD/test/clangcodecompletion_test.cpp \
|
2015-07-02 12:11:18 +02:00
|
|
|
$$PWD/test/clangcompletioncontextanalyzertest.cpp
|
|
|
|
|
|
2013-12-10 14:37:32 +01:00
|
|
|
|
2014-09-12 14:34:28 +02:00
|
|
|
DISTFILES += \
|
2015-05-08 15:48:17 +02:00
|
|
|
$$PWD/test/mysource.cpp \
|
|
|
|
|
$$PWD/test/myheader.cpp \
|
|
|
|
|
$$PWD/test/completionWithProject.cpp \
|
|
|
|
|
$$PWD/test/memberCompletion.cpp \
|
|
|
|
|
$$PWD/test/doxygenKeywordsCompletion.cpp \
|
|
|
|
|
$$PWD/test/preprocessorKeywordsCompletion.cpp \
|
2015-07-02 12:11:18 +02:00
|
|
|
$$PWD/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
|
|
|
|
|
}
|