diff options
author | Craig Scott <craig.scott@qt.io> | 2021-07-12 21:38:42 +1000 |
---|---|---|
committer | Craig Scott <craig.scott@qt.io> | 2021-07-19 12:08:38 +1000 |
commit | a1229a5aa1fb8c7d7e7047ce4c1769d9dae00aec (patch) | |
tree | c34be34d325e6bcb7c4ee9c482c90502934be809 /src/corelib/Qt6CoreMacros.cmake | |
parent | 93fdd88a422e9447ffe7a71b8caf1f4075e8ecf3 (diff) |
Don't create ${target}_qml_files target any more
The qml files should now always be added via dedicated functions
provided by the qtdeclarative repo. Those functions take care of adding
the files to targets so that they will show up in IDE file lists, so we
should not add them to a separate target as well. This will also remove
one unnecessary build target, which will reduce visual noise in some
IDEs.
Pick-to: 6.2
Change-Id: I79bf1ea8fb8a2f15643e052d50ac582a91bdff1a
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'src/corelib/Qt6CoreMacros.cmake')
-rw-r--r-- | src/corelib/Qt6CoreMacros.cmake | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/corelib/Qt6CoreMacros.cmake b/src/corelib/Qt6CoreMacros.cmake index 9d3e2a646b..f9393a2b07 100644 --- a/src/corelib/Qt6CoreMacros.cmake +++ b/src/corelib/Qt6CoreMacros.cmake @@ -1576,15 +1576,10 @@ function(__qt_propagate_generated_resource target resource_name generated_source endfunction() # Creates fake targets and adds resource files to IDE's tree +# FIXME: We shouldn't need to create a separate target for this, the files +# should be added to the actual target instead. function(_qt_internal_expose_source_file_to_ide target file) - set(ide_target_extension "other_files") - set(qml_extensions ".qml" ".js") - get_filename_component(resource_extension "${file}" LAST_EXT) - if(resource_extension IN_LIST qml_extensions) - set(ide_target_extension "qml_files") - endif() - - set(ide_target ${target}_${ide_target_extension}) + set(ide_target ${target}_other_files) if(NOT TARGET ${ide_target}) add_custom_target(${ide_target} SOURCES "${file}") else() |