Skip to content

Commit

Permalink
[sqlite3] Sqlite3 geopoly and json1 features (#11532)
Browse files Browse the repository at this point in the history
* sqlite3 port: add geopoly and json features.

* Changed the version of the sqlite3 CONTROL from from 3.31.1-1 to 3.31.1-2

* Update CONTROL

* Update CONTROL

Co-authored-by: Sanjay Chugh <[email protected]>
Co-authored-by: Lily <[email protected]>
Co-authored-by: LilyWangL <[email protected]>
  • Loading branch information
4 people authored Aug 14, 2020
1 parent 5562c69 commit 7c5ea94
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
9 changes: 9 additions & 0 deletions ports/sqlite3/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,15 @@ target_compile_definitions(
-DSQLITE_ENABLE_UNLOCK_NOTIFY
-DSQLITE_ENABLE_COLUMN_METADATA
)

if(WITH_GEOPOLY)
add_compile_definitions(SQLITE_ENABLE_GEOPOLY)
endif()

if(WITH_JSON1)
add_compile_definitions(SQLITE_ENABLE_JSON1)
endif()

target_include_directories(sqlite3 INTERFACE $<INSTALL_INTERFACE:include>)
if(NOT WIN32)
find_package(Threads REQUIRED)
Expand Down
6 changes: 6 additions & 0 deletions ports/sqlite3/CONTROL
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,9 @@ Description: SQLite is a software library that implements a self-contained, serv

Feature: tool
Description: sqlite3 executable

Feature: geopoly
Description: enable geopoly functionality for sqlite3

Feature: json1
Description: enable JSON functionality for sqlite3
3 changes: 3 additions & 0 deletions ports/sqlite3/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ vcpkg_extract_source_archive_ex(
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})

vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
FEATURES
geopoly WITH_GEOPOLY
json1 WITH_JSON1
INVERTED_FEATURES
tool SQLITE3_SKIP_TOOLS
)
Expand Down

0 comments on commit 7c5ea94

Please sign in to comment.