1# Description:
2#   AWS C++ SDK
3
4package(default_visibility = ["//visibility:public"])
5
6licenses(["notice"])  # Apache 2.0
7
8exports_files(["LICENSE"])
9
10load("@bazel_skylib//lib:selects.bzl", "selects")
11
12selects.config_setting_group(
13    name = "is_linux_debug",
14    match_all = ["@org_tensorflow//tensorflow:linux_x86_64", "@org_tensorflow//tensorflow:debug"],
15)
16
17cc_library(
18    name = "aws-checksums",
19    srcs = select({
20        "@org_tensorflow//tensorflow:windows": glob([
21            "source/visualc/*.c",
22        ]),
23        "//conditions:default": [],
24    }) + glob([
25        "source/intel/*.c",
26        "source/arm/*.c",
27        "source/*.c",
28    ]),
29    hdrs = glob([
30        "include/**/*.h"
31    ]),
32    includes = [
33        "include/",
34    ],
35    deps = [
36        "@aws-c-common",
37    ],
38    defines = select({
39        ":is_linux_debug": [
40            "DEBUG_BUILD"
41        ],
42        "//conditions:default": [],
43    }),
44)
45