fix(cpp): make libraries which are not dynamically loaded static
Otherwise, linker will optimize resources registration code on Linux, resulting in resources loading failure.
This commit is contained in:
parent
1f43c541cf
commit
9f6feb67dd
|
@ -16,6 +16,7 @@ qt6_standard_project_setup()
|
||||||
qt6_add_qml_module(${PROJECT_NAME}
|
qt6_add_qml_module(${PROJECT_NAME}
|
||||||
URI Status.StaticConfig
|
URI Status.StaticConfig
|
||||||
VERSION 1.0
|
VERSION 1.0
|
||||||
|
STATIC
|
||||||
RESOURCES
|
RESOURCES
|
||||||
default-networks.json
|
default-networks.json
|
||||||
fleets.json
|
fleets.json
|
||||||
|
|
|
@ -15,6 +15,7 @@ qt6_standard_project_setup()
|
||||||
qt6_add_qml_module(${PROJECT_NAME}
|
qt6_add_qml_module(${PROJECT_NAME}
|
||||||
URI Status.FontsAssets
|
URI Status.FontsAssets
|
||||||
VERSION 1.0
|
VERSION 1.0
|
||||||
|
STATIC
|
||||||
# TODO: temporary until we make qt_target_qml_sources work
|
# TODO: temporary until we make qt_target_qml_sources work
|
||||||
RESOURCES
|
RESOURCES
|
||||||
Inter/Inter-Regular.otf
|
Inter/Inter-Regular.otf
|
||||||
|
|
|
@ -15,6 +15,7 @@ qt6_standard_project_setup()
|
||||||
qt6_add_qml_module(${PROJECT_NAME}
|
qt6_add_qml_module(${PROJECT_NAME}
|
||||||
URI Status.UiAssets
|
URI Status.UiAssets
|
||||||
VERSION 1.0
|
VERSION 1.0
|
||||||
|
STATIC
|
||||||
# TODO: temporary until we make qt_target_qml_sources work
|
# TODO: temporary until we make qt_target_qml_sources work
|
||||||
RESOURCES
|
RESOURCES
|
||||||
gif/status_splash_dark.gif
|
gif/status_splash_dark.gif
|
||||||
|
|
Loading…
Reference in New Issue