Skip to content

Commit

Permalink
Examples: Disable QtC junction points for examples using 'shared' dir…
Browse files Browse the repository at this point in the history
…ectory

To work around path length limiations, Qt Creator optionally uses junction
points to shorten the build directories. This however breaks examples
that require sources outside their 'root' directory.

QUIP 13 states that examples should be self-contained. Anyhow, fixing this
is a larger effort, so for now just disable junction points in Qt Creator
for these examples.

Task-number: QTBUG-128914
Pick-to: 6.8
Change-Id: Ifb5e6944d936c82b1dba9fe3b81bebc1c8320168
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
  • Loading branch information
kkoehne committed Nov 26, 2024
1 parent 439654c commit ced47a5
Show file tree
Hide file tree
Showing 10 changed files with 210 additions and 0 deletions.
21 changes: 21 additions & 0 deletions examples/network/multistreamclient/CMakeLists.txt.shared
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE QtCreatorProject>
<!--
Disable 'Use junctions for CMake configuration and build operations' feature in Qt Creator 15 and above;
The example needs access to a 'shared' directory
//-->
<qtcreator>
<data>
<variable>ProjectExplorer.Project.PluginSettings</variable>
<valuemap type="QVariantMap">
<valuemap type="QVariantMap" key="CMakeSpecificSettings">
<value type="bool" key="UseJunctionsForSourceAndBuildDirectories">false</value>
<value type="bool" key="UseGlobalSettings">false</value>
</valuemap>
</valuemap>
</data>
<data>
<variable>Version</variable>
<value type="int">22</value>
</data>
</qtcreator>
21 changes: 21 additions & 0 deletions examples/network/multistreamserver/CMakeLists.txt.shared
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE QtCreatorProject>
<!--
Disable 'Use junctions for CMake configuration and build operations' feature in Qt Creator 15 and above;
The example needs access to a 'shared' directory
//-->
<qtcreator>
<data>
<variable>ProjectExplorer.Project.PluginSettings</variable>
<valuemap type="QVariantMap">
<valuemap type="QVariantMap" key="CMakeSpecificSettings">
<value type="bool" key="UseJunctionsForSourceAndBuildDirectories">false</value>
<value type="bool" key="UseGlobalSettings">false</value>
</valuemap>
</valuemap>
</data>
<data>
<variable>Version</variable>
<value type="int">22</value>
</data>
</qtcreator>
21 changes: 21 additions & 0 deletions examples/vulkan/hellovulkancubes/CMakeLists.txt.shared
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE QtCreatorProject>
<!--
Disable 'Use junctions for CMake configuration and build operations' feature in Qt Creator 15 and above;
The example needs access to a 'shared' directory
//-->
<qtcreator>
<data>
<variable>ProjectExplorer.Project.PluginSettings</variable>
<valuemap type="QVariantMap">
<valuemap type="QVariantMap" key="CMakeSpecificSettings">
<value type="bool" key="UseJunctionsForSourceAndBuildDirectories">false</value>
<value type="bool" key="UseGlobalSettings">false</value>
</valuemap>
</valuemap>
</data>
<data>
<variable>Version</variable>
<value type="int">22</value>
</data>
</qtcreator>
21 changes: 21 additions & 0 deletions examples/vulkan/hellovulkantriangle/CMakeLists.txt.shared
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE QtCreatorProject>
<!--
Disable 'Use junctions for CMake configuration and build operations' feature in Qt Creator 15 and above;
The example needs access to a 'shared' directory
//-->
<qtcreator>
<data>
<variable>ProjectExplorer.Project.PluginSettings</variable>
<valuemap type="QVariantMap">
<valuemap type="QVariantMap" key="CMakeSpecificSettings">
<value type="bool" key="UseJunctionsForSourceAndBuildDirectories">false</value>
<value type="bool" key="UseGlobalSettings">false</value>
</valuemap>
</valuemap>
</data>
<data>
<variable>Version</variable>
<value type="int">22</value>
</data>
</qtcreator>
21 changes: 21 additions & 0 deletions examples/vulkan/hellovulkanwidget/CMakeLists.txt.shared
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE QtCreatorProject>
<!--
Disable 'Use junctions for CMake configuration and build operations' feature in Qt Creator 15 and above;
The example needs access to a 'shared' directory
//-->
<qtcreator>
<data>
<variable>ProjectExplorer.Project.PluginSettings</variable>
<valuemap type="QVariantMap">
<valuemap type="QVariantMap" key="CMakeSpecificSettings">
<value type="bool" key="UseJunctionsForSourceAndBuildDirectories">false</value>
<value type="bool" key="UseGlobalSettings">false</value>
</valuemap>
</valuemap>
</data>
<data>
<variable>Version</variable>
<value type="int">22</value>
</data>
</qtcreator>
21 changes: 21 additions & 0 deletions examples/widgets/painting/affine/CMakeLists.txt.shared
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE QtCreatorProject>
<!--
Disable 'Use junctions for CMake configuration and build operations' feature in Qt Creator 15 and above;
The example needs access to a 'shared' directory
//-->
<qtcreator>
<data>
<variable>ProjectExplorer.Project.PluginSettings</variable>
<valuemap type="QVariantMap">
<valuemap type="QVariantMap" key="CMakeSpecificSettings">
<value type="bool" key="UseJunctionsForSourceAndBuildDirectories">false</value>
<value type="bool" key="UseGlobalSettings">false</value>
</valuemap>
</valuemap>
</data>
<data>
<variable>Version</variable>
<value type="int">22</value>
</data>
</qtcreator>
21 changes: 21 additions & 0 deletions examples/widgets/painting/composition/CMakeLists.txt.shared
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE QtCreatorProject>
<!--
Disable 'Use junctions for CMake configuration and build operations' feature in Qt Creator 15 and above;
The example needs access to a 'shared' directory
//-->
<qtcreator>
<data>
<variable>ProjectExplorer.Project.PluginSettings</variable>
<valuemap type="QVariantMap">
<valuemap type="QVariantMap" key="CMakeSpecificSettings">
<value type="bool" key="UseJunctionsForSourceAndBuildDirectories">false</value>
<value type="bool" key="UseGlobalSettings">false</value>
</valuemap>
</valuemap>
</data>
<data>
<variable>Version</variable>
<value type="int">22</value>
</data>
</qtcreator>
21 changes: 21 additions & 0 deletions examples/widgets/painting/deform/CMakeLists.txt.shared
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE QtCreatorProject>
<!--
Disable 'Use junctions for CMake configuration and build operations' feature in Qt Creator 15 and above;
The example needs access to a 'shared' directory
//-->
<qtcreator>
<data>
<variable>ProjectExplorer.Project.PluginSettings</variable>
<valuemap type="QVariantMap">
<valuemap type="QVariantMap" key="CMakeSpecificSettings">
<value type="bool" key="UseJunctionsForSourceAndBuildDirectories">false</value>
<value type="bool" key="UseGlobalSettings">false</value>
</valuemap>
</valuemap>
</data>
<data>
<variable>Version</variable>
<value type="int">22</value>
</data>
</qtcreator>
21 changes: 21 additions & 0 deletions examples/widgets/painting/gradients/CMakeLists.txt.shared
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE QtCreatorProject>
<!--
Disable 'Use junctions for CMake configuration and build operations' feature in Qt Creator 15 and above;
The example needs access to a 'shared' directory
//-->
<qtcreator>
<data>
<variable>ProjectExplorer.Project.PluginSettings</variable>
<valuemap type="QVariantMap">
<valuemap type="QVariantMap" key="CMakeSpecificSettings">
<value type="bool" key="UseJunctionsForSourceAndBuildDirectories">false</value>
<value type="bool" key="UseGlobalSettings">false</value>
</valuemap>
</valuemap>
</data>
<data>
<variable>Version</variable>
<value type="int">22</value>
</data>
</qtcreator>
21 changes: 21 additions & 0 deletions examples/widgets/painting/pathstroke/CMakeLists.txt.shared
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE QtCreatorProject>
<!--
Disable 'Use junctions for CMake configuration and build operations' feature in Qt Creator 15 and above;
The example needs access to a 'shared' directory
//-->
<qtcreator>
<data>
<variable>ProjectExplorer.Project.PluginSettings</variable>
<valuemap type="QVariantMap">
<valuemap type="QVariantMap" key="CMakeSpecificSettings">
<value type="bool" key="UseJunctionsForSourceAndBuildDirectories">false</value>
<value type="bool" key="UseGlobalSettings">false</value>
</valuemap>
</valuemap>
</data>
<data>
<variable>Version</variable>
<value type="int">22</value>
</data>
</qtcreator>

0 comments on commit ced47a5

Please sign in to comment.