mirror of
https://github.com/redstrate/Astra.git
synced 2025-04-24 21:37:46 +00:00
Use KConfig cmake macro for kcfgc generation
This commit is contained in:
parent
f136f6475c
commit
8b90f114d5
4 changed files with 6 additions and 31 deletions
|
@ -92,7 +92,9 @@ target_link_libraries(astra_static PUBLIC
|
|||
QCoro::Core
|
||||
QCoro::Network
|
||||
QCoro::Qml)
|
||||
kconfig_add_kcfg_files(astra_static GENERATE_MOC config.kcfgc accountconfig.kcfgc profileconfig.kcfgc)
|
||||
kconfig_target_kcfg_file(astra_static FILE config.kcfg CLASS_NAME Config MUTATORS GENERATE_PROPERTIES GENERATE_MOC DEFAULT_VALUE_GETTERS PARENT_IN_CONSTRUCTOR)
|
||||
kconfig_target_kcfg_file(astra_static FILE accountconfig.kcfg CLASS_NAME AccountConfig MUTATORS GENERATE_PROPERTIES GENERATE_MOC DEFAULT_VALUE_GETTERS PARENT_IN_CONSTRUCTOR)
|
||||
kconfig_target_kcfg_file(astra_static FILE profileconfig.kcfg CLASS_NAME ProfileConfig MUTATORS GENERATE_PROPERTIES GENERATE_MOC DEFAULT_VALUE_GETTERS PARENT_IN_CONSTRUCTOR)
|
||||
target_include_directories(astra_static PUBLIC include ${CMAKE_BINARY_DIR})
|
||||
|
||||
if (NOT MSVC)
|
||||
|
@ -118,7 +120,7 @@ if (BUILD_SYNC)
|
|||
)
|
||||
target_compile_definitions(astra_static PUBLIC BUILD_SYNC)
|
||||
target_link_libraries(astra_static PRIVATE QuotientQt6)
|
||||
endif()
|
||||
endif ()
|
||||
|
||||
if (TARGET Qt6::DBus)
|
||||
target_link_libraries(astra_static PRIVATE Qt6::DBus)
|
||||
|
@ -135,7 +137,7 @@ target_sources(astra PRIVATE
|
|||
)
|
||||
|
||||
qt_target_qml_sources(astra_static
|
||||
QML_FILES
|
||||
QML_FILES
|
||||
ui/Components/FormFileDelegate.qml
|
||||
ui/Components/FormFolderDelegate.qml
|
||||
ui/Pages/AutoLoginPage.qml
|
||||
|
@ -223,4 +225,4 @@ if (WIN32)
|
|||
NO_UNSUPPORTED_PLATFORM_ERROR
|
||||
)
|
||||
install(SCRIPT ${deploy_script})
|
||||
endif()
|
||||
endif ()
|
|
@ -1,9 +0,0 @@
|
|||
# SPDX-FileCopyrightText: 2023 Joshua Goins <josh@redstrate.com>
|
||||
# SPDX-License-Identifier: CC0-1.0
|
||||
File=accountconfig.kcfg
|
||||
ClassName=AccountConfig
|
||||
Mutators=true
|
||||
DefaultValueGetters=true
|
||||
GenerateProperties=true
|
||||
ParentInConstructor=true
|
||||
Singleton=false
|
|
@ -1,9 +0,0 @@
|
|||
# SPDX-FileCopyrightText: 2023 Joshua Goins <josh@redstrate.com>
|
||||
# SPDX-License-Identifier: CC0-1.0
|
||||
File=config.kcfg
|
||||
ClassName=Config
|
||||
Mutators=true
|
||||
DefaultValueGetters=true
|
||||
GenerateProperties=true
|
||||
ParentInConstructor=false
|
||||
Singleton=false
|
|
@ -1,9 +0,0 @@
|
|||
# SPDX-FileCopyrightText: 2023 Joshua Goins <josh@redstrate.com>
|
||||
# SPDX-License-Identifier: CC0-1.0
|
||||
File=profileconfig.kcfg
|
||||
ClassName=ProfileConfig
|
||||
Mutators=true
|
||||
DefaultValueGetters=true
|
||||
GenerateProperties=true
|
||||
ParentInConstructor=true
|
||||
Singleton=false
|
Loading…
Add table
Reference in a new issue