mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-18 18:37:49 +08:00
e2fb66462a
* Update the sqlpp11 port to version 0.61 + SQLite3 * Update the sqlpp11 version to 0.61 * Update dependencies in sqlpp11 ports * Update sqlpp11 and its connectors versions * Update files according to the maintainer guide * Update the sqlpp11 version * Update SHA512 * Version instead of version-string * Update the sqlpp11 version * Version-string instead of version * Version update * Vesrion update after script * Update according to checks * Replace connector ports by empty one * Update the sqlite3 connector port to dummy one * Remove non exsistent sqlpp11 sqlite3 version * Make the mysql connector port as obsolete * Format vcpkg.json in sqlpp11's ports * Update sqlpp11's ports versions * Backward compatibility in the mysql connector * Update version in sqlpp11's mysql connector * Remove non exsistent sqlpp11 mysql version
43 lines
1.4 KiB
CMake
43 lines
1.4 KiB
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO rbock/sqlpp11
|
|
REF 2bc89b34ad3cc37b6bca9a44a3529ff2d8fe211f # 0.61
|
|
SHA512 6e2496959749422987aca21f333abb01648702b85e02acc711bbac398ca6a67d8be93a3d89fc1f8bad5446865725ff9bcc053e6229cb34627120b59469426266
|
|
HEAD_REF master
|
|
PATCHES
|
|
ddl2cpp_path.patch
|
|
)
|
|
|
|
vcpkg_check_features(
|
|
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
FEATURES
|
|
sqlite3 BUILD_SQLITE3_CONNECTOR
|
|
mariadb BUILD_MARIADB_CONNECTOR
|
|
mysql BUILD_MYSQL_CONNECTOR
|
|
)
|
|
|
|
# Use sqlpp11's own build process
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
OPTIONS
|
|
-DBUILD_TESTING:BOOL=OFF
|
|
# Use vcpkg as source for the date library
|
|
-DUSE_SYSTEM_DATE:BOOL=ON
|
|
${FEATURE_OPTIONS}
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
|
|
# Move CMake config files to the right place
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/Sqlpp11)
|
|
|
|
# Delete redundant and unnecessary directories
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug ${CURRENT_PACKAGES_DIR}/lib ${CURRENT_PACKAGES_DIR}/cmake ${CURRENT_PACKAGES_DIR}/include/date)
|
|
|
|
# Move python script from bin directory
|
|
file(COPY ${CURRENT_PACKAGES_DIR}/bin/sqlpp11-ddl2cpp DESTINATION ${CURRENT_PACKAGES_DIR}/scripts)
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin/)
|
|
|
|
# Handle copyright
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|