summaryrefslogtreecommitdiffstats
path: root/Source/cmQtAutoGeneratorInitializer.cxx
Commit message (Collapse)AuthorAgeFilesLines
* QtAutogen: Use cmSystemTools::Error instead of std::cerrSebastian Holtermann2016-09-301-2/+2
| | | | | We can use std::cerr only in the build-time tool, not during CMake generation.
* QtAutogen: Allow .qrc files that do not contain any file referenceSebastian Holtermann2016-09-301-34/+33
|
* Simplify CMake per-source license noticesBrad King2016-09-271-13/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | Per-source copyright/license notice headers that spell out copyright holder names and years are hard to maintain and often out-of-date or plain wrong. Precise contributor information is already maintained automatically by the version control tool. Ultimately it is the receiver of a file who is responsible for determining its licensing status, and per-source notices are merely a convenience. Therefore it is simpler and more accurate for each source to have a generic notice of the license name and references to more detailed information on copyright holders and full license terms. Our `Copyright.txt` file now contains a list of Contributors whose names appeared source-level copyright notices. It also references version control history for more precise information. Therefore we no longer need to spell out the list of Contributors in each source file notice. Replace CMake per-source copyright/license notice headers with a short description of the license and links to `Copyright.txt` and online information available from "https://cmake.org/licensing". The online URL also handles cases of modules being copied out of our source into other projects, so we can drop our notices about replacing links with full license text. Run the `Utilities/Scripts/filter-notices.bash` script to perform the majority of the replacements mechanically. Manually fix up shebang lines and trailing newlines in a few files. Manually update the notices in a few files that the script does not handle.
* fix a load of include-what-you-use violationsDaniel Pfeifer2016-09-031-4/+25
|
* CMake: don't use else after returnDaniel Pfeifer2016-08-181-1/+2
|
* Merge topic 'issue-tracker-urls'Brad King2016-08-161-1/+1
|\ | | | | | | | | 2bdba83e issues: update references to the CMake issue tracker
| * issues: update references to the CMake issue trackerBen Boeckel2016-08-151-1/+1
| | | | | | | | | | References to specific comments are left as-is since comments were not migrated.
* | QtAutogen: Allow multiple qrc files with the same nameSebastian Holtermann2016-08-101-33/+43
|/ | | | Use cmFilePathUuid for qrc files.
* Merge topic 'revert-autogen-subdirs'Brad King2016-07-221-91/+29
|\ | | | | | | | | 5e55d87b Autogen: Revert changes to generate moc/rcc in subdirectories
| * Autogen: Revert changes to generate moc/rcc in subdirectoriesBrad King2016-07-211-91/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Revert these commits: * v3.6.0-rc1~134^2 Tests: QtAutogen: Same source name in different directories test, 2016-04-13 * v3.6.0-rc1~134^2~1 Autogen: Generate qrc_NAME.cpp files in subdirectories, 2016-04-19 * v3.6.0-rc1~134^2~2 Autogen: Generate not included moc files in subdirectories, 2016-04-19 They regress existing builds that depend on the paths/symbols generated previously. Another approach will be needed to solve the name collision problem they were intended to solve. Leave the error diagnostics for the colliding cases that were added in the same topic as the above commits because they provide a useful early failure in relevant cases. Fixes #16209.
* | use CM_NULLPTRDaniel Pfeifer2016-06-281-5/+7
| |
* | Prefer istringstream and ostringstream over stringstream.Daniel Pfeifer2016-06-141-3/+3
|/ | | | Use istringsream for parsing, ostringstream for generation.
* Remove redundant c_str() calls.Daniel Pfeifer2016-05-261-1/+1
| | | | | Run clang-tidy's readability-redundant-string-cstr checker. Ignore findings in kwsys.
* Revise C++ coding style using clang-formatKitware Robot2016-05-161-543/+399
| | | | | | | | | | | | | Run the `Utilities/Scripts/clang-format.bash` script to update all our C++ code to a new style defined by `.clang-format`. Use `clang-format` version 3.8. * If you reached this commit for a line in `git blame`, re-run the blame operation starting at the parent of this commit to see older history for the content. * See the parent commit for instructions to rebase a change across this style transition commit.
* Autogen: Message cleanups: Compose messages in std::stringstreamSebastian Holtermann2016-04-251-4/+8
| | | | | To avoid Race conditions with other processes writing to stdout/stderr compose the whole message in a std::stringstream then submit the single complete message.
* Autogen: Generate qrc_NAME.cpp files in subdirectoriesSebastian Holtermann2016-04-221-31/+99
| | | | | | | A qrc_NAME.cpp file generated from NAME.qrc in the directory CMAKE_CURRENT_SOURCE_DIR/SUBDIR will be generated in the directory CMAKE_CURRENT_BINARY_DIR/TARGETNAME_automoc.dir/SUBDIR
* Avoid depending on CMAKE_ROOT cache entry internally (#16015)Brad King2016-03-161-2/+1
| | | | | | Use cmSystemTools::GetCMakeRoot() which always knows the location of our resources. Do not depend on CMAKE_ROOT because the user could unset it from the cache.
* Merge topic 'autorcc-qt-5.1-compat'Brad King2015-10-291-1/+20
|\ | | | | | | | | e78fcc63 QtAutogen: Fix rcc invocation for Qt 5.0 and 5.1 (#15644)
| * QtAutogen: Fix rcc invocation for Qt 5.0 and 5.1 (#15644)Brad King2015-10-281-1/+20
| | | | | | | | | | | | | | | | In commit v3.2.0-rc1~480^2 (QtAutogen: Regenerate qrc files if their input changes, 2014-09-17) we added use of the rcc `--list` option. Prior to Qt 5.2 this option was called just `-list`. Run `rcc --help` to check for support for `--list` before using it and otherwise fall back to the `-list` option for compatibility with older versions.
* | Merge topic 'revert-autorcc-qt-5.1'Brad King2015-10-291-1/+1
|\ \ | |/ | | | | | | | | | | 5ba32092 Merge branch 'backport-revert-autorcc-qt-5.1' into revert-autorcc-qt-5.1 10e8ccf6 Revert "cmQtAutoGenerators: Fix rcc invocation for Qt 5.0 and 5.1 (#15644)" b935db3a Revert "cmQtAutoGenerators: Fix rcc invocation for Qt 5.0 and 5.1 (#15644)"
| * Revert "cmQtAutoGenerators: Fix rcc invocation for Qt 5.0 and 5.1 (#15644)"Brad King2015-10-271-1/+1
| | | | | | | | | | | | | | | | | | This reverts commit 9a271e13236d81b79e3e367a6898e09d3dcf28d0. The `-list` option is not documented and may be removed in future Qt versions. Fixing this correctly will require detecting the availability of `--list` or `-list` based on the `rcc` version found. For now we choose to support the documented option that will be supported in future Qt versions.
* | cmGlobalGenerator: Remove map from cmTarget to cmGeneratorTargetStephen Kelly2015-10-271-1/+0
|/ | | | | | | The configure-time and generate-time types should be completely independent. Add ownership of cmGeneratorTarget instances to the cmLocalGenerator.
* cmLocalGenerator: Store a vector of generator targets.Stephen Kelly2015-10-211-1/+1
| | | | Not a map from cmTarget to cmGeneratorTarget.
* cmLocalGenerator: Simplify semantic of adding generator targets.Stephen Kelly2015-10-201-0/+1
| | | | Don't store on the global generator as a side effect. Update clients to adapt.
* cmLocalGenerator: Port some API to cmGeneratorTarget.Stephen Kelly2015-10-171-1/+1
|
* cmGeneratorTarget: Move ImportedGetLocation from cmTarget.Stephen Kelly2015-10-161-6/+15
|
* cmLocalGenerator: Store cmGeneratorTargets.Stephen Kelly2015-10-141-1/+1
| | | | Relieve cmMakefile of this responsibility.
* cmGeneratorTarget: Move GetSupportDirectory from cmTarget.Stephen Kelly2015-10-121-2/+2
|
* cmTarget: Remove Compute method.Stephen Kelly2015-10-071-2/+0
|
* cmTarget: Add Compute API for sources.Stephen Kelly2015-10-071-0/+2
| | | | | This method is a refactoring artifact. It will be removed in a follow-up.
* cmGeneratorTarget: Add methods for generate-time source addition.Stephen Kelly2015-10-071-2/+2
|
* QtAutogen: Port API to cmGeneratorTarget.Stephen Kelly2015-10-061-61/+45
|
* QtAutogen: Make some private statics file static.Stephen Kelly2015-10-051-40/+27
|
* QtAutogen: Move SetupAutoRccTarget method.Stephen Kelly2015-10-051-117/+116
|
* QtAutogen: Move MergeRccOptions method.Stephen Kelly2015-10-051-44/+44
|
* QtAutogen: Move GetRccExecutable method.Stephen Kelly2015-10-051-51/+51
|
* QtAutogen: Move SetupAutoUicTarget method.Stephen Kelly2015-10-051-107/+107
|
* QtAutogen: Move GetUicOpts method.Stephen Kelly2015-10-051-11/+11
|
* QtAutogen: Move SetupAutoMocTarget method.Stephen Kelly2015-10-051-92/+92
|
* QtAutogen: Move GetCompileDefinitionsAndDirectories method.Stephen Kelly2015-10-051-22/+22
|
* QtAutogen: Move SetupSourceFiles method.Stephen Kelly2015-10-051-83/+83
|
* QtAutogen: Split initializer class into separate file.Stephen Kelly2015-09-291-0/+1074