forked from ruslo/hunter
-
Notifications
You must be signed in to change notification settings - Fork 181
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Rename from xxhash
- Loading branch information
Showing
7 changed files
with
71 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# Copyright (c) 2016-2018, Ruslan Baratov | ||
# All rights reserved. | ||
|
||
# !!! DO NOT PLACE HEADER GUARDS HERE !!! | ||
|
||
include(hunter_add_version) | ||
include(hunter_cacheable) | ||
include(hunter_cmake_args) | ||
include(hunter_download) | ||
include(hunter_pick_scheme) | ||
include(hunter_source_subdir) | ||
|
||
hunter_add_version( | ||
PACKAGE_NAME | ||
xxHash | ||
VERSION | ||
0.6.5-p0 | ||
URL | ||
"https://github.com/hunter-packages/xxHash/archive/0.6.5-p0.tar.gz" | ||
SHA1 | ||
7d84575a45360d5c5c075ceb3fc1eb6b334aa5a4 | ||
) | ||
|
||
hunter_add_version( | ||
PACKAGE_NAME | ||
xxHash | ||
VERSION | ||
0.8.2 | ||
URL | ||
"https://github.com/Cyan4973/xxHash/archive/v0.8.2.tar.gz" | ||
SHA1 | ||
8df702581ebc48a5e05be0f1ede6e1e9139e4da1 | ||
) | ||
|
||
if(HUNTER_xxHash_VERSION VERSION_GREATER_EQUAL 0.8.2) | ||
hunter_source_subdir( | ||
xxHash | ||
SOURCE_SUBDIR "cmake_unofficial" | ||
) | ||
|
||
hunter_cmake_args( | ||
xxHash | ||
CMAKE_ARGS | ||
XXHASH_BUILD_XXHSUM=OFF | ||
) | ||
endif() | ||
|
||
hunter_pick_scheme(DEFAULT url_sha1_cmake) | ||
hunter_cacheable(xxHash) | ||
hunter_download(PACKAGE_NAME xxHash) |
This file was deleted.
Oops, something went wrong.
10 changes: 5 additions & 5 deletions
10
docs/packages/pkg/xxhash.rst → docs/packages/pkg/xxHash.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
.. spelling:: | ||
|
||
xxhash | ||
xxHash | ||
|
||
.. index:: | ||
single: crypto ; xxhash | ||
single: crypto ; xxHash | ||
|
||
.. _pkg.xxhash: | ||
.. _pkg.xxHash: | ||
|
||
xxhash | ||
xxHash | ||
====== | ||
|
||
- `Official <https://github.com/Cyan4973/xxHash>`__ | ||
- `Hunterized <https://github.com/hunter-packages/xxHash>`__ | ||
- `Example <https://github.com/cpp-pm/hunter/blob/master/examples/xxhash/CMakeLists.txt>`__ | ||
- Added by `Warchant <https://github.com/Warchant>`__ (`pr-1738 <https://github.com/ruslo/hunter/pull/1738>`__) | ||
|
||
.. literalinclude:: /../examples/xxhash/CMakeLists.txt | ||
.. literalinclude:: /../examples/xxHash/CMakeLists.txt | ||
:language: cmake | ||
:start-after: # DOCUMENTATION_START { | ||
:end-before: # DOCUMENTATION_END } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#include <xxhash.h> | ||
#include <iostream> | ||
|
||
int main() { | ||
XXH64_state_t* const state = XXH64_createState(); | ||
XXH64_update(state, "hello", 5); | ||
XXH64_hash_t const hash = XXH64_digest(state); | ||
std::cout << std::hex << hash << std::endl; | ||
XXH64_freeState(state); | ||
return 0; | ||
} |
This file was deleted.
Oops, something went wrong.