summaryrefslogtreecommitdiffstats
path: root/Source/cmExtraCodeBlocksGenerator.cxx
Commit message (Collapse)AuthorAgeFilesLines
* Use two-iterator std::set::insert where appropriate.Stephen Kelly2015-01-111-18/+4
|
* strings: Remove redundant calls to std::string::c_str()Nils Gladitz2014-10-151-1/+1
| | | | | Replacements were detected and performed by the clang tool remove-cstr-calls on a linux build.
* Fix some generator crashes on undefined CMAKE_BUILD_TYPEBrad King2014-06-231-1/+1
| | | | | | | | | | Since commit 84fdc9921 (stringapi: Pass configuration names as strings, 2014-02-09), it is not safe to use GetDefinition("CMAKE_BUILD_TYPE") without checking the return value. Use GetSafeDefinition instead so that a missing definition is treated as an empty string like code paths did prior to the above commit. Reported-by: Richard Wirth <richard@califax.de>
* cmTarget: Make the source files depend on the config.Stephen Kelly2014-04-021-1/+2
| | | | | | | | | | | | | | | | | Disallow the use of config-specific source files with the Visual Studio and Xcode generators. They don't have any way to represent the condition currently. Use the same common-config API in cmQtAutoGenerators. While it accepts config-specific files, it doesn't have to support multiple configurations yet. Loop over the configs in cmTargetTraceDependencies and cmGlobalGenerator::WriteSummary and consume all source files. Loop over the configs in cmComputeTargetDepends and compute the object library dependencies for each config.
* Watcom: Introduce OpenWatcom compiler id and fix compiler versionJiri Malak2014-03-171-1/+1
| | | | | | Distinguish "Open Watcom" from old "Watcom" by introducing a new "OpenWatcom" compiler id. The __WATCOMC__ format is "VVRP" for Watcom and "VVRP + 1100" for Open Watcom.
* Remove c_str calls when using stream APIs.Stephen Kelly2014-03-111-2/+2
| | | | | Use an ad-hoc clang tool for matching the calls which should be ported.
* Remove some c_str() calls.Stephen Kelly2014-03-111-7/+7
| | | | | | Use the clang RemoveCStrCalls tool to automatically migrate the code. This was only run on linux, so does not have any positive or negative effect on other platforms.
* speedup: Cache strings for comparisonsBen Boeckel2014-03-081-1/+2
|
* stringapi: Use strings for generator namesBen Boeckel2014-03-081-4/+5
|
* strings: Remove cmStdString referencesBen Boeckel2014-03-081-2/+2
| | | | | | | | | | | Casts from std::string -> cmStdString were high on the list of things taking up time. Avoid such implicit casts across function calls by just using std::string everywhere. The comment that the symbol name is too long is no longer relevant since modern debuggers alias the templates anyways and the size is a non-issue since the underlying methods are generated since it's inherited.
* stringapi: Use strings in target nameBen Boeckel2014-03-081-2/+3
|
* stringapi: Use strings for the languagesBen Boeckel2014-03-081-1/+2
|
* CodeBlocks: fix unescaped command quotes when used with nmakeNils Gladitz2014-01-131-3/+5
|
* cmTarget: Make GetSourceFiles populate an out-vector parameter.Stephen Kelly2014-01-091-1/+2
| | | | | In a future patch, this will also be populated with extra sources from the linked dependencies.
* Refactor tool selection for edit_cache (#14544)Brad King2013-11-121-20/+0
| | | | | | | | | Refactor edit_cache tool selection to ask each global generator for its preference. Teach the Ninja generator to always use cmake-gui because Ninja by design cannot run interactive terminal dialogs like ccmake. Teach the Makefile generator to use cmake-gui when also using an "extra" generator whose IDE has no terminal to run ccmake, and otherwise fall back to CMAKE_EDIT_COMMAND selection for normal Makefile build systems.
* Drop the 'Full' field from cmDocumentationEntryBrad King2013-10-161-7/+0
| | | | | We need only 'Brief' for usage documentation. We no longer have builtin 'Full' documentation, which is now in Help/*/*.rst files.
* Refactor cmTarget::GetCompileDefinitions to use an out-vector, not a string.Stephen Kelly2013-07-111-11/+7
| | | | Refactor to create AddCompileDefinitions.
* Fix the evaluation of per-config COMPILE_DEFINITIONS (#14037)Stephen Kelly2013-03-251-4/+2
| | | | | | | | | | | | | | The API for retrieving per-config COMPILE_DEFINITIONS has long existed because of the COMPILE_DEFINITIONS_<CONFIG> style properties. Ensure that the provided configuration being generated is also used to evaluate the generator expressions in cmTarget::GetCompileDefinitions. Both the generic COMPILE_DEFINITIONS and the config-specific variant need to be evaluated with the requested configuration. This has the side-effect that the COMPILE_DEFINITIONS does not need to be additionally evaluated with no configuration, so the callers can be cleaned up a bit too.
* Move GetCompileDefinitions to cmTarget.Stephen Kelly2013-01-291-1/+1
|
* Ninja: fix building from Codeblocks GUIPeter Kümmel2013-01-051-0/+5
| | | | | | Many thx to Chuck Frayman BUG: 13652
* Merge topic 'fix-INCLUDE_DIRECTORIES-multiconfig'David Cole2012-10-171-1/+3
|\ | | | | | | | | 2a6bd96 Fix config-specific INCLUDE_DIRECTORIES in multi-config generators
| * Fix config-specific INCLUDE_DIRECTORIES in multi-config generatorsStephen Kelly2012-10-171-1/+3
| | | | | | | | | | | | | | | | Commit 08cb4fa4 (Process generator expressions in the INCLUDE_DIRECTORIES property, 2012-09-18) contained an incorrect assumption that CMAKE_BUILD_TYPE was set on the makefile for each generated configuration in multi-config generators. Fix that by making the GetIncludeDirectories API depend on the config.
* | Fix regression: write compile definitions if anyPeter Kümmel2012-10-111-1/+1
|/ | | | | In 0ff4e3f0b88885eafab0693fdf03b44c7a5f9d0c cdefs was changed from a pointer to a vector.
* Port remaining code to GetCompileDefinitions().Stephen Kelly2012-09-211-4/+7
|
* Fix indentation in the code blocks generator.Stephen Kelly2012-09-211-43/+41
|
* Move GetIncludeDirectories to cmGeneratorTarget.Stephen Kelly2012-09-191-1/+3
|
* Ninja: enable ninja support everywherePeter Kümmel2012-07-201-2/+0
|
* Merge topic 'OBJECTLibrariesInCodeBlocks'David Cole2012-04-251-2/+41
|\ | | | | | | | | | | 38d4c1e CodeBlocks: improve support for OBJECT libraries d2ed3c7 -fix #13081: support OBJECT libraries in CodeBlocks/QtCreator projects
| * CodeBlocks: improve support for OBJECT librariesAlex Neundorf2012-04-091-2/+28
| | | | | | | | | | | | | | | | This commit creates a dummy text file for each OBJECT library for the CodeBlocks generator, so the generated project file can reference a unique file for each target. Most probably these files are unused. Alex
| * -fix #13081: support OBJECT libraries in CodeBlocks/QtCreator projectsAlex Neundorf2012-03-311-2/+15
| | | | | | | | Alex
* | Ninja: enable Ninja for CodeBlocksPeter Kuemmel2012-04-071-0/+3
|/
* Merge topic 'target-include-directories'David Cole2012-03-081-5/+6
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | d662dff Fix shadowed variable warning on dashboard results f66e735 Fix compiler warning reported on older Borland dashboard. d90eed4 Fix compiler error reported on older Borland dashboard. 8233636 Update the documentation regarding INCLUDE_DIRECTORIES. d899eb7 Call ExpandVariablesInString for each target's INCLUDE_DIRECTORIES c21db87 Make search paths ordered and unique 22021f0 Remove cmMakefile::GetIncludeDirectories 9106b56 Extract and use the INCLUDE_DIRECTORIES target properties. 840509b Keep the INCLUDE_DIRECTORIES target property up to date. a4d5f7b Add API to get the ordered includes for a target. 8adaee2 CMake: Eliminate cmMakefile::IncludeDirectories 7620932 Remove include flags memoization. 97a5faa Make it safe to call this method without creating duplicates. edd5303 Refactor GetIncludeFlags to take includes instead of fetching them
| * Extract and use the INCLUDE_DIRECTORIES target properties.Stephen Kelly2012-02-221-5/+6
| | | | | | | | | | | | | | | | | | Eliminate callers of cmMakefile::GetIncludeDirectories. All callers of GetIncludeDirectories should go through the local generator object. Only the local generator calls cmTarget::GetIncludeDirectories directly.
* | Factor cmInstallType out of cmTarget::TargetTypeBrad King2012-02-271-4/+0
|/ | | | | | The purpose of the TargetType enumeration was overloaded for install type because install rules were once recorded as targets. Factor the install types out into their own enumeration.
* Merge topic 'CodeBlocks-quoting'David Cole2011-10-111-1/+3
|\ | | | | | | | | 240d39a Fix XML safety issue with adding preprocessor defines in CodeBlocks project.
| * Fix XML safety issue with adding preprocessor defines in CodeBlocks project.Clinton Stimpson2011-10-051-1/+3
| |
* | Merge topic 'CodeBlocksIncludeDirsAndDefines'David Cole2011-08-021-0/+54
|\ \ | | | | | | | | | | | | | | | | | | e2e8c0a Also put builtin include dirs into CodeBlocks project file 92c0dc5 Remove useless line of code a5683f8 Patch by Campbell Barton: puts definitions into C::B project file
| * | Also put builtin include dirs into CodeBlocks project fileAlex Neundorf2011-08-011-0/+38
| |/ | | | | | | | | | | | | | | Refactor code from CMakeFindEclipseCDT4.cmake so it can be used alkso for CodeBlocks, and move it into new file CMakeExtraGeneratorDetermineCompilerMacrosAndIncludeDirs.cmake. Alex
| * Patch by Campbell Barton: puts definitions into C::B project fileAlex Neundorf2011-07-291-0/+16
| | | | | | | | | | | | | | This enables Codeblocks and QtCreator to do proper highlighting based on defined macros. Alex
* | Don't put files from CMAKE_ROOT into CodeBlocks projects (#12110)Alex Neundorf2011-07-291-0/+7
|/ | | | | | This causes that all files in C::B are displayed in a tree starting at / Alex
* Also add the SOURCES from add_custom_target() to CodeBlocks projects (#11736)Alex Neundorf2011-02-131-0/+7
| | | | | | | | Since CMake 2.6.3 add_custom_target() has a SOURCES option, this was not yet considered in the C::B generator. Also, now GENERATED files are not added to the project. Alex
* Don't disable colors in the CodeBlocks generator and minor cleanup.Alex Neundorf2010-11-111-9/+0
| | | | | | | Since now the only users of SetToolSupportsColor() are gone, this method is removed too. Alex
* Don't enforce VERBOSE makefiles for the CodeBlocks generatorAlex Neundorf2010-11-111-1/+3
| | | | | | | | | Instead of enforcing verbose makefile, now the generated build command includes "VERBOSE=1" so the output will be verbose when building in C::B. Also removed the now unused setForceVerboseMakefiles(). Alex
* Remove trailing whitespaceAlex Neundorf2010-11-111-37/+37
| | | | Alex
* CodeBlocks Generator: Do not omit files in the project file listing.Alex Neundorf2010-10-051-4/+0
| | | | | | | | | | | | The CodeBlocks generator used to omit files that were in siblings directories. Though that filters out a few files that could be argued aren't of interest to the user, it also potentialy hides files that are relevant to the user. Patch by Daniel Teske. Alex See: http://bugreports.qt.nokia.com/browse/QTCREATORBUG-2250 for an example.
* Default to gcc as the compiler.Bill Hoffman2010-03-151-2/+2
| | | | | | The compiler id is checked for C++ and C, if there is not one of those available, then just default to gcc. This makes it work with Fortran, or None projects.
* -make paths with spaces work in the CodeBlocks generator with MinGW (#10014)Alexander Neundorf2010-01-241-6/+10
| | | | Alex
* make testing the CodeBlocks and Eclipse generators easier by not requiring ↵Alexander Neundorf2009-10-201-2/+7
| | | | | | | | | | | | | the CMAKE_EDIT_COMMAND variable Both generators use the CMAKE_EDIT_COMMAND variable to determine whether they should add the edit_cache target, i.e. they don't add it if it's ccmake, since this does not work inside the output log view of Eclipse/Codeblocks. But instead of requiring the variable to be set they now check it for 0 and handle this appropriately. This should help Dave getting some testing for them :-) Alex
* fix line lengthAlexander Neundorf2009-10-131-1/+2
| | | | Alex
* fix indentationAlexander Neundorf2009-10-121-75/+74
| | | | Alex