WORKSPACE 3.6 KB
Newer Older
李寅 已提交
1 2
workspace(name = "mace")

3 4 5
# proto_library rules implicitly depend on @com_google_protobuf//:protoc,
# which is the proto-compiler.
# This statement defines the @com_google_protobuf repo.
李寅 已提交
6
http_archive(
7
    name = "com_google_protobuf",
W
wuchenghui 已提交
8 9
    sha256 = "542703acadc3f690d998f4641e1b988f15ba57ebca05fdfb1cd9095bec007948",
    strip_prefix = "protobuf-3.4.0",
W
wuchenghui 已提交
10
    urls = [
W
wuchenghui 已提交
11 12
        "https://cnbj1.fds.api.xiaomi.com/mace/third-party/protobuf/protobuf-3.4.0.zip",
        "https://github.com/google/protobuf/archive/v3.4.0.zip"
W
wuchenghui 已提交
13
    ],
李寅 已提交
14 15
)

L
Liangliang He 已提交
16 17
new_http_archive(
    name = "gtest",
L
Liangliang He 已提交
18
    build_file = "mace/third_party/googletest/googletest.BUILD",
W
wuchenghui 已提交
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
    sha256 = "f3ed3b58511efd272eb074a3a6d6fb79d7c2e6a0e374323d1e6bcbcc1ef141bf",
    strip_prefix = "googletest-release-1.8.0",
    urls = [
        "https://cnbj1.fds.api.xiaomi.com/mace/third-party/googletest/googletest-release-1.8.0.zip",
        "https://github.com/google/googletest/archive/release-1.8.0.zip"
    ],
)

new_http_archive(
    name = "opencl_headers",
    build_file = "mace/third_party/opencl-headers/opencl-headers.BUILD",
    sha256 = "5dc7087680853b5c825360fc04ca26534f4b9f22ac114c4d3a306bfbec3cd0f2",
    strip_prefix = "OpenCL-Headers-master",
    urls = [
        "https://cnbj1.fds.api.xiaomi.com/mace/third-party/OpenCL-Headers/OpenCL-Headers-master.zip",
        "https://github.com/KhronosGroup/OpenCL-Headers/archive/master.zip"
    ],
)

new_http_archive(
    name = "opencl_clhpp",
    build_file = "mace/third_party/opencl-clhpp/opencl-clhpp.BUILD",
W
wuchenghui 已提交
41 42
    sha256 = "dab6f1834ec6e3843438cc0f97d63817902aadd04566418c1fcc7fb78987d4e7",
    strip_prefix = "OpenCL-CLHPP-4c6f7d56271727e37fb19a9b47649dd175df2b12",
W
wuchenghui 已提交
43
    urls = [
W
wuchenghui 已提交
44 45
        "https://cnbj1.fds.api.xiaomi.com/mace/third-party/OpenCL-CLHPP/OpenCL-CLHPP-4c6f7d56271727e37fb19a9b47649dd175df2b12.zip",
        "https://github.com/KhronosGroup/OpenCL-CLHPP/archive/4c6f7d56271727e37fb19a9b47649dd175df2b12.zip"
W
wuchenghui 已提交
46 47 48 49 50 51
    ],
)

new_http_archive(
    name = "half",
    build_file = "mace/third_party/half/half.BUILD",
W
wuchenghui 已提交
52 53
    sha256 = "0f514a1e877932b21dc5edc26a148ddc700b6af2facfed4c030ca72f74d0219e",
    strip_prefix = "half-code-356-trunk",
W
wuchenghui 已提交
54
    urls = [
W
wuchenghui 已提交
55 56
        "https://cnbj1.fds.api.xiaomi.com/mace/third-party/half/half-code-356-trunk.zip",
        "https://sourceforge.net/code-snapshots/svn/h/ha/half/code/half-code-356-trunk.zip"
W
wuchenghui 已提交
57
    ],
L
Liangliang He 已提交
58 59
)

60
new_http_archive(
61
    name = "six_archive",
L
Liangliang He 已提交
62
    build_file = "mace/third_party/six/six.BUILD",
63 64
    sha256 = "105f8d68616f8248e24bf0e9372ef04d3cc10104f1980f54d57b2ce73a5ad56a",
    strip_prefix = "six-1.10.0",
65
    urls = [
W
wuchenghui 已提交
66
        "https://cnbj1.fds.api.xiaomi.com/mace/third-party/six/six-1.10.0.tar.gz",
67 68 69 70
        "http://mirror.bazel.build/pypi.python.org/packages/source/s/six/six-1.10.0.tar.gz",
        "https://pypi.python.org/packages/source/s/six/six-1.10.0.tar.gz",
    ],
)
71

72
bind(
73 74
    name = "six",
    actual = "@six_archive//:six",
75 76
)

W
wuchenghui 已提交
77 78
http_archive(
    # v2.2.0 + fix of include path
79
    name = "com_github_gflags_gflags",
W
wuchenghui 已提交
80 81 82 83 84 85
    sha256 = "16903f6bb63c00689eee3bf7fb4b8f242934f6c839ce3afc5690f71b712187f9",
    strip_prefix = "gflags-30dbc81fb5ffdc98ea9b14b1918bfe4e8779b26e",
    urls = [
        "https://cnbj1.fds.api.xiaomi.com/mace/third-party/gflags/gflags-30dbc81fb5ffdc98ea9b14b1918bfe4e8779b26e.zip",
        "https://github.com/gflags/gflags/archive/30dbc81fb5ffdc98ea9b14b1918bfe4e8779b26e.zip"
    ],
Y
yejianwu 已提交
86 87 88
)

bind(
89
    name = "gflags",
Y
yejianwu 已提交
90 91 92 93
    actual = "@com_github_gflags_gflags//:gflags",
)

bind(
94
    name = "gflags_nothreads",
Y
yejianwu 已提交
95 96
    actual = "@com_github_gflags_gflags//:gflags_nothreads",
)
97 98 99 100 101 102 103

# Set up Android NDK
android_ndk_repository(
    name = "androidndk",
    # Android 5.0
    api_level = 21,
)