mirror of
https://github.com/cuberite/SQLiteCpp.git
synced 2025-08-04 09:46:02 -04:00
QtCreator project files added
This commit is contained in:
parent
cc17771d2a
commit
17edbe921c
34
qtcreator/sqlitecpp-shared/sqlitecpp-shared.pro
Normal file
34
qtcreator/sqlitecpp-shared/sqlitecpp-shared.pro
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
|
||||||
|
TEMPLATE = lib
|
||||||
|
|
||||||
|
CONFIG += console
|
||||||
|
CONFIG += sharedlib
|
||||||
|
|
||||||
|
CONFIG -= app_bundle
|
||||||
|
CONFIG -= qt
|
||||||
|
|
||||||
|
DESTDIR = \
|
||||||
|
../../libs
|
||||||
|
|
||||||
|
QMAKE_CFLAGS += \
|
||||||
|
-Wno-sign-compare
|
||||||
|
|
||||||
|
INCLUDEPATH +=\
|
||||||
|
../../sqlite3
|
||||||
|
|
||||||
|
SOURCES += \
|
||||||
|
../../sqlite3/sqlite3.c \
|
||||||
|
../../src/Transaction.cpp \
|
||||||
|
../../src/Statement.cpp \
|
||||||
|
../../src/Database.cpp \
|
||||||
|
../../src/Column.cpp
|
||||||
|
|
||||||
|
HEADERS += \
|
||||||
|
../../sqlite3/sqlite3.h \
|
||||||
|
../../src/Transaction.h \
|
||||||
|
../../src/Statement.h \
|
||||||
|
../../src/SQLiteC++.h \
|
||||||
|
../../src/Exception.h \
|
||||||
|
../../src/Database.h \
|
||||||
|
../../src/Column.h \
|
||||||
|
../../src/Assertion.h
|
34
qtcreator/sqlitecpp-static/sqlitecpp-static.pro
Normal file
34
qtcreator/sqlitecpp-static/sqlitecpp-static.pro
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
|
||||||
|
TEMPLATE = lib
|
||||||
|
|
||||||
|
CONFIG += console
|
||||||
|
CONFIG += staticlib
|
||||||
|
|
||||||
|
CONFIG -= app_bundle
|
||||||
|
CONFIG -= qt
|
||||||
|
|
||||||
|
DESTDIR = \
|
||||||
|
../../libs
|
||||||
|
|
||||||
|
QMAKE_CFLAGS += \
|
||||||
|
-Wno-sign-compare
|
||||||
|
|
||||||
|
INCLUDEPATH +=\
|
||||||
|
../../sqlite3
|
||||||
|
|
||||||
|
SOURCES += \
|
||||||
|
../../sqlite3/sqlite3.c \
|
||||||
|
../../src/Transaction.cpp \
|
||||||
|
../../src/Statement.cpp \
|
||||||
|
../../src/Database.cpp \
|
||||||
|
../../src/Column.cpp
|
||||||
|
|
||||||
|
HEADERS += \
|
||||||
|
../../sqlite3/sqlite3.h \
|
||||||
|
../../src/Transaction.h \
|
||||||
|
../../src/Statement.h \
|
||||||
|
../../src/SQLiteC++.h \
|
||||||
|
../../src/Exception.h \
|
||||||
|
../../src/Database.h \
|
||||||
|
../../src/Column.h \
|
||||||
|
../../src/Assertion.h
|
@ -25,15 +25,15 @@
|
|||||||
// if an assert handler is provided by user code, use it instead of assert()
|
// if an assert handler is provided by user code, use it instead of assert()
|
||||||
namespace SQLite
|
namespace SQLite
|
||||||
{
|
{
|
||||||
// declaration of the assert handler to define in user code
|
// declaration of the assert handler to define in user code
|
||||||
void assertion_failed(const char* apFile, const long apLine, const char* apFunc, const char* apExpr, const char* apMsg);
|
void assertion_failed(const char* apFile, const long apLine, const char* apFunc, const char* apExpr, const char* apMsg);
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
#define __func__ __FUNCTION__
|
#define __func__ __FUNCTION__
|
||||||
#endif
|
#endif
|
||||||
// call the assert handler provided by user code
|
// call the assert handler provided by user code
|
||||||
#define SQLITECPP_ASSERT(expression,message) \
|
#define SQLITECPP_ASSERT(expression,message) \
|
||||||
if (!(expression)) SQLite::assertion_failed(__FILE__, __LINE__, __func__, #expression, message)
|
if (!(expression)) SQLite::assertion_failed(__FILE__, __LINE__, __func__, #expression, message)
|
||||||
}
|
}
|
||||||
|
|
||||||
#else
|
#else
|
||||||
@ -45,6 +45,6 @@ namespace SQLite
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#ifdef _WIN32
|
#if defined(_WIN32) && defined(_MSC_VER)
|
||||||
#pragma warning(disable:4290) // Disable warning C4290: C++ exception specification ignored except to indicate a function is not __declspec(nothrow)
|
#pragma warning(disable:4290) // Disable warning C4290: C++ exception specification ignored except to indicate a function is not __declspec(nothrow)
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user