-
-
Notifications
You must be signed in to change notification settings - Fork 393
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update blake3 to 1.5.2 * fix x86 dll export * add check --------- Co-authored-by: star9029 <[email protected]>
- Loading branch information
1 parent
dd07939
commit 2989c39
Showing
2 changed files
with
38 additions
and
37 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
add_rules("mode.release", "mode.debug") | ||
|
||
target("blake3") | ||
set_kind("$(kind)") | ||
add_files("c/blake3.c", "c/blake3_dispatch.c", "c/blake3_portable.c") | ||
add_headerfiles("c/blake3.h") | ||
|
||
if is_arch("x86_64", "x64") then | ||
if is_subhost("msys", "cygwin") then | ||
add_files("c/*x86-64_windows_gnu.S") | ||
elseif is_plat("windows") then | ||
add_files("c/*x86-64_windows_msvc.asm") | ||
else | ||
add_files("c/*x86-64_unix.S") | ||
end | ||
elseif is_arch("x86", "i386") then | ||
add_files("c/blake3_portable.c") | ||
add_files("c/blake3_sse2.c") | ||
add_files("c/blake3_sse41.c") | ||
add_files("c/blake3_avx2.c") | ||
add_files("c/blake3_avx512.c") | ||
elseif is_arch("arm64", "arm64-v8a") then | ||
add_files("c/blake3_neon.c") | ||
add_defines("BLAKE3_USE_NEON=1") | ||
end | ||
|
||
if is_plat("windows") and is_kind("shared") then | ||
add_rules("utils.symbols.export_all") | ||
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