Changeset View
Changeset View
Standalone View
Standalone View
projectbuilders/ninjabuilder/kdevninjabuilderplugin.cpp
Show All 31 Lines | |||||
32 | Q_DECLARE_LOGGING_CATEGORY(NINJABUILDER) | 32 | Q_DECLARE_LOGGING_CATEGORY(NINJABUILDER) | ||
33 | 33 | | |||
34 | Q_LOGGING_CATEGORY(NINJABUILDER, "kdevelop.projectbuilders.ninjabuilder") | 34 | Q_LOGGING_CATEGORY(NINJABUILDER, "kdevelop.projectbuilders.ninjabuilder") | ||
35 | K_PLUGIN_FACTORY_WITH_JSON(NinjaBuilderFactory, "kdevninja.json", registerPlugin<KDevNinjaBuilderPlugin>(); ) | 35 | K_PLUGIN_FACTORY_WITH_JSON(NinjaBuilderFactory, "kdevninja.json", registerPlugin<KDevNinjaBuilderPlugin>(); ) | ||
36 | 36 | | |||
37 | KDevNinjaBuilderPlugin::KDevNinjaBuilderPlugin(QObject* parent, const QVariantList& ) | 37 | KDevNinjaBuilderPlugin::KDevNinjaBuilderPlugin(QObject* parent, const QVariantList& ) | ||
38 | : KDevelop::IPlugin("kdevninja", parent) | 38 | : KDevelop::IPlugin("kdevninja", parent) | ||
39 | { | 39 | { | ||
40 | if(NinjaJob::ninjaBinary().isEmpty()) { | 40 | if(NinjaJob::ninjaExecutable().isEmpty()) { | ||
41 | setErrorDescription(i18n("Unable to find ninja executable. Is it installed on the system?")); | 41 | setErrorDescription(i18n("Unable to find ninja executable. Is it installed on the system?")); | ||
42 | } | 42 | } | ||
43 | } | 43 | } | ||
44 | 44 | | |||
45 | static QStringList targetsInFolder(KDevelop::ProjectFolderItem* item) | 45 | static QStringList targetsInFolder(KDevelop::ProjectFolderItem* item) | ||
46 | { | 46 | { | ||
47 | QStringList ret; | 47 | QStringList ret; | ||
48 | foreach(KDevelop::ProjectTargetItem* target, item->targetList()) { | 48 | foreach(KDevelop::ProjectTargetItem* target, item->targetList()) { | ||
▲ Show 20 Lines • Show All 154 Lines • Show Last 20 Lines |