Files
qt-creator/src/plugins/cpptools/cpptools.qbs

156 lines
4.8 KiB
QML
Raw Normal View History

import qbs.base 1.0
import qbs.FileInfo
import QtcPlugin
QtcPlugin {
name: "CppTools"
Depends { name: "Qt.widgets" }
Depends { name: "Core" }
Depends { name: "Find" }
Depends { name: "TextEditor" }
Depends { name: "ProjectExplorer" }
Depends { name: "Locator" }
Depends { name: "CPlusPlus" }
Depends { name: "LanguageUtils" }
Mute MSVC safety warnings Botan: C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\xutility:2227: warning: C4996: 'std::_Copy_impl': Function call with parameters that may be unsafe - this call relies on the caller to check that the passed values are correct. To disable this warning, use -D_SCL_SECURE_NO_WARNINGS. See documentation on how to use Visual C++ 'Checked Iterators' c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\xutility:2212: see declaration of 'std::_Copy_impl' D:\dev\qt-creator\src\libs\3rdparty\botan\botan.cpp:7248: see reference to function template instantiation '_OutIt std::copy<const Botan::u32bit*,T*>(_InIt,_InIt,_OutIt)' being compiled with [ _OutIt=Botan::word *, T=Botan::word, _InIt=const Botan::u32bit * ] CppTools: C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\xutility:2873: warning: C4996: 'std::_Mismatch1': Function call with parameters that may be unsafe - this call relies on the caller to check that the passed values are correct. To disable this warning, use -D_SCL_SECURE_NO_WARNINGS. See documentation on how to use Visual C++ 'Checked Iterators' C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\xutility:2856: see declaration of 'std::_Mismatch1' D:\dev\qt-creator\src\plugins\cpptools\symbolfinder.cpp:388: see reference to function template instantiation 'std::pair<_Ty1,_Ty2> std::mismatch<QString::const_iterator,QString::const_iterator>(_InIt1,_InIt1,_InIt2)' being compiled with [ _Ty1=QString::const_iterator, _Ty2=QString::const_iterator, _InIt1=QString::const_iterator, _InIt2=QString::const_iterator ] Change-Id: I09a477e755c4555101b064271f10c08a69576e33 Reviewed-by: Christian Kandeler <christian.kandeler@digia.com> Reviewed-by: David Schulz <david.schulz@digia.com> Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
2013-09-20 11:11:55 +02:00
cpp.defines: base
Properties {
condition: qbs.toolchain.contains("msvc")
cpp.defines: base.concat("_SCL_SECURE_NO_WARNINGS")
}
files: [
"abstracteditorsupport.cpp",
"abstracteditorsupport.h",
"commentssettings.cpp",
"commentssettings.h",
"completionsettingspage.cpp",
"completionsettingspage.h",
"completionsettingspage.ui",
"cppchecksymbols.cpp",
"cppchecksymbols.h",
"cppclassesfilter.cpp",
"cppclassesfilter.h",
"cppcodeformatter.cpp",
"cppcodeformatter.h",
"cppcodestylepreferences.cpp",
"cppcodestylepreferences.h",
"cppcodestylepreferencesfactory.cpp",
"cppcodestylepreferencesfactory.h",
"cppcodestylesettings.cpp",
"cppcodestylesettings.h",
"cppcodestylesettingspage.cpp",
"cppcodestylesettingspage.h",
"cppcodestylesettingspage.ui",
"cppcompletionassist.cpp",
"cppcompletionassist.h",
"cppcompletionassistprovider.cpp",
"cppcompletionassistprovider.h",
"cppcurrentdocumentfilter.cpp",
"cppcurrentdocumentfilter.h",
"cppdoxygen.cpp",
"cppdoxygen.h",
"cppfilesettingspage.cpp",
"cppfilesettingspage.h",
"cppfilesettingspage.ui",
"cppfindreferences.cpp",
"cppfindreferences.h",
"cppfunctionsfilter.cpp",
"cppfunctionsfilter.h",
"cpphighlightingsupport.cpp",
"cpphighlightingsupport.h",
"cpphighlightingsupportinternal.cpp",
"cpphighlightingsupportinternal.h",
"cppindexingsupport.cpp",
"cppindexingsupport.h",
"cpplocalsymbols.cpp",
"cpplocalsymbols.h",
"cpplocatordata.cpp",
"cpplocatordata.h",
"cpplocatorfilter.cpp",
"cpplocatorfilter.h",
"cppmodelmanager.cpp",
"cppmodelmanager.h",
"cppmodelmanagersupport.h",
"cppmodelmanagersupport.cpp",
"cppmodelmanagersupportinternal.h",
"cppmodelmanagersupportinternal.cpp",
"cppmodelmanagerinterface.cpp",
"cppmodelmanagerinterface.h",
"cppqtstyleindenter.cpp",
"cppqtstyleindenter.h",
"cpppointerdeclarationformatter.cpp",
"cpppointerdeclarationformatter.h",
"cppprojectfile.cpp",
"cppprojectfile.h",
"cpprefactoringchanges.cpp",
"cpprefactoringchanges.h",
"cppsemanticinfo.cpp",
"cppsemanticinfo.h",
"cpptools_global.h",
"cpptoolsconstants.h",
"cpptoolseditorsupport.cpp",
"cpptoolseditorsupport.h",
"cpptoolsplugin.cpp",
"cpptoolsplugin.h",
"cpptoolsreuse.cpp",
"cpptoolsreuse.h",
"cpptoolssettings.cpp",
"cpptoolssettings.h",
"doxygengenerator.cpp",
"doxygengenerator.h",
"functionutils.cpp",
"functionutils.h",
"insertionpointlocator.cpp",
"insertionpointlocator.h",
"searchsymbols.cpp",
"searchsymbols.h",
"symbolfinder.cpp",
"symbolfinder.h",
"symbolsfindfilter.cpp",
"symbolsfindfilter.h",
"typehierarchybuilder.cpp",
"typehierarchybuilder.h",
"builtinindexingsupport.cpp",
"builtinindexingsupport.h",
"cpppreprocessor.cpp",
"cpppreprocessor.h",
"includeutils.cpp",
"includeutils.h",
"cppcodemodelsettings.cpp",
"cppcodemodelsettings.h",
"cppcodemodelsettingspage.cpp",
"cppcodemodelsettingspage.h",
"cppcodemodelsettingspage.ui",
"cppsnapshotupdater.cpp",
"cppsnapshotupdater.h",
]
Group {
name: "Tests"
condition: project.testsEnabled
files: [
"cppcodegen_test.cpp",
"cppcompletion_test.cpp",
"cppheadersource_test.cpp",
"cppmodelmanager_test.cpp",
"modelmanagertesthelper.cpp", "modelmanagertesthelper.h",
"cpppointerdeclarationformatter_test.cpp",
"cpplocatorfilter_test.cpp",
"symbolsearcher_test.cpp",
"cpppreprocessor_test.cpp",
"cpppreprocessertesthelper.cpp", "cpppreprocessertesthelper.h",
"typehierarchybuilder_test.cpp"
]
cpp.defines: outer.concat(['SRCDIR="' + FileInfo.path(filePath) + '"'])
}
Export {
Depends { name: "CPlusPlus" }
Depends { name: "Qt.concurrent" }
}
}