forked from WebKit/WebKit-http
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Provides the ability to define SQLITE3SRCDIR
The sources of SQLITE3 will be compiled instead of to use the system libraries.
- Loading branch information
Cerri
authored and
Cerri
committed
Jul 18, 2016
1 parent
3091f0c
commit 38014df
Showing
2 changed files
with
23 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -147,6 +147,23 @@ list(APPEND WebCore_SOURCES | |
platform/text/qt/TextBreakIteratorInternalICUQt.cpp | ||
) | ||
|
||
if (SQLITE3SRCDIR) | ||
This comment has been minimized.
Sorry, something went wrong. |
||
list(APPEND WebCore_INCLUDE_DIRECTORIES | ||
"${SQLITE3SRCDIR}" | ||
This comment has been minimized.
Sorry, something went wrong. |
||
) | ||
list(APPEND WebCore_SOURCES | ||
"${SQLITE3SRCDIR}/sqlite3.c" | ||
) | ||
add_definitions(-DSQLITE_CORE -DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_OMIT_COMPLETE) | ||
This comment has been minimized.
Sorry, something went wrong.
annulen
Member
|
||
else() | ||
list(APPEND WebCore_SYSTEM_INCLUDE_DIRECTORIES | ||
${SQLITE_INCLUDE_DIR} | ||
) | ||
list(APPEND WebCore_LIBRARIES | ||
${SQLITE_LIBRARIES} | ||
) | ||
endif() | ||
|
||
if (ENABLE_DEVICE_ORIENTATION) | ||
list(APPEND WebCore_SOURCES | ||
platform/qt/DeviceMotionClientQt.cpp | ||
|
@@ -193,7 +210,6 @@ list(APPEND WebCore_SYSTEM_INCLUDE_DIRECTORIES | |
${Qt5Network_INCLUDE_DIRS} | ||
${Qt5Sensors_INCLUDE_DIRS} | ||
${Qt5Sql_INCLUDE_DIRS} | ||
${SQLITE_INCLUDE_DIR} | ||
This comment has been minimized.
Sorry, something went wrong.
annulen
Member
|
||
${ZLIB_INCLUDE_DIRS} | ||
) | ||
|
||
|
@@ -206,7 +222,6 @@ list(APPEND WebCore_LIBRARIES | |
${Qt5Network_LIBRARIES} | ||
${Qt5Sensors_LIBRARIES} | ||
${Qt5Sql_LIBRARIES} | ||
${SQLITE_LIBRARIES} | ||
${ZLIB_LIBRARIES} | ||
) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SQLITE3SRCDIR
was environment variable, I think we should keep it as such.$ENV{SQLITE3SRCDIR}
should work