Commit a4d5fc45 authored by Laurent Montel's avatar Laurent Montel 😁

kdelibs4support--

parent 3ca18ae1
......@@ -22,7 +22,8 @@ find_package(KF5 REQUIRED COMPONENTS
KIO
NotifyConfig
NewStuff
KDELibs4Support)
KDELibs4Support
)
find_package(KF5KDEGames 4.9.0 REQUIRED)
find_package(Phonon4Qt5 CONFIG REQUIRED)
......@@ -36,7 +37,6 @@ include(KDEInstallDirs)
include(KDECompilerSettings)
include(KDECMakeSettings)
add_definitions(${QT_DEFINITIONS})
add_definitions(-DQT_USE_FAST_CONCATENATION -DQT_USE_FAST_OPERATOR_PLUS)
add_definitions(-DTRANSLATION_DOMAIN="ksnakeduel")
......@@ -70,7 +70,7 @@ ecm_add_app_icon(ksnakeduel_SRCS ICONS ${ICONS_SRCS})
add_executable(ksnakeduel ${ksnakeduel_SRCS})
target_link_libraries(ksnakeduel KF5KDEGames KF5KDEGamesPrivate KF5::NotifyConfig KF5::KDELibs4Support Qt5::Svg)
target_link_libraries(ksnakeduel KF5KDEGames KF5KDEGamesPrivate KF5::NotifyConfig KF5::I18n Qt5::Svg KF5::GuiAddons KF5::KDELibs4Support)
install(TARGETS ksnakeduel ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
......
......@@ -24,7 +24,6 @@
#include <KLocalizedString>
#include <KAboutData>
#include <KStandardDirs>
#include <QCommandLineParser>
#include <QCommandLineOption>
......@@ -59,13 +58,12 @@ int main(int argc, char* argv[])
parser.addHelpOption();
parser.addOption(QCommandLineOption(QStringList() << QLatin1String("snake"), i18n("Start in KSnake mode")));
//PORTING SCRIPT: adapt aboutdata variable if necessary
aboutData.setupCommandLine(&parser);
parser.process(app);
aboutData.processCommandLine(&parser);
KStandardDirs::locateLocal("appdata", QLatin1String( "themes/" ));
//KStandardDirs::locateLocal("appdata", QLatin1String( "themes/" ));
if (parser.isSet("snake"))
{
......
Markdown is supported
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