diff --git a/host/CMakeLists.txt b/host/CMakeLists.txt index 0c346e02..45e2c354 100644 --- a/host/CMakeLists.txt +++ b/host/CMakeLists.txt @@ -1,31 +1,33 @@ +add_definitions(-DTRANSLATION_DOMAIN=\"plasma-browser-integration-host\") + set(HOST_SOURCES main.cpp connection.cpp settings.cpp mprisplugin.cpp abstractbrowserplugin.cpp kdeconnectplugin.cpp downloadplugin.cpp downloadjob.cpp tabsrunnerplugin.cpp ) qt5_add_dbus_adaptor(HOST_SOURCES ../dbus/org.kde.plasma.browser_integration.TabsRunner.xml tabsrunnerplugin.h TabsRunnerPlugin) qt5_add_dbus_adaptor(HOST_SOURCES ../dbus/org.kde.plasma.browser_integration.Settings.xml settings.h Settings) qt5_add_dbus_adaptor(HOST_SOURCES ../dbus/org.mpris.MediaPlayer2.xml mprisplugin.h MPrisPlugin mprisroot MPrisRoot) qt5_add_dbus_adaptor(HOST_SOURCES ../dbus/org.mpris.MediaPlayer2.Player.xml mprisplugin.h MPrisPlugin mprisplayer MPrisPlayer) add_executable(plasma-browser-integration-host ${HOST_SOURCES}) target_link_libraries( plasma-browser-integration-host Qt5::DBus Qt5::Gui Qt5::Widgets KF5::I18n KF5::KIOCore KF5::Notifications KF5::WindowSystem KF5::Activities ) install(TARGETS plasma-browser-integration-host ${KDE_INSTALL_TARGETS_DEFAULT_ARGS}) diff --git a/host/Messages.sh b/host/Messages.sh new file mode 100644 index 00000000..518164c5 --- /dev/null +++ b/host/Messages.sh @@ -0,0 +1,2 @@ +#! /usr/bin/env bash +$XGETTEXT `find . -name \*.cpp` -o $podir/plasma-browser-integration-host.pot