QtCreator project files added

This commit is contained in:
niXman 2013-11-30 04:17:16 +04:00
parent cc17771d2a
commit 17edbe921c
3 changed files with 73 additions and 5 deletions

View 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

View 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

View File

@ -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