workspace(name = "TIM_VX")

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

##############################################################################
# Toolchains
##############################################################################
http_archive(
    name = "aarch64_A311D",
    build_file = "@//prebuilt-sdk/x86_64_linux:BUILD",
    sha256 = "a93eb14a410123f30124ba661f40bb7556fca8d8c6508025301b78044a2e14ab",
    strip_prefix = "aarch64_A311D_6.4.8",
    urls = [
        "https://github.com/VeriSilicon/TIM-VX/releases/download/v1.1.34/aarch64_A311D_6.4.8.tgz",
    ],
)

http_archive(
    name = "aarch64_S905D3",
    build_file = "@//prebuilt-sdk/x86_64_linux:BUILD",
    sha256 = "b26e95e39a96f331b46b08339770ed719f1507a35c9a5e339e90a0f1212319b6",
    strip_prefix = "aarch64_S905D3_6.4.8",
    urls = [
        "https://github.com/VeriSilicon/TIM-VX/releases/download/v1.1.34/aarch64_S905D3_6.4.8.tgz",
    ],
)

http_archive(
    name = "VIPLite_aarch64_A311D",
    build_file = "@//prebuilt-sdk/VIPLite:BUILD",
    sha256 = "63fafc2b6d4a92389298af42a60d82bc2767abed330a8c09f7428fc3828ca31f",
    strip_prefix = "viplite",
    urls = [
        "https://github.com/VeriSilicon/TIM-VX/releases/download/v1.1.28/VIPLite_aarch64_A311D_1.3.5.tgz",
    ],
)

local_repository(
    name = 'TOOLCHAINS',
    path = 'toolchains',
)

load("@TOOLCHAINS//:toolchains.bzl", "init_toolchains")
init_toolchains()

##############################################################################
#Third party repositories
##############################################################################
http_archive(
    name = "gtest",
    sha256 = "ff7a82736e158c077e76188232eac77913a15dac0b22508c390ab3f88e6d6d86",
    strip_prefix = "googletest-b6cd405286ed8635ece71c72f118e659f4ade3fb",
    urls = [
        "https://storage.googleapis.com/mirror.tensorflow.org/github.com/google/googletest/archive/b6cd405286ed8635ece71c72f118e659f4ade3fb.zip",
        "https://github.com/google/googletest/archive/b6cd405286ed8635ece71c72f118e659f4ade3fb.zip",
    ],
)

