2012-02-09 14:30:09 +01:00
|
|
|
import qbs.base 1.0
|
2013-07-09 13:54:46 +02:00
|
|
|
import qbs.FileInfo
|
2012-02-09 14:30:09 +01:00
|
|
|
|
2013-10-02 17:52:45 +02:00
|
|
|
import QtcPlugin
|
2012-02-09 14:30:09 +01:00
|
|
|
|
|
|
|
|
QtcPlugin {
|
|
|
|
|
name: "CppTools"
|
|
|
|
|
|
2012-06-19 15:36:27 +08:00
|
|
|
Depends { name: "Qt.widgets" }
|
2012-02-09 14:30:09 +01:00
|
|
|
Depends { name: "Core" }
|
2012-02-27 21:09:42 +02:00
|
|
|
Depends { name: "Find" }
|
2012-02-09 14:30:09 +01:00
|
|
|
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")
|
|
|
|
|
}
|
|
|
|
|
|
2012-02-09 14:30:09 +01:00
|
|
|
files: [
|
|
|
|
|
"abstracteditorsupport.cpp",
|
|
|
|
|
"abstracteditorsupport.h",
|
|
|
|
|
"commentssettings.cpp",
|
|
|
|
|
"commentssettings.h",
|
|
|
|
|
"completionsettingspage.cpp",
|
|
|
|
|
"completionsettingspage.h",
|
|
|
|
|
"completionsettingspage.ui",
|
2012-09-30 13:50:31 +02:00
|
|
|
"cppchecksymbols.cpp",
|
|
|
|
|
"cppchecksymbols.h",
|
2012-02-09 14:30:09 +01:00
|
|
|
"cppclassesfilter.cpp",
|
|
|
|
|
"cppclassesfilter.h",
|
|
|
|
|
"cppcodeformatter.cpp",
|
|
|
|
|
"cppcodeformatter.h",
|
|
|
|
|
"cppcodestylepreferences.cpp",
|
|
|
|
|
"cppcodestylepreferences.h",
|
|
|
|
|
"cppcodestylepreferencesfactory.cpp",
|
2012-09-30 13:50:31 +02:00
|
|
|
"cppcodestylepreferencesfactory.h",
|
2012-02-09 14:30:09 +01:00
|
|
|
"cppcodestylesettings.cpp",
|
|
|
|
|
"cppcodestylesettings.h",
|
|
|
|
|
"cppcodestylesettingspage.cpp",
|
|
|
|
|
"cppcodestylesettingspage.h",
|
|
|
|
|
"cppcodestylesettingspage.ui",
|
|
|
|
|
"cppcompletionassist.cpp",
|
|
|
|
|
"cppcompletionassist.h",
|
2012-09-30 13:50:31 +02:00
|
|
|
"cppcompletionassistprovider.cpp",
|
|
|
|
|
"cppcompletionassistprovider.h",
|
2012-02-09 14:30:09 +01:00
|
|
|
"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",
|
2012-09-30 13:50:31 +02:00
|
|
|
"cpphighlightingsupportinternal.cpp",
|
|
|
|
|
"cpphighlightingsupportinternal.h",
|
2012-10-24 16:06:36 +02:00
|
|
|
"cppindexingsupport.cpp",
|
|
|
|
|
"cppindexingsupport.h",
|
2012-09-30 13:50:31 +02:00
|
|
|
"cpplocalsymbols.cpp",
|
|
|
|
|
"cpplocalsymbols.h",
|
2013-08-23 15:07:19 +02:00
|
|
|
"cpplocatordata.cpp",
|
|
|
|
|
"cpplocatordata.h",
|
2012-02-09 14:30:09 +01:00
|
|
|
"cpplocatorfilter.cpp",
|
|
|
|
|
"cpplocatorfilter.h",
|
|
|
|
|
"cppmodelmanager.cpp",
|
|
|
|
|
"cppmodelmanager.h",
|
2013-09-04 18:15:08 +02:00
|
|
|
"cppmodelmanagersupport.h",
|
|
|
|
|
"cppmodelmanagersupport.cpp",
|
|
|
|
|
"cppmodelmanagersupportinternal.h",
|
|
|
|
|
"cppmodelmanagersupportinternal.cpp",
|
2013-04-02 11:52:31 +02:00
|
|
|
"cppmodelmanagerinterface.cpp",
|
|
|
|
|
"cppmodelmanagerinterface.h",
|
2012-02-09 14:30:09 +01:00
|
|
|
"cppqtstyleindenter.cpp",
|
|
|
|
|
"cppqtstyleindenter.h",
|
2013-01-14 14:45:36 +01:00
|
|
|
"cpppointerdeclarationformatter.cpp",
|
|
|
|
|
"cpppointerdeclarationformatter.h",
|
2013-03-25 14:25:40 +01:00
|
|
|
"cppprojectfile.cpp",
|
|
|
|
|
"cppprojectfile.h",
|
2012-02-09 14:30:09 +01:00
|
|
|
"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",
|
2013-12-10 11:38:16 +01:00
|
|
|
"functionutils.cpp",
|
|
|
|
|
"functionutils.h",
|
2012-02-09 14:30:09 +01:00
|
|
|
"insertionpointlocator.cpp",
|
|
|
|
|
"insertionpointlocator.h",
|
|
|
|
|
"searchsymbols.cpp",
|
|
|
|
|
"searchsymbols.h",
|
|
|
|
|
"symbolfinder.cpp",
|
|
|
|
|
"symbolfinder.h",
|
|
|
|
|
"symbolsfindfilter.cpp",
|
|
|
|
|
"symbolsfindfilter.h",
|
2013-04-02 11:52:31 +02:00
|
|
|
"typehierarchybuilder.cpp",
|
|
|
|
|
"typehierarchybuilder.h",
|
2012-11-27 12:26:42 +01:00
|
|
|
"builtinindexingsupport.cpp",
|
2013-04-23 15:04:36 +02:00
|
|
|
"builtinindexingsupport.h",
|
|
|
|
|
"cpppreprocessor.cpp",
|
2013-06-06 09:27:28 +02:00
|
|
|
"cpppreprocessor.h",
|
|
|
|
|
"includeutils.cpp",
|
2013-09-06 13:14:15 +02:00
|
|
|
"includeutils.h",
|
|
|
|
|
"cppcodemodelsettings.cpp",
|
|
|
|
|
"cppcodemodelsettings.h",
|
|
|
|
|
"cppcodemodelsettingspage.cpp",
|
|
|
|
|
"cppcodemodelsettingspage.h",
|
2013-08-19 16:05:29 +02:00
|
|
|
"cppcodemodelsettingspage.ui",
|
|
|
|
|
"cppsnapshotupdater.cpp",
|
|
|
|
|
"cppsnapshotupdater.h",
|
2012-02-09 14:30:09 +01:00
|
|
|
]
|
2012-03-20 15:35:15 +01:00
|
|
|
|
2012-09-05 11:01:43 +02:00
|
|
|
Group {
|
2013-06-06 09:08:16 +02:00
|
|
|
name: "Tests"
|
2013-09-05 17:24:24 +02:00
|
|
|
condition: project.testsEnabled
|
2013-01-07 11:23:27 +01:00
|
|
|
files: [
|
|
|
|
|
"cppcodegen_test.cpp",
|
|
|
|
|
"cppcompletion_test.cpp",
|
2013-08-25 22:42:37 +03:00
|
|
|
"cppheadersource_test.cpp",
|
2013-01-07 11:23:27 +01:00
|
|
|
"cppmodelmanager_test.cpp",
|
2013-01-14 14:45:36 +01:00
|
|
|
"modelmanagertesthelper.cpp", "modelmanagertesthelper.h",
|
2013-08-16 11:31:59 +02:00
|
|
|
"cpppointerdeclarationformatter_test.cpp",
|
2013-08-16 16:37:16 +02:00
|
|
|
"cpplocatorfilter_test.cpp",
|
2013-07-25 11:21:31 +02:00
|
|
|
"symbolsearcher_test.cpp",
|
|
|
|
|
"cpppreprocessor_test.cpp",
|
2013-11-12 12:27:36 +01:00
|
|
|
"cpppreprocessertesthelper.cpp", "cpppreprocessertesthelper.h",
|
|
|
|
|
"typehierarchybuilder_test.cpp"
|
2013-01-07 11:23:27 +01:00
|
|
|
]
|
|
|
|
|
|
|
|
|
|
cpp.defines: outer.concat(['SRCDIR="' + FileInfo.path(filePath) + '"'])
|
2012-09-05 11:01:43 +02:00
|
|
|
}
|
|
|
|
|
|
2013-05-24 15:58:33 +02:00
|
|
|
Export {
|
2012-03-20 15:35:15 +01:00
|
|
|
Depends { name: "CPlusPlus" }
|
2013-09-05 15:09:14 +02:00
|
|
|
Depends { name: "Qt.concurrent" }
|
2012-03-20 15:35:15 +01:00
|
|
|
}
|
2012-02-09 14:30:09 +01:00
|
|
|
}
|