Skip to content

Commit

Permalink
[crc32c] update to latest release (1.1.2) (microsoft#20534)
Browse files Browse the repository at this point in the history
* [crc32c] update to latest release (1.1.2)

* Use version rather than version-string.

Co-authored-by: Billy Robert O'Neal III <[email protected]>
  • Loading branch information
coryan and BillyONeal authored Oct 5, 2021
1 parent b9ed4c9 commit 29b85ae
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 11 deletions.
11 changes: 5 additions & 6 deletions ports/crc32c/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,22 @@ vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO google/crc32c
REF ba741856254e3c6f6c7bcf0704fe1344a668a227 # 1.1.1
SHA512 129e7cf36a92f6d953b4545e673860b0d956aa0ecf89ae98dfcfdff03031482d03f9036d11d0546446f1e73f65548cdd87065759dc6efd39f0fd9c58234ebb24
REF 1.1.2
SHA512 6325c52b5a6850b9f90086e0c0c86798c008af36e7cfd3a0216184a2d37b3bf7323481ddc6bfe4cbd5b31288b3ee6c69772d03085a13094cf95d00a9756a7196
HEAD_REF master
)

vcpkg_configure_cmake(
vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
OPTIONS
-DCRC32C_BUILD_TESTS=OFF
-DCRC32C_BUILD_BENCHMARKS=OFF
-DCRC32C_USE_GLOG=OFF
)

vcpkg_install_cmake()
vcpkg_cmake_install()
vcpkg_copy_pdbs()
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/Crc32c)
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/Crc32c)

file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
Expand Down
15 changes: 12 additions & 3 deletions ports/crc32c/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
{
"name": "crc32c",
"version-string": "1.1.1",
"port-version": 1,
"version": "1.1.2",
"description": "CRC32C implementation with support for CPU-specific acceleration instructions.",
"homepage": "https://github.com/google/crc32c"
"homepage": "https://github.com/google/crc32c",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}
4 changes: 2 additions & 2 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -1605,8 +1605,8 @@
"port-version": 1
},
"crc32c": {
"baseline": "1.1.1",
"port-version": 1
"baseline": "1.1.2",
"port-version": 0
},
"crfsuite": {
"baseline": "2019-07-21",
Expand Down
5 changes: 5 additions & 0 deletions versions/c-/crc32c.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "dcfaa85ef9b67b94cf51378922832fff7cf43333",
"version": "1.1.2",
"port-version": 0
},
{
"git-tree": "c170749f5731ca44674e241167fa0955a461256a",
"version-string": "1.1.1",
Expand Down

0 comments on commit 29b85ae

Please sign in to comment.