forked from qt-creator/qt-creator
Add experimental clang code-model plug-in.
Previously known as the wip/clang branch. Contributors (in alphabetical order): - Christian Kamm <christian.d.kamm@nokia.com> - Erik Verbruggen <erik.verbruggen@digia.com> - Leandro Melo <leandro.melo@nokia.com> - Peter Kuemmel <syntheticpp@gmx.net> - Sergey Shambir <sergey.shambir.auto@gmail.com> Change-Id: I4c3ff600a19b6732641c1d5ef28236bf2cc17737 Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
124
src/plugins/clangcodemodel/clangcodemodel.pro
Normal file
124
src/plugins/clangcodemodel/clangcodemodel.pro
Normal file
@@ -0,0 +1,124 @@
|
||||
include(../../qtcreatorplugin.pri)
|
||||
include(clang_installation.pri)
|
||||
|
||||
message("Building with Clang from $$LLVM_INSTALL_DIR")
|
||||
|
||||
LIBS += $$LLVM_LIBS
|
||||
INCLUDEPATH += $$LLVM_INCLUDEPATH
|
||||
DEFINES += CLANGCODEMODEL_LIBRARY
|
||||
|
||||
unix:QMAKE_LFLAGS += -Wl,-rpath,\'$$LLVM_LIBDIR\'
|
||||
|
||||
contains(DEFINES, CLANG_COMPLETION) {
|
||||
HEADERS += clangcompletion.h clangcompleter.h completionproposalsbuilder.h
|
||||
SOURCES += clangcompletion.cpp clangcompleter.cpp completionproposalsbuilder.cpp
|
||||
}
|
||||
|
||||
contains(DEFINES, CLANG_HIGHLIGHTING) {
|
||||
HEADERS += cppcreatemarkers.h clanghighlightingsupport.h
|
||||
SOURCES += cppcreatemarkers.cpp clanghighlightingsupport.cpp
|
||||
}
|
||||
|
||||
HEADERS += clangutils.h \
|
||||
cxprettyprinter.h
|
||||
|
||||
SOURCES += clangutils.cpp \
|
||||
cxprettyprinter.cpp
|
||||
|
||||
SOURCES += \
|
||||
$$PWD/clangcodemodelplugin.cpp \
|
||||
$$PWD/sourcemarker.cpp \
|
||||
$$PWD/symbol.cpp \
|
||||
$$PWD/sourcelocation.cpp \
|
||||
$$PWD/unit.cpp \
|
||||
$$PWD/utils.cpp \
|
||||
$$PWD/utils_p.cpp \
|
||||
$$PWD/liveunitsmanager.cpp \
|
||||
$$PWD/semanticmarker.cpp \
|
||||
$$PWD/diagnostic.cpp \
|
||||
$$PWD/unsavedfiledata.cpp \
|
||||
$$PWD/fastindexer.cpp \
|
||||
$$PWD/pchinfo.cpp \
|
||||
$$PWD/pchmanager.cpp \
|
||||
$$PWD/clangprojectsettings.cpp \
|
||||
$$PWD/clangprojectsettingspropertiespage.cpp \
|
||||
$$PWD/raii/scopedclangoptions.cpp \
|
||||
$$PWD/clangmodelmanagersupport.cpp
|
||||
|
||||
HEADERS += \
|
||||
$$PWD/clangcodemodelplugin.h \
|
||||
$$PWD/clang_global.h \
|
||||
$$PWD/sourcemarker.h \
|
||||
$$PWD/constants.h \
|
||||
$$PWD/symbol.h \
|
||||
$$PWD/cxraii.h \
|
||||
$$PWD/sourcelocation.h \
|
||||
$$PWD/unit.h \
|
||||
$$PWD/utils.h \
|
||||
$$PWD/utils_p.h \
|
||||
$$PWD/liveunitsmanager.h \
|
||||
$$PWD/semanticmarker.h \
|
||||
$$PWD/diagnostic.h \
|
||||
$$PWD/unsavedfiledata.h \
|
||||
$$PWD/fastindexer.h \
|
||||
$$PWD/pchinfo.h \
|
||||
$$PWD/pchmanager.h \
|
||||
$$PWD/clangprojectsettings.h \
|
||||
$$PWD/clangprojectsettingspropertiespage.h \
|
||||
$$PWD/raii/scopedclangoptions.h \
|
||||
$$PWD/clangmodelmanagersupport.h
|
||||
|
||||
contains(DEFINES, CLANG_INDEXING) {
|
||||
HEADERS += \
|
||||
$$PWD/clangindexer.h \
|
||||
$$PWD/clangsymbolsearcher.h \
|
||||
$$PWD/index.h \
|
||||
$$PWD/indexer.h
|
||||
# $$PWD/dependencygraph.h \
|
||||
|
||||
SOURCES += \
|
||||
$$PWD/clangindexer.cpp \
|
||||
$$PWD/clangsymbolsearcher.cpp \
|
||||
$$PWD/index.cpp \
|
||||
$$PWD/indexer.cpp
|
||||
# $$PWD/dependencygraph.cpp \
|
||||
}
|
||||
|
||||
equals(TEST, 1) {
|
||||
RESOURCES += \
|
||||
$$PWD/test/clang_tests_database.qrc
|
||||
|
||||
HEADERS += \
|
||||
$$PWD/test/completiontesthelper.h
|
||||
|
||||
SOURCES += \
|
||||
$$PWD/test/completiontesthelper.cpp \
|
||||
$$PWD/test/clangcompletion_test.cpp
|
||||
|
||||
OTHER_FILES += \
|
||||
$$PWD/test/cxx_regression_1.cpp \
|
||||
$$PWD/test/cxx_regression_2.cpp \
|
||||
$$PWD/test/cxx_regression_3.cpp \
|
||||
$$PWD/test/cxx_regression_4.cpp \
|
||||
$$PWD/test/cxx_regression_5.cpp \
|
||||
$$PWD/test/cxx_regression_6.cpp \
|
||||
$$PWD/test/cxx_regression_7.cpp \
|
||||
$$PWD/test/cxx_regression_8.cpp \
|
||||
$$PWD/test/cxx_regression_9.cpp \
|
||||
$$PWD/test/cxx_snippets_1.cpp \
|
||||
$$PWD/test/cxx_snippets_2.cpp \
|
||||
$$PWD/test/cxx_snippets_3.cpp \
|
||||
test/cxx_snippets_4.cpp \
|
||||
test/objc_messages_1.mm \
|
||||
test/objc_messages_2.mm \
|
||||
test/objc_messages_3.mm
|
||||
}
|
||||
|
||||
FORMS += $$PWD/clangprojectsettingspropertiespage.ui
|
||||
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user