mirror of
https://github.com/savoirfairelinux/jami-client-qt.git
synced 2025-12-17 07:53:24 +08:00
project: use qmldir for QML singletons registration
This simplifies registration and helps with IDE Intellisense for singleton components. Change-Id: Ifb424491c0fa4777ecc76ec947d57287eea94cfc
This commit is contained in:
@@ -219,6 +219,7 @@ execute_process(
|
||||
${PYTHON_EXEC} ${SCRIPTS_DIR}/gen_qml_qrc.py ${GEN_QRC_ARGS}
|
||||
WORKING_DIRECTORY ${APP_SRC_DIR})
|
||||
set(QML_RESOURCES_QML ${APP_SRC_DIR}/qml.qrc)
|
||||
|
||||
# Image and misc. resources
|
||||
# check files in the resources directory and force a reconfigure if it
|
||||
# changes
|
||||
@@ -230,6 +231,11 @@ execute_process(
|
||||
WORKING_DIRECTORY ${APP_SRC_DIR})
|
||||
set(QML_RESOURCES ${APP_SRC_DIR}/resources.qrc)
|
||||
|
||||
# Find modules (QtCreator) under the root source dir.
|
||||
list(APPEND QML_DIRS ${APP_SRC_DIR})
|
||||
set(QML_IMPORT_PATH ${QML_DIRS}
|
||||
CACHE STRING "Qt Creator extra qml import paths" FORCE)
|
||||
|
||||
# library compatibility (boost, libnotify, etc.)
|
||||
add_definitions(-DQT_NO_KEYWORDS)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user