WORKSPACE 3.3 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 8
    name = "com_google_protobuf",
    sha256 = "0a54cae83b77f4b54b7db4eaebadd81fbe91655e84a1ef3f6d29116d75f3a45f",
9 10
    strip_prefix = "protobuf-c7457ef65a7a8584b1e3bd396c401ccf8e275ffa-c7457ef65a7a8584b1e3bd396c401ccf8e275ffa",
    urls = ["http://v9.git.n.xiaomi.com/deep-computing/protobuf/repository/archive.zip?ref=c7457ef65a7a8584b1e3bd396c401ccf8e275ffa"],
李寅 已提交
11 12
)

13 14
# cc_proto_library rules implicitly depend on @com_google_protobuf_cc//:cc_toolchain,
# which is the C++ proto runtime (base classes and common utilities).
李寅 已提交
15
http_archive(
16 17
    name = "com_google_protobuf_cc",
    sha256 = "0a54cae83b77f4b54b7db4eaebadd81fbe91655e84a1ef3f6d29116d75f3a45f",
18 19
    strip_prefix = "protobuf-c7457ef65a7a8584b1e3bd396c401ccf8e275ffa-c7457ef65a7a8584b1e3bd396c401ccf8e275ffa",
    urls = ["http://v9.git.n.xiaomi.com/deep-computing/protobuf/repository/archive.zip?ref=c7457ef65a7a8584b1e3bd396c401ccf8e275ffa"],
李寅 已提交
20 21
)

L
Liangliang He 已提交
22 23
new_http_archive(
    name = "gtest",
L
Liangliang He 已提交
24
    build_file = "mace/third_party/googletest/googletest.BUILD",
25 26 27
    sha256 = "a0b43a0a43cda0cc401a46d75519d961ef27f6674d4126366e47d9c946c4bbcd",
    strip_prefix = "googletest-release-1.8.0-ec44c6c1675c25b9827aacd08c02433cccde7780",
    url = "http://v9.git.n.xiaomi.com/deep-computing/googletest/repository/archive.zip?ref=release-1.8.0",
L
Liangliang He 已提交
28 29
)

30
new_http_archive(
31
    name = "six_archive",
L
Liangliang He 已提交
32
    build_file = "mace/third_party/six/six.BUILD",
33 34
    sha256 = "105f8d68616f8248e24bf0e9372ef04d3cc10104f1980f54d57b2ce73a5ad56a",
    strip_prefix = "six-1.10.0",
35 36 37 38 39
    urls = [
        "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",
    ],
)
40

41
bind(
42 43
    name = "six",
    actual = "@six_archive//:six",
44 45
)

L
Liangliang He 已提交
46 47
new_http_archive(
    name = "opencl_headers",
L
Liangliang He 已提交
48
    build_file = "mace/third_party/opencl-headers/opencl-headers.BUILD",
49 50 51
    sha256 = "439dbdb4e7a02a218dd90d82170c9f7671487cd0e626a20e136690a91f173ad2",
    strip_prefix = "OpenCL-Headers-master-f039db6764d52388658ef15c30b2237bbda49803",
    urls = ["http://v9.git.n.xiaomi.com/deep-computing/OpenCL-Headers/repository/archive.zip?ref=master"],
L
Liangliang He 已提交
52 53
)

54 55
new_git_repository(
    name = "opencl_clhpp",
L
Liangliang He 已提交
56
    build_file = "mace/third_party/opencl-clhpp/opencl-clhpp.BUILD",
57
    commit = "4c6f7d56271727e37fb19a9b47649dd175df2b12",
L
Liangliang He 已提交
58
    remote = "http://v9.git.n.xiaomi.com/deep-computing/OpenCL-CLHPP-Mirror.git",
L
Liangliang He 已提交
59
)
Y
yejianwu 已提交
60

L
Liangliang He 已提交
61 62
new_git_repository(
    name = "half",
L
Liangliang He 已提交
63
    build_file = "mace/third_party/half/half.BUILD",
L
Liangliang He 已提交
64 65 66 67
    commit = "87d7f25f7ba2c7d3b051f6c857031de0ecac5afd",
    remote = "http://v9.git.n.xiaomi.com/deep-computing/half.git",
)

Y
yejianwu 已提交
68
git_repository(
69
    name = "com_github_gflags_gflags",
Y
yejianwu 已提交
70
    #tag    = "v2.2.0",
71 72
    commit = "30dbc81fb5ffdc98ea9b14b1918bfe4e8779b26e",  # v2.2.0 + fix of include path
    remote = "https://github.com/gflags/gflags.git",
Y
yejianwu 已提交
73 74 75
)

bind(
76
    name = "gflags",
Y
yejianwu 已提交
77 78 79 80
    actual = "@com_github_gflags_gflags//:gflags",
)

bind(
81
    name = "gflags_nothreads",
Y
yejianwu 已提交
82 83
    actual = "@com_github_gflags_gflags//:gflags_nothreads",
)
84 85 86 87 88 89 90

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