• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (C) 2025 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *      http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17package {
18    // See: http://go/android-license-faq
19    default_applicable_licenses: ["external_mesa3d_license"],
20}
21
22cc_library_static {
23    name: "mesa_blake3",
24    host_supported: true,
25    srcs: [
26        "blake3_portable.c",
27        "blake3_dispatch.c",
28        "blake3.c",
29    ],
30    arch: {
31        x86: {
32            cflags: [
33                "-DBLAKE3_NO_SSE2",
34                "-DBLAKE3_NO_SSE41",
35                "-DBLAKE3_NO_AVX2",
36                "-DBLAKE3_NO_AVX512",
37            ],
38        },
39        x86_64: {
40            srcs: [
41                "blake3_avx2_x86-64_unix.S",
42                "blake3_avx512_x86-64_unix.S",
43                "blake3_sse2_x86-64_unix.S",
44                "blake3_sse41_x86-64_unix.S",
45            ],
46        },
47        arm64: {
48            srcs: [
49                "blake3_neon.c",
50            ],
51        },
52    },
53}
54