diff options
| author | Robert Schumacher <roschuma@microsoft.com> | 2021-05-28 10:56:31 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-05-28 10:56:31 -0700 |
| commit | bf2aaf9002ad98c90fd41be17275a665e113a9eb (patch) | |
| tree | 859d9ca29db91a7a414e82815becc5fac9ae9f59 | |
| parent | 1c4fb017f06ef8c6d4a622a2af961b1580226649 (diff) | |
| download | vcpkg-bf2aaf9002ad98c90fd41be17275a665e113a9eb.tar.gz vcpkg-bf2aaf9002ad98c90fd41be17275a665e113a9eb.zip | |
[sqlite3] Embed dllimport in header (#16646)
* [sqlite3] Embed dllimport in header
* Add sqlite3 version info
Co-authored-by: Robert Schumacher <ras0219@outlook.com>
| -rw-r--r-- | ports/sqlite3/portfile.cmake | 4 | ||||
| -rw-r--r-- | ports/sqlite3/vcpkg.json | 1 | ||||
| -rw-r--r-- | versions/baseline.json | 2 | ||||
| -rw-r--r-- | versions/s-/sqlite3.json | 5 |
4 files changed, 11 insertions, 1 deletions
diff --git a/ports/sqlite3/portfile.cmake b/ports/sqlite3/portfile.cmake index d149283c1..a813672f9 100644 --- a/ports/sqlite3/portfile.cmake +++ b/ports/sqlite3/portfile.cmake @@ -47,5 +47,9 @@ configure_file( @ONLY
)
+if(VCPKG_TARGET_IS_WINDOWS AND VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
+ vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/sqlite3.h" "# define SQLITE_API\n" "# define SQLITE_API __declspec(dllimport)\n")
+endif()
+
file(WRITE ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright "SQLite is in the Public Domain.\nhttp://www.sqlite.org/copyright.html\n")
vcpkg_copy_pdbs()
diff --git a/ports/sqlite3/vcpkg.json b/ports/sqlite3/vcpkg.json index da76ea50e..3799fa31e 100644 --- a/ports/sqlite3/vcpkg.json +++ b/ports/sqlite3/vcpkg.json @@ -1,6 +1,7 @@ { "name": "sqlite3", "version": "3.35.4", + "port-version": 1, "description": "SQLite is a software library that implements a self-contained, serverless, zero-configuration, transactional SQL database engine.", "homepage": "https://sqlite.org/", "features": { diff --git a/versions/baseline.json b/versions/baseline.json index 6f6c4e87f..03f63b4bd 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -5838,7 +5838,7 @@ }, "sqlite3": { "baseline": "3.35.4", - "port-version": 0 + "port-version": 1 }, "sqlitecpp": { "baseline": "3.1.1", diff --git a/versions/s-/sqlite3.json b/versions/s-/sqlite3.json index bcde5079f..7a5a92005 100644 --- a/versions/s-/sqlite3.json +++ b/versions/s-/sqlite3.json @@ -1,6 +1,11 @@ { "versions": [ { + "git-tree": "b2c75af9dcf9f76ea714cb93a8fe113f9bb69f48", + "version": "3.35.4", + "port-version": 1 + }, + { "git-tree": "dbe1b93bfd28e58498a79992312b06422b049afb", "version": "3.35.4", "port-version": 0 |
