File indexing completed on 2024-04-28 04:38:51
0001 /* 0002 SPDX-FileCopyrightText: 2014 Alex Richardson <arichardosn.kde@gmail.com> 0003 0004 SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL 0005 */ 0006 0007 #include "gitplugin.h" 0008 0009 #include <KPluginFactory> 0010 0011 0012 // This file only exists so that the tests can be built: 0013 // test_git builds gitplugin.cpp again but in a different directory. 0014 // This means that the kdevgit.json file is no longer found. 0015 // Since the JSON metadata is not needed in the test, we simply move 0016 // the K_PLUGIN_FACTORY_WITH_JSON to a separate file. 0017 // TODO: use object or static library? 0018 0019 K_PLUGIN_FACTORY_WITH_JSON(KDevGitFactory, "kdevgit.json", registerPlugin<GitPlugin>();) 0020 0021 #include "gitpluginmetadata.moc"