Skip to content

Commit 171614a

Browse files
committed
Disable QML->C++ compilation because it makes Lith crash
1 parent 978ef1d commit 171614a

File tree

4 files changed

+13
-0
lines changed

4 files changed

+13
-0
lines changed

app/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ qt_add_executable(Lith
1515
${LITH_SOURCES}
1616
)
1717
set_target_properties(Lith PROPERTIES
18+
QT_QMLCACHEGEN_ARGUMENTS "--only-bytecode"
1819
QT_QML_IMPORT_PATH "${CMAKE_BINARY_DIR}/modules"
1920
QT_QML_ROOT_PATH "${CMAKE_SOURCE_DIR}"
2021
QT_ANDROID_EXTRA_LIBS "${ANDROID_OPENSSL_PATH}/${ANDROID_ABI}/libssl_3.so;${ANDROID_OPENSSL_PATH}/${ANDROID_ABI}/libcrypto_3.so"

modules/Lith/Core/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@ qt_add_qml_module(LithCore
6666
)
6767
qt_import_qml_plugins(LithCore)
6868

69+
set_target_properties(LithCore PROPERTIES
70+
QT_QMLCACHEGEN_ARGUMENTS "--only-bytecode"
71+
)
72+
6973
generate_export_header(LithCore)
7074

7175
target_link_libraries(LithCore PRIVATE

modules/Lith/Style/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ qt_add_qml_module(LithStyle
3939
)
4040
qt_import_qml_plugins(LithStyle)
4141

42+
set_target_properties(LithStyle PROPERTIES
43+
QT_QMLCACHEGEN_ARGUMENTS "--only-bytecode"
44+
)
45+
4246
target_link_libraries(LithStyle PRIVATE
4347
LithCore
4448
QCoro6::Coro

modules/Lith/UI/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ qt_add_qml_module(LithUI
5151
)
5252
qt_import_qml_plugins(LithUI)
5353

54+
set_target_properties(LithUI PROPERTIES
55+
QT_QMLCACHEGEN_ARGUMENTS "--only-bytecode"
56+
)
57+
5458
target_link_libraries(LithUI PRIVATE
5559
LithCore
5660
LithAssets

0 commit comments

Comments
 (0)