324 Commits

Author SHA1 Message Date
Sebastian Holtermann
6d333be14d Autogen: Generators: Static function upper case rename 2017-01-13 00:00:42 +01:00
Sebastian Holtermann
52688bf745 Autogen: Generators: Sort methods by task 2017-01-13 00:00:42 +01:00
Sebastian Holtermann
0699760d5c AUTOGEN: Generators: Do moc/uic skip test during file list generation 2017-01-10 12:49:16 +01:00
Sebastian Holtermann
a84f0bb726 AUTOGEN: Generators: Message upper/lower case unification 2017-01-10 12:49:16 +01:00
Sebastian Holtermann
7b766b8395 AUTOGEN: Generators: Use single moc/uic skip test method only 2017-01-10 12:49:16 +01:00
Sebastian Holtermann
2964b8cca4 AUTOGEN: Generators: Use AUTOMOC/UIC/RCC instead of AUTOGEN in messages 2017-01-10 12:49:16 +01:00
Sebastian Holtermann
d58b6bf31c AUTOGEN: Generators: Moc/UicSkipTest methods 2017-01-10 12:49:16 +01:00
Sebastian Holtermann
94c319f933 AUTOGEN: Generators: Use separate header lists for MOC and UIC
This is necessary for the skipMoc and skipUic lists to work properly.
2017-01-10 12:49:16 +01:00
Sebastian Holtermann
966be439e0 AUTOGEN: Generators: Be verbose about skipping files 2017-01-10 12:49:15 +01:00
Sebastian Holtermann
de53143288 AUTOGEN: Generators: Remove unused variable 2017-01-10 12:49:15 +01:00
Sebastian Holtermann
63d3ca4c1c AUTOGEN: Make skipMoc and skipUic blacklists behave the same way
Before skipMoc was a list of files that were not included in the
sources. Now the skipMoc files are added to the sources as well in case
they are needed for uic processing. skipMoc becomes a blacklist just like
skipUic.
2017-01-10 12:49:15 +01:00
Sebastian Holtermann
6ae19bf32e AUTOGEN: Generators: Add dedicated method for moc content parsing 2017-01-10 12:49:14 +01:00
Sebastian Holtermann
9986da4f0f AUTOGEN: Generators: Split config SKIP_MOC and SKIP_UIC into vectors 2017-01-10 12:49:14 +01:00
Sebastian Holtermann
d51cc88e84 AUTOGEN: Generators: Split config headers/sources into vector 2017-01-10 12:49:14 +01:00
Sebastian Holtermann
cf1d5a9cdb AUTOGEN: Generators: Rename ParseForUic method 2017-01-10 12:49:14 +01:00
Sebastian Holtermann
f962275987 AUTOGEN: Generators: Group static function definitions 2017-01-10 12:49:14 +01:00
Sebastian Holtermann
c736c41ad1 AUTOGEN: Generators: Use precompiled regular expressions 2017-01-10 12:49:14 +01:00
Sebastian Holtermann
cbd650c264 AUTOGEN: Generators: Use unified ParseSourceFile and drop old methods 2017-01-10 12:49:14 +01:00
Sebastian Holtermann
0b1527ff3d AUTOGEN: Generators: Introduce unified ParseSourceFile
The new cmQtAutoGenerators::ParseSourceFile method combines the
functionality of ParseCppFile and StrictParseCppFile in a single method
to avoid code duplication. Relaxed or strict mode is selected by an
additional bool argument.
2017-01-10 12:49:13 +01:00
Sebastian Holtermann
2b9d795e63 AUTOGEN: Generators: Comments 2017-01-10 12:49:13 +01:00
Sebastian Holtermann
2cfcdf757d AUTOGEN: Generators: Variable rename 2017-01-10 12:49:13 +01:00
Sebastian Holtermann
2f67aef23d AUTOGEN: Generators: Cleanup and optimize ParseForUic method 2017-01-10 12:49:13 +01:00
Sebastian Holtermann
794fdf40a1 AUTOGEN: Generators: Cleanup variable initialization 2017-01-10 12:49:13 +01:00
Sebastian Holtermann
a1e49bb155 AUTOGEN: Generators: rename makeParentDirectory to MakeParentDirectory 2017-01-10 12:49:13 +01:00
Daniel Pfeifer
a74e689348 clang-tidy: apply readability-redundant-string-init fixes 2016-12-12 14:04:13 -05:00
Sebastian Holtermann
43d77e1dad QtAutogen: Don't use std::i/ofstream::is_open() 2016-12-07 08:24:04 -05:00
Sebastian Holtermann
98665c3519 QtAutogen: Rename and sort variables 2016-12-07 08:24:04 -05:00
Sebastian Holtermann
8c9358386b QtAutogen: Generate included ui_ and moc_ files in _automoc/includes
ui_ and moc_ files that are include in source files get generated in
$CURRENT_BUILD_DIR/$TARGETNAME_automoc/include.
The directory is added to the INCLUDE_DIRECTORIES of the origin target
in the generation stage.

From now on all autogen files get generated below
$CURRENT_BUILD_DIR/$TARGETNAME_automoc.
2016-12-07 08:24:01 -05:00
Sebastian Holtermann
057ac11bfb QtAutogen: Use checksum based subdirectories to avoid name collisions 2016-12-07 08:24:00 -05:00
Sebastian Holtermann
d3afe4070b QtAutogen: Remove .dir suffix from automoc build directory 2016-12-07 08:23:59 -05:00
Sebastian Holtermann
6f53b1ab64 QtAutogen: Generate moc compilation in _automoc.dir/moc_compilation.cpp 2016-12-07 08:23:59 -05:00
Sebastian Holtermann
39e07d7a17 QtAutogen: Use upper case for MOC, UIC and RCC in messages 2016-12-07 08:23:59 -05:00
Sebastian Holtermann
8c6f990fb6 QtAutogen: New common bold logging method 2016-12-07 08:23:58 -05:00
Sebastian Holtermann
49f8687e16 QtAutogen: Make sure parent directory exists before writing files 2016-12-07 08:23:58 -05:00
Sebastian Holtermann
7731121d66 QtAutogen: Improved error handling 2016-12-07 08:23:58 -05:00
Sebastian Holtermann
00750ece6a QtAutogen: Error and warning log method tweaks 2016-12-07 08:23:58 -05:00
Sebastian Holtermann
708e44af5d QtAutogen: Improved error recognition 2016-12-07 08:23:57 -05:00
Sebastian Holtermann
1c97d1df20 QtAutogen: Improved error recognition on config load 2016-12-07 08:23:52 -05:00
Sebastian Holtermann
48180401d3 QtAutogen: Rename config AM_RELAXED_MODE to AM_MOC_RELAXED_MODE 2016-12-06 15:59:26 +01:00
Brad King
25a76df17f Merge topic 'autorcc-only-no-rebuild'
e4232b82 QtAutogen: Do not re-generate AUTORCC outputs on every build
2016-11-10 08:34:22 -05:00
Brad King
e4232b82e6 QtAutogen: Do not re-generate AUTORCC outputs on every build
Refactoring in commit v3.6.0-rc1~134^2~10 (Autogen: Split out moc file
generation code to dedicated method, 2016-04-18) removed the
unconditional creation of the `<target>_automoc.cpp` file.  Now it is
generated only when `AUTOMOC` is enabled.  However, if this file is not
created then our internal `GenerateAll` setting is enabled on every
build, causing `AUTORCC` to re-generate its file(s) every time.  Fix the
`GenerateAll` setting to be used only for when autogen settings change.
The old logic was left from when we had only automoc.

Closes: #16413
2016-11-09 11:22:07 -05:00
Daniel Pfeifer
2e620f0b38 Fix several include-what-you-use findings 2016-11-08 09:42:04 -05:00
Stephen Kelly
e0a84904eb cmState: Split auxiliary classes into separate files
Port dependents to the new locations as needed.

Leave behind a cmState.h include in cmListFileCache to reduce noise. It
is removed in a following commit.
2016-10-19 15:40:59 +02:00
Stephen Kelly
a91eaf3872 cmState: Port dependents to new cmStateTypes header 2016-10-19 15:40:59 +02:00
Stephen Kelly
cde6eb6249 cmState: Port dependent code to new cmStateSnapshot name 2016-10-19 15:40:59 +02:00
Brad King
86578eccf2 Simplify CMake per-source license notices
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.
2016-09-27 15:14:44 -04:00
Daniel Pfeifer
efed6468ed fix a load of include-what-you-use violations 2016-09-03 08:04:56 -04:00
Sebastian Holtermann
4e9b97d739 QtAutogen: Allow multiple qrc files with the same name
Use cmFilePathUuid for qrc files.
2016-08-10 13:21:33 -04:00
Sebastian Holtermann
41c9e14afb QtAutogen: Allow multiple moc files with the same name
Use cmFilePathUuid for moc files.

Closes: #12873
2016-08-10 13:21:33 -04:00
Sebastian Holtermann
3c3b37b0bb QtAutogen: Use std:: instead of ::std:: 2016-08-10 13:21:33 -04:00