2019-05-02 22:57:43 -07:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
|
2018-01-06 12:58:22 +03:00
|
|
|
vcpkg_from_github(OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO "SRombauts/SQLiteCpp"
|
2020-09-04 20:50:55 +02:00
|
|
|
REF 3.1.1
|
2018-01-06 12:58:22 +03:00
|
|
|
HEAD_REF master
|
2020-09-04 20:50:55 +02:00
|
|
|
SHA512 9030b5249c149db8a5b2fe350f71613e4ee91061765a771640ed3ffa7c24aada4000ba884ef91790fdc0f13dc4519038c1edeba64b85b85ac09c3e955a7988a1
|
2018-01-06 12:58:22 +03:00
|
|
|
PATCHES
|
2020-10-30 21:29:32 +01:00
|
|
|
0001-unofficial-sqlite3-and-sqlcipher.patch
|
2020-08-24 10:57:38 -07:00
|
|
|
fix_dependency.patch
|
2019-10-07 19:35:13 +02:00
|
|
|
)
|
2018-01-06 12:58:22 +03:00
|
|
|
|
2020-10-30 21:29:32 +01:00
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
|
|
FEATURES
|
|
|
|
sqlcipher SQLITE_HAS_CODEC
|
|
|
|
)
|
|
|
|
|
2018-01-06 12:58:22 +03:00
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
PREFER_NINJA
|
|
|
|
OPTIONS
|
2020-10-30 21:29:32 +01:00
|
|
|
${FEATURE_OPTIONS}
|
2018-01-06 12:58:22 +03:00
|
|
|
-DSQLITECPP_RUN_CPPLINT=OFF
|
|
|
|
-DSQLITECPP_RUN_CPPCHECK=OFF
|
|
|
|
-DSQLITECPP_INTERNAL_SQLITE=OFF
|
|
|
|
-DSQLITE_ENABLE_COLUMN_METADATA=OFF
|
2019-04-02 17:30:53 -07:00
|
|
|
-DSQLITECPP_INTERNAL_SQLITE=OFF
|
2018-01-06 12:58:22 +03:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/SQLiteCpp)
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
2020-04-24 12:17:26 +08:00
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|