Commit Graph

87 Commits

Author SHA1 Message Date
Sebastian Holtermann 084ace47b6 Autogen: Tests: Update AUTOMOC_MACRO_NAMES test 2017-09-28 09:21:44 +02:00
Sebastian Holtermann 932656527b Autogen: Tests: Add <SUBDIR>/ui_view.h AUTOUIC includes to sameName test 2017-09-21 09:58:24 +02:00
Sebastian Holtermann 4eb7d81791 Autogen: Tests: Add <SUBDIR>/item.moc includes to sameName test 2017-09-21 09:58:23 +02:00
Sebastian Holtermann 2be0acb71e Autogen: Tests: Add AUTOGEN_TARGET_DEPENDS test to mocDepends tests 2017-09-07 18:03:14 +02:00
Sebastian Holtermann 13bb716f04 Autogen: Fix and extend SKIP_AUTOMOC test 2017-08-22 19:10:31 +02:00
Sebastian Holtermann 05891d8f77 Autogen: Add test for AUTOMOC_MACRO_NAMES 2017-08-18 12:32:34 +02:00
Brad King 6c5e03d6d4 Merge branch 'backport-autogen-autouic-lookup' into autogen-autouic-lookup 2017-08-15 13:23:11 -04:00
Sebastian Holtermann fb5db079a7 Autogen: Extend AUTOUIC search paths test 2017-08-15 13:22:18 +02:00
Sebastian Holtermann 15ef27286a Autogen: Add test for OBJECT libraries 2017-08-10 23:15:48 +02:00
Sebastian Holtermann 3a4840e039 Autogen: Make test per-config include directory compatible 2017-08-05 11:21:44 +02:00
Sebastian Holtermann a3a62fcc3c Autogen: Add AUTOMOC test for target dependencies forwarding
Adds an AUTOMOC test that tests if dependencies from add_dependencies()
of an ORIGIN target are forwarded to the ORIGIN_autogen target.

Also fixes the AUTOMOC test that tests if dependencies from
target_link_libraries() of an ORIGIN target are forwarded to the
ORIGIN_autogen target. The test now fails in the ORIGIN_autogen build
if SimpleLib wasn't built before.
2017-08-01 15:18:46 +02:00
Sebastian Holtermann 0e434fcf04 Autogen: Move repeated tests to new QtAutogenRerun test
By moving QtAutogen tests that run repeatedly to a new QtAutogenRerun
test, the `ctest -R Qt[45]Autogen -j4` call runs approximately 25%
faster.
2017-07-21 17:03:40 +02:00
Sebastian Holtermann f5ccef1751 Autogen: Extended mocInclude tests
The extended tests cover more AUTOMOC use cases.
2017-07-20 16:55:11 +02:00
Sebastian Holtermann dca5df16c5 Autogen: Process GENERATED files. Add CMP0071.
This lets AUTOMOC and AUTOUIC process GENERATED files which
used to be ignored before.
A new policy CMP0071 ensures that the old behavior of ignoring
GENERATED files is enabled when the CMake compatibility version
CMAKE_MINIMUM_REQUIRED is < 3.10.

Closes #16186
2017-07-18 18:11:31 +02:00
Brad King 41be8a739e Merge topic 'autogen-no-generated-files'
9a34e95a Autogen: Skip generated files for compatibility with CMake 3.8

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !1033
2017-07-10 10:22:00 -04:00
Brad King 9a34e95a41 Autogen: Skip generated files for compatibility with CMake 3.8
The change in commit v3.9.0-rc1~464^2~8 (Autogen: Add AUTOMOC/UIC
support for generated source files, 2017-03-02) changes behavior of
existing projects that may not expect `AUTOGEN` on generated files and
do not yet set `SKIP_AUTOGEN` on them.  Disable the behavior change for
now to fix the regression for CMake 3.9.  We can restore it later with a
policy.

In order to keep the implementation and tests working, add an
undocumented property we can use in the tests to enable the behavior
before the policy is introduced.

Fixes: #17031
Issue: #16186
2017-07-07 10:12:15 -04:00
Sebastian Holtermann 50b3837c64 Autogen: Q_OBJECT behind brace test 2017-06-20 10:49:00 +02:00
Sebastian Holtermann 7f68ad6612 Autogen: Tests: Disable some tests on non ASCII build paths 2017-06-13 16:51:33 +02:00
Sebastian Holtermann 38e3fc4bdd Autogen: Tests fix for utf8 paths 2017-06-12 21:54:45 +02:00
Brad King f34f7815e3 Tests: Fix Qt5Autogen test on Xcode
Fix the `mocPlugin` project to provide `mocPlugin.xcodeproj` instead of
`Project.xcodeproj` so that the `try_compile` project name matches.
Also search in the `Debug` subdirectory of the `try_compile` build tree
for the resulting binaries, to work with multi-config generators.
2017-05-30 10:09:37 -04:00
Sebastian Holtermann 35e8a6de86 Autogen: Tests: More rigorous rcc rebuild tests
Closes: #16103
2017-03-23 16:51:34 +01:00
Sebastian Holtermann ef3c319b97 Autogen: Test: Add mocDepends test 2017-03-06 22:01:04 +01:00
Sebastian Holtermann 7f9baf5790 Autogen: Test: Add generated qrc file to rccDepends test 2017-03-06 22:01:04 +01:00
Sebastian Holtermann 81656b9210 Autogen: Test: Add generated file to moc rerun test 2017-03-06 22:01:03 +01:00
Sebastian Holtermann d9a7ef80aa Autogen: Test: Add timestamp comparison to moc rerun test 2017-03-06 22:01:03 +01:00
Sebastian Holtermann 89780663b3 Autogen: Test: Rename automoc_rerun test to mocRerun 2017-03-06 22:01:03 +01:00
Sebastian Holtermann 9cad44dce2 Autogen: Test: Rename autorcc_depends test to rccDepends 2017-03-06 22:01:03 +01:00
Sebastian Holtermann 6d7c02db34 Autogen: Add AUTOUIC_SEARCH_PATHS test 2017-03-02 09:10:01 -05:00
Sebastian Holtermann 48b56504bf Autogen: Fix for Q_PLUGIN_METADATA change detection test 2017-02-26 19:05:56 +01:00
Sebastian Holtermann 94e3f82cf1 Autogen: Add AUTOMOC_DEPEND_FILTERS test 2017-02-22 21:15:03 +01:00
Sebastian Holtermann 29d96633a4 Autogen: Don't use .moc include in Q_PLUGIN_METADATA test 2017-02-21 10:38:51 -05:00
Sebastian Holtermann 8b13a52c49 Autogen: Tests: Set different compression levels in rcc test 2017-02-21 10:38:50 -05:00
Sebastian Holtermann cd74daf06f Autogen: Tests: Add Q_PLUGIN_METADATA test 2017-02-21 10:38:49 -05:00
Sebastian Holtermann 39c4819eaa Autogen: Tests: Add moc include tests 2017-02-21 10:38:49 -05:00
Sebastian Holtermann 50805693ba Autogen: Tests: Clean comments 2017-02-21 10:12:55 -05:00
Sebastian Holtermann c17e0a3ad5 AUTOGEN: Tests: AUTORCC SKIP_AUTORCC and SKIP_AUTOGEN test 2017-01-10 12:49:17 +01:00
Sebastian Holtermann 53787bf8de AUTOGEN: Tests: AUTOUIC SKIP_AUTOUIC and SKIP_AUTOGEN test 2017-01-10 12:49:16 +01:00
Sebastian Holtermann 8dbdd3e726 AUTOGEN: Tests: AUTOMOC SKIP_AUTOMOC and SKIP_AUTOGEN test 2017-01-10 12:49:16 +01:00
Sebastian Holtermann 5961db4143 QtAutogen: Tests: Increase minimum required CMake version 2016-12-07 08:24:05 -05:00
Sebastian Holtermann 6d0a8af368 QtAutogen: Tests: Don't use std::auto_ptr 2016-12-07 08:24:05 -05:00
Sebastian Holtermann 6731025211 QtAutogen: Tests: Don't include CMAKE_CURRENT_BINARY_DIR 2016-12-07 08:24:05 -05:00
Sebastian Holtermann 6938772a11 QtAutogen tests: Pass Qt compiler features to library targets 2016-11-29 18:46:39 +01:00
Sebastian Holtermann c4d4becf8b QtAutogen tests: Move the complex test case to a subdirectory 2016-11-29 17:16:33 +01:00
Sebastian Holtermann 2599f5d64b QtAutogen tests: Extend test description in CMakeLists.txt 2016-11-29 17:16:33 +01:00
Sebastian Holtermann 7052af9d4a QtAutogen tests: Move independent sameName test to top list of CMakeLists.txt 2016-11-29 17:16:33 +01:00
Sebastian Holtermann d675004dba QtAutogen tests: Rename uiconly target to camel case uicOnly
Also move uicOnly sources to dedicated uicOnlySource directory.
2016-11-29 17:16:33 +01:00
Sebastian Holtermann cb4bc19ae1 QtAutogen tests: Rename rcc_empty target to camel case rccEmpty 2016-11-29 17:16:33 +01:00
Sebastian Holtermann 59dbd3f891 QtAutogen tests: Rename rcconly target to camel case rccOnly.
Also add dedicated rccOnlyRes.qrc file for the rccOnly target.
2016-11-29 17:16:33 +01:00
Sebastian Holtermann bcafc399c5 QtAutogen: Add test for empty qrc file 2016-09-30 10:02:49 -04: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