Skip to content

Commit

Permalink
[sqlite3]: Shared library support for Linux (#6856)
Browse files Browse the repository at this point in the history
* [sqlite]: Shared library support for Linux

* [sqlite3]: Switch back to CMAKE_SYSTEM_NAME checks per original PR (#6122)

* [sqlite3]: Remove redundant "WindowsStore" system name check as "Windows" should already catch it.

* [sqlite3]: Re-bump portfile

* [sqlite3] added error message
  • Loading branch information
jumpinjackie authored and dan-shaw committed Jun 20, 2019
1 parent d3498a8 commit dfd5bb4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion ports/sqlite3/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,13 @@ project(sqlite3 C)

include_directories(.)
if(BUILD_SHARED_LIBS)
set(API "-DSQLITE_API=__declspec(dllexport)")
if(CMAKE_SYSTEM_NAME MATCHES "Linux" OR CMAKE_SYSTEM_NAME MATCHES "Darwin")
set(API "-DSQLITE_API=__attribute__((visibility(\"default\")))")
elseif(CMAKE_SYSTEM_NAME MATCHES "Windows")
set(API "-DSQLITE_API=__declspec(dllexport)")
else()
message(FATAL_ERROR "Unsupported platform: ${CMAKE_SYSTEM_NAME}")
endif()
else()
set(API "-DSQLITE_API=extern")
endif()
Expand Down
2 changes: 1 addition & 1 deletion ports/sqlite3/CONTROL
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Source: sqlite3
Version: 3.28.0
Version: 3.28.0-1
Homepage: https://sqlite.org/
Description: SQLite is a software library that implements a self-contained, serverless, zero-configuration, transactional SQL database engine.

Expand Down

0 comments on commit dfd5bb4

Please sign in to comment.