Ah okay.
I believe to understand it now. ;-)
Will you change that?

2011/4/14 Michael Olbrich <[email protected]>:
> On Wed, Mar 30, 2011 at 11:20:27PM +0200, Markus Rathgeb wrote:
>> > can the system sqlite only be used with -plugin-sql-sqlite? Otherwise I
>> > would prefer a separate option depending on !QT4_SQLITE_NONE
>>
>> If "system-sqlite" is not defined, the bundled sqlite3.c source will be used.
>> See qt pri file for sql drivers:
>>
>> File:
>> qt-everywhere-opensource-src-4.6.3/src/sql/drivers/drivers.pri
>>
>> ...
>> contains(sql-drivers, sqlite) {
>>     !system-sqlite:!contains( LIBS, .*sqlite3.* ) {
>>         CONFIG(release, debug|release):DEFINES *= NDEBUG
>>         DEFINES += SQLITE_OMIT_LOAD_EXTENSION SQLITE_OMIT_COMPLETE
>>         INCLUDEPATH +=  ../3rdparty/sqlite
>>         SOURCES +=      ../3rdparty/sqlite/sqlite3.c
>>     } else {
>>         LIBS *= $$QT_LFLAGS_SQLITE
>>         QMAKE_CXXFLAGS *= $$QT_CFLAGS_SQLITE
>>     }
>> ...
>
> That's not what I meant. builtin/plugin and system/local are orthogonal.
> src/plugins/sqldrivers/sqlite/sqlite.pro contains the same stuff.
>
> config QT4_SQLITE_USE_SYSTEM
>        bool
>        prompt "use system sqlite"
>        depends on !QT4_SQLITE_NONE
>
>
> if PTXCONF_QT4_SQLITE_USE_SYSTEM
> QT4_AUTOCONF += -system-sqlite
> endif
>
>
> or something like that.
>
> Michael
>
>
> --
> Pengutronix e.K.                           |                             |
> Industrial Linux Solutions                 | http://www.pengutronix.de/  |
> Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
> Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |
>
> --
> ptxdist mailing list
> [email protected]
>

-- 
ptxdist mailing list
[email protected]

Reply via email to