Skip to content

Commit 91a8482

Browse files
committed
cmake: set LOCKED for import crate calls for faster CI
1 parent ce6b261 commit 91a8482

File tree

7 files changed

+13
-5
lines changed

7 files changed

+13
-5
lines changed

examples/demo_threading/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,9 @@ set(CRATE cxx_qt_demo_threading)
5656
cxx_qt_import_crate(
5757
MANIFEST_PATH rust/Cargo.toml
5858
CRATES ${CRATE}
59-
QT_MODULES Qt::Core)
59+
QT_MODULES Qt::Core
60+
LOCKED
61+
)
6062
cxx_qt_import_qml_module(${CRATE}_qml
6163
URI "com.kdab.energy"
6264
SOURCE_CRATE ${CRATE})

examples/qml_features/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ cxx_qt_import_crate(
5757
MANIFEST_PATH rust/Cargo.toml
5858
CRATES ${CRATE}
5959
QT_MODULES Qt::Core Qt::Gui Qt::Qml Qt::Quick
60+
LOCKED
6061
)
6162
cxx_qt_import_qml_module(${CRATE}_qml
6263
URI "com.kdab.cxx_qt.demo"

examples/qml_minimal/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,9 @@ endif()
6868
cxx_qt_import_crate(
6969
MANIFEST_PATH rust/Cargo.toml
7070
CRATES qml_minimal
71-
QT_MODULES Qt::Core Qt::Gui Qt::Qml Qt::QuickControls2)
71+
QT_MODULES Qt::Core Qt::Gui Qt::Qml Qt::QuickControls2
72+
LOCKED
73+
)
7274

7375
cxx_qt_import_qml_module(qml_minimal_qml_module
7476
URI "com.kdab.cxx_qt.demo"

examples/qml_multi_crates/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,9 @@ endif()
5454
cxx_qt_import_crate(MANIFEST_PATH rust/main/Cargo.toml
5555
CRATES qml_multi_crates
5656
CRATE_TYPES staticlib
57-
QT_MODULES Qt::Core Qt::Gui Qt::Qml Qt::QuickControls2 Qt::Network)
57+
QT_MODULES Qt::Core Qt::Gui Qt::Qml Qt::QuickControls2 Qt::Network
58+
LOCKED
59+
)
5860

5961
cxx_qt_import_qml_module(qml_multi_crates_main
6062
URI "com.kdab.cxx_qt.demo"

tests/basic_cxx_only/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ if(NOT CxxQt_FOUND)
4343
endif()
4444

4545
set(CRATE basic_cxx_only)
46-
cxx_qt_import_crate(MANIFEST_PATH rust/Cargo.toml CRATES ${CRATE} QT_MODULES Qt::Core)
46+
cxx_qt_import_crate(MANIFEST_PATH rust/Cargo.toml CRATES ${CRATE} QT_MODULES Qt::Core LOCKED)
4747

4848
if(BUILD_WASN)
4949
# Add -DRUST_CXX_NO_EXCEPTIONS to CXXFLAGS, as WASM does not support exceptions

tests/basic_cxx_qt/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ if(NOT CxxQt_FOUND)
4343
endif()
4444

4545
set(CRATE basic_cxx_qt)
46-
cxx_qt_import_crate(MANIFEST_PATH rust/Cargo.toml CRATES ${CRATE} QT_MODULES Qt::Core)
46+
cxx_qt_import_crate(MANIFEST_PATH rust/Cargo.toml CRATES ${CRATE} QT_MODULES Qt::Core LOCKED)
4747

4848
if(BUILD_WASN)
4949
# Add -DRUST_CXX_NO_EXCEPTIONS to CXXFLAGS, as WASM does not support exceptions

tests/qt_types_standalone/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ cxx_qt_import_crate(
4747
MANIFEST_PATH rust/Cargo.toml
4848
CRATES ${CRATE}
4949
QT_MODULES Qt::Core Qt::Gui Qt::Qml
50+
LOCKED
5051
)
5152

5253
if(BUILD_WASN)

0 commit comments

Comments
 (0)