Commit c9ad183a authored by Ahmad Samir's avatar Ahmad Samir
Browse files

Port away from kdeinit

parent ea9181cc
......@@ -5,11 +5,11 @@ add_definitions(-DTRANSLATION_DOMAIN=\"kaccess\")
find_package(Phonon4Qt5 REQUIRED NO_MODULE)
include_directories(${PHONON_INCLUDE_DIR})
set(kaccess_KDEINIT_SRCS kaccess.cpp main.cpp )
set(kaccess_SRCS kaccess.cpp main.cpp )
kf5_add_kdeinit_executable(kaccess ${kaccess_KDEINIT_SRCS})
add_executable(kaccess ${kaccess_SRCS})
target_link_libraries(kdeinit_kaccess
target_link_libraries(kaccess
Qt::Widgets
Qt::X11Extras
KF5::CoreAddons
......@@ -25,8 +25,7 @@ target_link_libraries(kdeinit_kaccess
${X11_LIBRARIES}
)
install(TARGETS kdeinit_kaccess ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} )
install(TARGETS kaccess ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} )
install(TARGETS kaccess ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
########### install files ###############
......
......@@ -20,6 +20,7 @@
*/
#include "kaccess.h"
#include <KAboutData>
#include <KLocalizedString>
#include <Kdelibs4ConfigMigrator>
......@@ -27,7 +28,7 @@
#include <QDebug>
#include <QX11Info>
extern "C" Q_DECL_EXPORT int kdemain(int argc, char *argv[])
int main(int argc, char *argv[])
{
Kdelibs4ConfigMigrator migrate(QStringLiteral("kaccess"));
migrate.setConfigFiles(QStringList() << QStringLiteral("kaccessrc"));
......
......@@ -3,8 +3,6 @@ add_definitions(-DTRANSLATION_DOMAIN=\"kcmaccess\")
set(kcm_access_PART_SRCS kcmaccess.cpp )
# needed for krdb
qt5_add_dbus_interface(kcm_access_PART_SRCS ${KINIT_DBUS_INTERFACES_DIR}/kf5_org.kde.KLauncher.xml klauncher_iface)
kconfig_add_kcfg_files(kcm_access_PART_SRCS
kcmaccessibilitybell.kcfgc
kcmaccessibilitykeyboard.kcfgc
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment