/* SPDX-FileCopyrightText: 2017 Adriaan de Groot SPDX-FileCopyrightText: 2018 Andrius Štikonas SPDX-FileCopyrightText: 2019 Shubham Jangra SPDX-License-Identifier: GPL-3.0-or-later */ // Initializes KPMcore, and either loads the default backend for // the current platform, or if one is named on the command line, // loads that one. Returns 0 on success. #include #include "helpers.h" int main( int argc, char** argv ) { QCoreApplication app(argc, argv); if ( argc != 2 ) { KPMCoreInitializer i; return i.isValid() ? 0 : 1; } else { KPMCoreInitializer i( argv[1] ); return i.isValid() ? 0 : 1; } }