From 09882283d1d5c4901ed7720c327c16166567e80d Mon Sep 17 00:00:00 2001 From: Jeff Mitchell Date: Mon, 18 Jun 2012 04:09:58 -0400 Subject: [PATCH] Remove unneeded files --- thirdparty/qsqlite-4.8.1/CMakeLists.txt | 37 ----------- thirdparty/qsqlite-4.8.1/smain.cpp | 81 ------------------------- 2 files changed, 118 deletions(-) delete mode 100644 thirdparty/qsqlite-4.8.1/CMakeLists.txt delete mode 100644 thirdparty/qsqlite-4.8.1/smain.cpp diff --git a/thirdparty/qsqlite-4.8.1/CMakeLists.txt b/thirdparty/qsqlite-4.8.1/CMakeLists.txt deleted file mode 100644 index 6ad4edfa9..000000000 --- a/thirdparty/qsqlite-4.8.1/CMakeLists.txt +++ /dev/null @@ -1,37 +0,0 @@ -cmake_minimum_required(VERSION 2.6) - -FIND_PACKAGE( Qt4 4.8.1 COMPONENTS QtCore QtSql REQUIRED ) -set(QT_USE_QTSQL TRUE) -include( ${QT_USE_FILE} ) - -# Source files -set(THSQLITE-SOURCES - qsql_thsqlite.cpp - smain.cpp -) - -# Header files that have Q_OBJECT in -set(THSQLITE-MOC-HEADERS - qsql_thsqlite.h -) - -qt4_wrap_cpp(THSQLITE-SOURCES-MOC ${THSQLITE-MOC-HEADERS}) - -include_directories(${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR} ${QT_INCLUDES}) - -add_library(tomahawk_qsqlite SHARED - ${THSQLITE-SOURCES} - ${THSQLITE-SOURCES-MOC} -) -target_link_libraries(tomahawk_qsqlite - sqlite3 - ${QT_LIBRARIES} -) - -INSTALL( TARGETS tomahawk_qsqlite - RUNTIME DESTINATION bin - LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} - ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} - BUNDLE DESTINATION library -) - diff --git a/thirdparty/qsqlite-4.8.1/smain.cpp b/thirdparty/qsqlite-4.8.1/smain.cpp deleted file mode 100644 index ef85c030e..000000000 --- a/thirdparty/qsqlite-4.8.1/smain.cpp +++ /dev/null @@ -1,81 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). -** All rights reserved. -** Contact: Nokia Corporation (qt-info@nokia.com) -** -** This file is part of the plugins of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial Usage -** Licensees holding valid Qt Commercial licenses may use this file in -** accordance with the Qt Commercial License Agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and Nokia. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3.0 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU General Public License version 3.0 requirements will be -** met: http://www.gnu.org/copyleft/gpl.html. -** -** If you have questions regarding the use of this file, please contact -** Nokia at qt-info@nokia.com. -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include -#include -#include "qsql_thsqlite.h" - -QT_BEGIN_NAMESPACE - -class QTHSQLiteDriverPlugin : public QSqlDriverPlugin -{ -public: - QTHSQLiteDriverPlugin(); - - QSqlDriver* create(const QString &); - QStringList keys() const; -}; - -QTHSQLiteDriverPlugin::QTHSQLiteDriverPlugin() - : QSqlDriverPlugin() -{ -} - -QSqlDriver* QTHSQLiteDriverPlugin::create(const QString &name) -{ - if (name == QLatin1String("QTHSQLITE")) { - QTHSQLiteDriver* driver = new QTHSQLiteDriver(); - return driver; - } - return 0; -} - -QStringList QTHSQLiteDriverPlugin::keys() const -{ - QStringList l; - l.append(QLatin1String("QTHSQLITE")); - return l; -} - -Q_EXPORT_STATIC_PLUGIN(QTHSQLiteDriverPlugin) -Q_EXPORT_PLUGIN2(qsqlthsqlite, QTHSQLiteDriverPlugin) - -QT_END_NAMESPACE