* Synced debian foo with experimental * Bumped Standards to 3.9.8, no changes needed * Bumped compat to 10 * Removed --parallel from rules, standard compat 10 * Bumped minimum version debhelper (>= 10) * Bumped minimum version liblxqt0-dev (>= 0.11.0) * Bumped minimum version liblxqt-globalkeys0-dev (>= 0.11.0), * Bumped minimum version liblxqt-globalkeys-ui0-dev (>= 0.11.0), * Bumped minimum version libsysstat-qt5-0-dev (>= 0.3.2) * Added build-dependency libqt5svg5-dev * Added build-dependency libqtxdg-dev (>= 2.0.0) * Added build-dependency libqt5xdgiconloader-dev (>= 2.0.0) * Added Recommends lxqt-panel-l10n * Fixed VCS fields, point to the right branch * Fixed copyrights Format field to https * Bumped years in copyrights * Added translation control to rules * Added hardening options * Set CMAKE_BUILD_TYPE=RelWithDebInfo * Exported LC_ALL=C.UTF-8, make builds reproducible
124 lines
2.8 KiB
CMake
124 lines
2.8 KiB
CMake
set(PROJECT lxqt-panel)
|
|
|
|
set(PRIV_HEADERS
|
|
panelpluginsmodel.h
|
|
windownotifier.h
|
|
lxqtpanel.h
|
|
lxqtpanelapplication.h
|
|
lxqtpanelapplication_p.h
|
|
lxqtpanellayout.h
|
|
plugin.h
|
|
pluginsettings_p.h
|
|
lxqtpanellimits.h
|
|
popupmenu.h
|
|
pluginmoveprocessor.h
|
|
lxqtpanelpluginconfigdialog.h
|
|
config/configpaneldialog.h
|
|
config/configpanelwidget.h
|
|
config/configpluginswidget.h
|
|
config/addplugindialog.h
|
|
)
|
|
|
|
# using LXQt namespace in the public headers.
|
|
set(PUB_HEADERS
|
|
lxqtpanelglobals.h
|
|
pluginsettings.h
|
|
ilxqtpanelplugin.h
|
|
ilxqtpanel.h
|
|
)
|
|
|
|
set(SOURCES
|
|
main.cpp
|
|
panelpluginsmodel.cpp
|
|
windownotifier.cpp
|
|
lxqtpanel.cpp
|
|
lxqtpanelapplication.cpp
|
|
lxqtpanellayout.cpp
|
|
plugin.cpp
|
|
pluginsettings.cpp
|
|
popupmenu.cpp
|
|
pluginmoveprocessor.cpp
|
|
lxqtpanelpluginconfigdialog.cpp
|
|
config/configpaneldialog.cpp
|
|
config/configpanelwidget.cpp
|
|
config/configpluginswidget.cpp
|
|
config/addplugindialog.cpp
|
|
)
|
|
|
|
set(UI
|
|
config/configpanelwidget.ui
|
|
config/configpluginswidget.ui
|
|
config/addplugindialog.ui
|
|
)
|
|
|
|
set(LIBRARIES
|
|
lxqt
|
|
)
|
|
|
|
file(GLOB CONFIG_FILES resources/*.conf)
|
|
|
|
############################################
|
|
|
|
add_definitions(-DCOMPILE_LXQT_PANEL)
|
|
|
|
set(PLUGIN_DESKTOPS_DIR "${CMAKE_INSTALL_FULL_DATAROOTDIR}/lxqt/${PROJECT}")
|
|
add_definitions(-DPLUGIN_DESKTOPS_DIR=\"${PLUGIN_DESKTOPS_DIR}\")
|
|
|
|
if (WITH_SCREENSAVER_FALLBACK)
|
|
message(STATUS "Building with conversion of deprecated 'screensaver' plugin")
|
|
add_definitions(-DWITH_SCREENSAVER_FALLBACK "-DLXQT_LOCK_DESKTOP=\"${CMAKE_INSTALL_FULL_DATAROOTDIR}/applications/lxqt-lockscreen.desktop\"")
|
|
endif ()
|
|
|
|
project(${PROJECT})
|
|
|
|
set(QTX_LIBRARIES Qt5::Widgets Qt5::Xml Qt5::DBus)
|
|
|
|
# Translations
|
|
lxqt_translate_ts(QM_FILES SOURCES
|
|
UPDATE_TRANSLATIONS
|
|
${UPDATE_TRANSLATIONS}
|
|
SOURCES
|
|
${PUB_HEADERS}
|
|
${PRIV_HEADERS}
|
|
${SOURCES}
|
|
${UI}
|
|
INSTALL_DIR
|
|
"${LXQT_TRANSLATIONS_DIR}/${PROJECT_NAME}"
|
|
PULL_TRANSLATIONS
|
|
${PULL_TRANSLATIONS}
|
|
CLEAN_TRANSLATIONS
|
|
${CLEAN_TRANSLATIONS}
|
|
TRANSLATIONS_REPO
|
|
${TRANSLATIONS_REPO}
|
|
TRANSLATIONS_REFSPEC
|
|
${TRANSLATIONS_REFSPEC}
|
|
REPO_SUBDIR
|
|
"${PROJECT_NAME}/panel"
|
|
)
|
|
|
|
lxqt_app_translation_loader(SOURCES ${PROJECT_NAME})
|
|
|
|
add_executable(${PROJECT}
|
|
${PUB_HEADERS}
|
|
${PRIV_HEADERS}
|
|
${QM_FILES}
|
|
${SOURCES}
|
|
${UI}
|
|
)
|
|
|
|
target_link_libraries(${PROJECT}
|
|
${LIBRARIES}
|
|
${QTX_LIBRARIES}
|
|
KF5::WindowSystem
|
|
${STATIC_PLUGINS}
|
|
)
|
|
|
|
install(TARGETS ${PROJECT} RUNTIME DESTINATION bin)
|
|
install(FILES ${CONFIG_FILES} DESTINATION ${LXQT_ETC_XDG_DIR}/lxqt)
|
|
install(FILES ${PUB_HEADERS} DESTINATION include/lxqt)
|
|
install(FILES
|
|
man/lxqt-panel.1
|
|
DESTINATION "${CMAKE_INSTALL_MANDIR}/man1"
|
|
COMPONENT Runtime
|
|
)
|