File indexing completed on 2024-05-05 16:46:07

0001 /*
0002     SPDX-FileCopyrightText: 2015 Morten Danielsen Volden <mvolden2@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 "perforceplugin.h"
0008 
0009 #include <KPluginFactory>
0010 
0011 
0012 // This file only exists so that the tests can be built:
0013 // test_kdevperforce builds perforceplugin.cpp again but in a different directory.
0014 // This means that the kdevperforce.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 
0018 K_PLUGIN_FACTORY_WITH_JSON(KdevPerforceFactory, "kdevperforce.json", registerPlugin<PerforcePlugin>();)
0019 
0020 #include "perforcepluginmetadata.moc"