mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 03:10:12 +02:00
Remove unneeded files
This commit is contained in:
37
thirdparty/qsqlite-4.8.1/CMakeLists.txt
vendored
37
thirdparty/qsqlite-4.8.1/CMakeLists.txt
vendored
@@ -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
|
||||
)
|
||||
|
81
thirdparty/qsqlite-4.8.1/smain.cpp
vendored
81
thirdparty/qsqlite-4.8.1/smain.cpp
vendored
@@ -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 <qsqldriverplugin.h>
|
||||
#include <qstringlist.h>
|
||||
#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
|
Reference in New Issue
Block a user