summaryrefslogtreecommitdiffstats
path: root/Source/cmExtraCodeBlocksGenerator.cxx
Commit message (Collapse)AuthorAgeFilesLines
* 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
* fix #9687Alexander Neundorf2009-10-121-4/+12
| | | | | | | The CodeBlocks generator did not put all cmake files into the cmake tree of the generated project. Patch from Daniel Teske. Alex
* Convert CMake to OSI-approved BSD LicenseBrad King2009-09-281-18/+12
| | | | | | | This converts the CMake license to a pure 3-clause OSI-approved BSD License. We drop the previous license clause requiring modified versions to be plainly marked. We also update the CMake copyright to cover the full development time range.
* Fix bug #9529.Alexander Neundorf2009-09-261-2/+23
| | | | | | | | Set the working_dir entry in the codeblocks project file of executable targets to the directory where the executable is created. Then when running CB, executing the target (not building), will run it from that directory. Alex
* As in the Eclipse generator: don't insert the edit_cache target if it is ↵Alexander Neundorf2009-09-101-1/+18
| | | | ccmake, since this doesn't work in the output tab of the IDE
* Improve the algorithm which skips targets so they are not added to the ↵Alexander Neundorf2009-09-061-47/+16
| | | | | | | | | codeblocks GUI. -add all global targets from CMAKE_BINARY_DIR to the menu, but not from the subdirs -add all utility targets to the menu, except the Nightly/Experimental/Continuous-"sub"targets as e. Alex
* ENH: get the build type specific locationAlexander Neundorf2009-07-071-1/+2
| | | | Alex
* COMP: don't use vector::at(), this doesn't seem to exist everyhwereAlexander Neundorf2009-06-291-2/+2
| | | | | | (http://www.cdash.org/CDash/viewBuildError.php?buildid=366375) Alex
* ENH: create a "Virtual Folder" in CodeBlocks, which contains all the cmakeAlexander Neundorf2009-06-281-0/+192
| | | | | | | | files of the project, i.e. there is now a "CMake Files" folder additionally to the "Sources", "Headers" and "Others" folders which already existed. Patch by Daniel Teske. Alex
* ENH: also support nmake and msvc for use with CodeBlocks under Windows,Alexander Neundorf2009-06-281-2/+2
| | | | | | patch by Daniel Teske Alex
* ENH: only check for the existance of a header file if:Alexander Neundorf2009-03-101-11/+55
| | | | | | | -the original file is a C/C++ implementation file -the header file is not already part of the sources Alex
* ENH: automatically add headers of implementation file to the codeblocks ↵Alexander Neundorf2009-03-081-4/+36
| | | | | | project file Alex
* BUG: fix #8203: codeblocks + mingw doesn't like the extra quotes around theAlexander Neundorf2009-01-091-0/+7
| | | | | | path to the makefile if it contains spaces, under Linux it works with spaces Alex
* STYLE: remove some commented codeAlexander Neundorf2008-08-161-13/+2
| | | | Alex
* STYLE: move the code for generating the XML for one target in a separateAlexander Neundorf2007-11-251-52/+78
| | | | | | | | | function AppendTarget() -add "all" target -some syncing with the Eclipse generator Alex
* ENH: also add the experimental, nightly, package_source, preinstall andAlexander Neundorf2007-11-251-11/+45
| | | | | | rebuild_cache targets Alex
* STYLE: add some commentsAlexander Neundorf2007-11-251-0/+13
| | | | Alex