forked from qt-creator/qt-creator
Clang: Fix clang refactoring enabling
Change-Id: Icdd539c4e537e5aab55943010055c9719dd622fe Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
@@ -3,6 +3,8 @@ include(clangpchmanager-source.pri)
|
|||||||
include(../../shared/clang/clang_installation.pri)
|
include(../../shared/clang/clang_installation.pri)
|
||||||
include(../../shared/clang/clang_defines.pri)
|
include(../../shared/clang/clang_defines.pri)
|
||||||
|
|
||||||
|
requires(!isEmpty(LIBTOOLING_LIBS))
|
||||||
|
|
||||||
HEADERS += \
|
HEADERS += \
|
||||||
$$PWD/clangpchmanagerplugin.h \
|
$$PWD/clangpchmanagerplugin.h \
|
||||||
qtcreatorprojectupdater.h
|
qtcreatorprojectupdater.h
|
||||||
|
@@ -4,6 +4,8 @@ include(../../shared/clang/clang_installation.pri)
|
|||||||
|
|
||||||
include(../../shared/clang/clang_defines.pri)
|
include(../../shared/clang/clang_defines.pri)
|
||||||
|
|
||||||
|
requires(!isEmpty(LIBTOOLING_LIBS))
|
||||||
|
|
||||||
HEADERS += \
|
HEADERS += \
|
||||||
$$PWD/clangrefactoringplugin.h \
|
$$PWD/clangrefactoringplugin.h \
|
||||||
qtcreatorsearch.h \
|
qtcreatorsearch.h \
|
||||||
|
@@ -101,8 +101,8 @@ isEmpty(LLVM_INSTALL_DIR):LLVM_INSTALL_DIR=$$(LLVM_INSTALL_DIR)
|
|||||||
exists($$LLVM_INSTALL_DIR) {
|
exists($$LLVM_INSTALL_DIR) {
|
||||||
SUBDIRS += clangcodemodel
|
SUBDIRS += clangcodemodel
|
||||||
|
|
||||||
LIBTOOLING_LIBS=$$(LIBTOOLING_LIBS)
|
QTC_NO_CLANG_LIBTOOLING=$$(QTC_NO_CLANG_LIBTOOLING)
|
||||||
!isEmpty(LIBTOOLING_LIBS) {
|
isEmpty(QTC_NO_CLANG_LIBTOOLING) {
|
||||||
SUBDIRS += clangrefactoring
|
SUBDIRS += clangrefactoring
|
||||||
SUBDIRS += clangpchmanager
|
SUBDIRS += clangpchmanager
|
||||||
} else {
|
} else {
|
||||||
|
@@ -5,6 +5,8 @@ include(../../qtcreatortool.pri)
|
|||||||
include(../../shared/clang/clang_installation.pri)
|
include(../../shared/clang/clang_installation.pri)
|
||||||
include(source/clangpchmanagerbackend-source.pri)
|
include(source/clangpchmanagerbackend-source.pri)
|
||||||
|
|
||||||
|
requires(!isEmpty(LIBTOOLING_LIBS))
|
||||||
|
|
||||||
win32 {
|
win32 {
|
||||||
LLVM_BUILDMODE = $$system($$llvm_config --build-mode, lines)
|
LLVM_BUILDMODE = $$system($$llvm_config --build-mode, lines)
|
||||||
CONFIG(debug, debug|release):requires(equals(LLVM_BUILDMODE, "Debug"))
|
CONFIG(debug, debug|release):requires(equals(LLVM_BUILDMODE, "Debug"))
|
||||||
|
@@ -5,6 +5,8 @@ include(../../qtcreatortool.pri)
|
|||||||
include(../../shared/clang/clang_installation.pri)
|
include(../../shared/clang/clang_installation.pri)
|
||||||
include(source/clangrefactoringbackend-source.pri)
|
include(source/clangrefactoringbackend-source.pri)
|
||||||
|
|
||||||
|
requires(!isEmpty(LIBTOOLING_LIBS))
|
||||||
|
|
||||||
win32 {
|
win32 {
|
||||||
LLVM_BUILDMODE = $$system($$llvm_config --build-mode, lines)
|
LLVM_BUILDMODE = $$system($$llvm_config --build-mode, lines)
|
||||||
CONFIG(debug, debug|release):requires(equals(LLVM_BUILDMODE, "Debug"))
|
CONFIG(debug, debug|release):requires(equals(LLVM_BUILDMODE, "Debug"))
|
||||||
|
@@ -24,8 +24,8 @@ isEmpty(LLVM_INSTALL_DIR):LLVM_INSTALL_DIR=$$(LLVM_INSTALL_DIR)
|
|||||||
exists($$LLVM_INSTALL_DIR) {
|
exists($$LLVM_INSTALL_DIR) {
|
||||||
SUBDIRS += clangbackend
|
SUBDIRS += clangbackend
|
||||||
|
|
||||||
LIBTOOLING_LIBS=$$(LIBTOOLING_LIBS)
|
QTC_NO_CLANG_LIBTOOLING=$$(QTC_NO_CLANG_LIBTOOLING)
|
||||||
!isEmpty(LIBTOOLING_LIBS) {
|
isEmpty(QTC_NO_CLANG_LIBTOOLING) {
|
||||||
SUBDIRS += clangrefactoringbackend
|
SUBDIRS += clangrefactoringbackend
|
||||||
SUBDIRS += clangpchmanagerbackend
|
SUBDIRS += clangpchmanagerbackend
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user