mirror of https://github.com/microsoft/vcpkg.git
[sqlite3]: Shared library support for Linux (#6856)
* [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
This commit is contained in:
parent
d3498a8943
commit
dfd5bb46a1
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue