A modern Music Player Daemon based on Rockbox open source high quality audio player
libadwaita audio rust zig deno mpris rockbox mpd
at master 140 lines 4.6 kB view raw
1# 2# __________ __ ___. 3# Open \______ \ ____ ____ | | _\_ |__ _______ ___ 4# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / 5# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < 6# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ 7# \/ \/ \/ \/ \/ 8# 9# All files in this archive are subject to the GNU General Public License. 10# See the file COPYING in the source tree root for full license agreement. 11# 12# This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY 13# KIND, either express or implied. 14# 15 16find_package(QuaZip-Qt${QT_VERSION_MAJOR} QUIET) 17if(QuaZip-Qt${QT_VERSION_MAJOR}_FOUND) 18 set(QUAZIP_LIBRARY QuaZip::QuaZip) 19else() 20 set(QUAZIP_LIBRARY quazip) 21endif() 22 23add_executable(RockboxThemeEditor WIN32 MACOSX_BUNDLE 24 graphics/rbalbumart.cpp 25 graphics/rbalbumart.h 26 graphics/rbfont.cpp 27 graphics/rbfont.h 28 graphics/rbfontcache.cpp 29 graphics/rbfontcache.h 30 graphics/rbimage.cpp 31 graphics/rbimage.h 32 graphics/rbmovable.cpp 33 graphics/rbmovable.h 34 graphics/rbprogressbar.cpp 35 graphics/rbprogressbar.h 36 graphics/rbrenderinfo.cpp 37 graphics/rbrenderinfo.h 38 graphics/rbscene.cpp 39 graphics/rbscene.h 40 graphics/rbscreen.cpp 41 graphics/rbscreen.h 42 graphics/rbtext.cpp 43 graphics/rbtext.h 44 graphics/rbtextcache.cpp 45 graphics/rbtextcache.h 46 graphics/rbtoucharea.cpp 47 graphics/rbtoucharea.h 48 graphics/rbviewport.cpp 49 graphics/rbviewport.h 50 gui/codeeditor.cpp 51 gui/codeeditor.h 52 gui/configdocument.cpp 53 gui/configdocument.h 54 gui/configdocument.ui 55 gui/devicestate.cpp 56 gui/devicestate.h 57 gui/editorwindow.cpp 58 gui/editorwindow.h 59 gui/editorwindow.ui 60 gui/fontdownloader.cpp 61 gui/fontdownloader.h 62 gui/fontdownloader.ui 63 gui/newprojectdialog.cpp 64 gui/newprojectdialog.h 65 gui/newprojectdialog.ui 66 gui/preferencesdialog.cpp 67 gui/preferencesdialog.h 68 gui/preferencesdialog.ui 69 gui/projectexporter.cpp 70 gui/projectexporter.h 71 gui/projectexporter.ui 72 gui/rbconsole.cpp 73 gui/rbconsole.h 74 gui/rbconsole.ui 75 gui/skindocument.cpp 76 gui/skindocument.h 77 gui/skinhighlighter.cpp 78 gui/skinhighlighter.h 79 gui/skintimer.cpp 80 gui/skintimer.h 81 gui/skintimer.ui 82 gui/skinviewer.cpp 83 gui/skinviewer.h 84 gui/skinviewer.ui 85 gui/syntaxcompleter.cpp 86 gui/syntaxcompleter.h 87 gui/tabcontent.h 88 gui/targetdownloader.cpp 89 gui/targetdownloader.h 90 gui/targetdownloader.ui 91 main.cpp 92 models/parsetreemodel.cpp 93 models/parsetreemodel.h 94 models/parsetreenode.cpp 95 models/parsetreenode.h 96 models/projectmodel.cpp 97 models/projectmodel.h 98 models/targetdata.cpp 99 models/targetdata.h 100 qtfindreplacedialog/finddialog.cpp 101 qtfindreplacedialog/finddialog.h 102 qtfindreplacedialog/findform.cpp 103 qtfindreplacedialog/findform.h 104 qtfindreplacedialog/findreplace_global.h 105 qtfindreplacedialog/findreplacedialog.cpp 106 qtfindreplacedialog/findreplacedialog.h 107 qtfindreplacedialog/findreplacedialog.ui 108 qtfindreplacedialog/findreplaceform.cpp 109 qtfindreplacedialog/findreplaceform.h 110 qtfindreplacedialog/findreplaceform.ui 111 qtfindreplacedialog/varianteditor.cpp 112 qtfindreplacedialog/varianteditor.h 113 resources.qrc 114 themeeditor.rc 115 ) 116set_target_properties(RockboxThemeEditor PROPERTIES AUTOMOC ON) 117set_target_properties(RockboxThemeEditor PROPERTIES AUTORCC ON) 118set_target_properties(RockboxThemeEditor PROPERTIES AUTOUIC ON) 119 120target_link_libraries(RockboxThemeEditor 121 Qt${QT_VERSION_MAJOR}::Network Qt${QT_VERSION_MAJOR}::Widgets Qt${QT_VERSION_MAJOR}::Core 122 skin_parser z ${QUAZIP_LIBRARY}) 123target_include_directories(RockboxThemeEditor PRIVATE models graphics gui qtfindreplacedialog quazip) 124target_compile_definitions(RockboxThemeEditor PRIVATE FINDREPLACE_NOLIB) 125 126if(APPLE) 127 # MacOS Application Bundle specifics. 128 target_sources(RockboxThemeEditor PRIVATE 129 ${CMAKE_CURRENT_LIST_DIR}/resources/windowicon.icns) 130 set_target_properties(RockboxThemeEditor 131 PROPERTIES MACOSX_BUNDLE_INFO_PLIST ${CMAKE_CURRENT_LIST_DIR}/Info.plist) 132 set_source_files_properties(${CMAKE_CURRENT_LIST_DIR}/resources/windowicon.icns 133 PROPERTIES MACOSX_PACKAGE_LOCATION Resources) 134endif() 135 136deploy_qt(TARGET RockboxThemeEditor 137 QTBINDIR ${QT_BINDIR} 138 ICONFILE ${CMAKE_CURRENT_LIST_DIR}/resources/rbthemeeditor.svg 139 DESKTOPFILE ${CMAKE_CURRENT_LIST_DIR}/RockboxThemeEditor.desktop 140 DMGBUILDCFG ${CMAKE_CURRENT_LIST_DIR}/dmgbuild.cfg)