WORKSPACE.in 6.7 KB
Newer Older
D
Dong Li 已提交
1 2 3 4 5 6
workspace(name = "apollo")

# googletest (GTest and GMock)
new_http_archive(
    name = "gtest",
    build_file = "third_party/gtest.BUILD",
D
Dong Li 已提交
7
    sha256 = "58a6f4277ca2bc8565222b3bbd58a177609e9c488e8a72649359ba51450db7d8",
D
Dong Li 已提交
8
    strip_prefix = "googletest-release-1.8.0",
D
Dong Li 已提交
9
    url = "https://github.com/google/googletest/archive/release-1.8.0.tar.gz",
D
Dong Li 已提交
10 11 12 13 14 15 16
)

# gflags
http_archive(
    name = "com_github_gflags_gflags",
    sha256 = "466c36c6508a451734e4f4d76825cf9cd9b8716d2b70ef36479ae40f08271f88",
    strip_prefix = "gflags-2.2.0",
D
Dong Li 已提交
17
    url = "https://github.com/gflags/gflags/archive/v2.2.0.tar.gz",
D
Dong Li 已提交
18 19 20 21 22 23 24 25 26 27 28
)

bind(
    name = "gflags",
    actual = "@com_github_gflags_gflags//:gflags",
)

# glog
new_http_archive(
    name = "glog",
    build_file = "third_party/glog.BUILD",
D
Dong Li 已提交
29
    sha256 = "7580e408a2c0b5a89ca214739978ce6ff480b5e7d8d7698a2aa92fadc484d1e0",
D
Dong Li 已提交
30
    strip_prefix = "glog-0.3.5",
D
Dong Li 已提交
31
    url = "https://github.com/google/glog/archive/v0.3.5.tar.gz",
D
Dong Li 已提交
32 33 34 35 36 37
)

# Google Benchmark
new_http_archive(
    name = "benchmark",
    build_file = "third_party/benchmark.BUILD",
D
Dong Li 已提交
38 39 40
    sha256 = "e7334dd254434c6668e33a54c8f839194c7c61840d52f4b6258eee28e9f3b20e",
    strip_prefix = "benchmark-1.1.0",
    url = "https://github.com/google/benchmark/archive/v1.1.0.tar.gz",
D
Dong Li 已提交
41 42 43 44 45 46 47
)

# proto rules (Protobuf and GRPC)
http_archive(
    name = "org_pubref_rules_protobuf",
    sha256 = "646b39438d8eeba02d9af890dee444c7e4e9d08ae8611bc0e0621257010162db",
    strip_prefix = "rules_protobuf-0.7.1",
D
Dong Li 已提交
48
    url = "https://github.com/pubref/rules_protobuf/archive/v0.7.1.tar.gz",
D
Dong Li 已提交
49 50 51
)

load("@org_pubref_rules_protobuf//cpp:rules.bzl", "cpp_proto_repositories")
D
Dong Li 已提交
52

D
Dong Li 已提交
53 54 55 56 57 58 59 60 61 62 63
cpp_proto_repositories(
    lang_deps = {
        # Grpc repo is required by multiple languages but we put it here.
        "com_github_grpc_grpc": {
            "rule": "git_repository",
            "remote": "https://github.com/grpc/grpc.git",
            "init_submodules": True,
            "commit": "3808b6efe66b87269d43847bc113e94e2d3d28fb",
            #"tag": "v1.0.1",
        },

D
Dong Li 已提交
64 65
        # Hooray! The boringssl team provides a "chromium-stable-with-bazel" branch
        # with all BUILD files ready to go.
D
Dong Li 已提交
66 67
        "boringssl": {
            "rule": "http_archive",
D
Dong Li 已提交
68
            "url": "https://github.com/google/boringssl/archive/chromium-stable-with-bazel.zip",
D
Dong Li 已提交
69 70 71 72 73 74
        },

        # libssl is required for c++ grpc where it is expected in
        # //external:libssl.  This can be either boringssl or openssl.
        "libssl": {
            "rule": "bind",
S
siyangy 已提交
75
            "actual": "@boringssl//boringssl-chromium-stable-with-bazel:ssl",
D
Dong Li 已提交
76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130
        },

        # C-library for zlib
        "com_github_madler_zlib": {
            "rule": "new_git_repository",
            "remote": "https://github.com/madler/zlib",
            "tag": "v1.2.8",
            "build_file": "third_party/com_github_madler_zlib.BUILD",
        },

        # grpc++ expects //external:zlib
        "zlib": {
            "rule": "bind",
            "actual": "@com_github_madler_zlib//:zlib",
        },

        # grpc++ expects "//external:protobuf_clib"
        "protobuf_clib": {
            "rule": "bind",
            "actual": "@com_github_google_protobuf//:protobuf",
        },

        # grpc++ expects //external:nanopb
        "nanopb": {
            "rule": "bind",
            "actual": "@com_github_grpc_grpc//third_party/nanopb",
        },

        # Bind the executable cc_binary grpc plugin into
        # //external:protoc_gen_grpc_cpp.  Expects
        # //external:protobuf_compiler. TODO: is it really necessary to
        # bind it in external?
        "protoc_gen_grpc_cpp": {
            "rule": "bind",
            "actual": "@com_github_grpc_grpc//:grpc_cpp_plugin",
        },

        # Bind the protobuf proto_lib into //external.  Required for
        # compiling the protoc_gen_grpc plugin
        "protobuf_compiler": {
            "rule": "bind",
            "actual": "@com_github_google_protobuf//:protoc_lib",
        },

        # GTest is for our own internal cc tests.
        "gtest": {
            "rule": "new_git_repository",
            "remote": "https://github.com/google/googletest.git",
            "commit": "ed9d1e1ff92ce199de5ca2667a667cd0a368482a",
            "build_file": "third_party/protobuf_gtest.BUILD",
        },
    },
)

load("@org_pubref_rules_protobuf//python:rules.bzl", "py_proto_repositories")
D
Dong Li 已提交
131

D
Dong Li 已提交
132 133 134 135 136 137
py_proto_repositories()

# cpplint from google style guide
new_git_repository(
    name = "google_styleguide",
    build_file = "third_party/google_styleguide.BUILD",
D
Dong Li 已提交
138 139
    commit = "159b4c81bbca97a9ca00f1195a37174388398a67",
    remote = "https://github.com/google/styleguide.git",
D
Dong Li 已提交
140 141 142 143 144 145
)

# eigen
new_http_archive(
    name = "eigen",
    build_file = "third_party/eigen.BUILD",
D
Dong Li 已提交
146
    sha256 = "04f8a4fa4afedaae721c1a1c756afeea20d3cdef0ce3293982cf1c518f178502",
D
Dong Li 已提交
147
    strip_prefix = "eigen-eigen-b9cd8366d4e8",
D
Dong Li 已提交
148
    url = "https://bitbucket.org/eigen/eigen/get/3.2.10.tar.gz",
D
Dong Li 已提交
149 150 151 152 153 154
)

# websocket++/websocketpp
new_http_archive(
    name = "websocketpp",
    build_file = "third_party/websocketpp.BUILD",
155
    sha256 = "07b3364ad30cda022d91759d4b83ff902e1ebadb796969e58b59caa535a03923",
D
Dong Li 已提交
156
    strip_prefix = "websocketpp-0.7.0",
157
    url = "https://github.com/zaphoyd/websocketpp/archive/0.7.0.tar.gz",
D
Dong Li 已提交
158 159 160 161 162 163
)

# CivetWeb (web server)
new_http_archive(
    name = "civetweb",
    build_file = "third_party/civetweb.BUILD",
D
Dong Li 已提交
164
    sha256 = "880d741724fd8de0ebc77bc5d98fa673ba44423dc4918361c3cd5cf80955e36d",
D
Dong Li 已提交
165
    strip_prefix = "civetweb-1.9.1",
D
Dong Li 已提交
166
    url = "https://github.com/civetweb/civetweb/archive/v1.9.1.tar.gz",
D
Dong Li 已提交
167 168 169 170 171 172
)

# curlpp
new_http_archive(
    name = "curlpp",
    build_file = "third_party/curlpp.BUILD",
D
Dong Li 已提交
173
    sha256 = "97e3819bdcffc3e4047b6ac57ca14e04af85380bd93afe314bee9dd5c7f46a0a",
D
Dong Li 已提交
174
    strip_prefix = "curlpp-0.8.1",
D
Dong Li 已提交
175
    url = "https://github.com/jpbarrette/curlpp/archive/v0.8.1.tar.gz",
D
Dong Li 已提交
176
)
177 178 179 180 181 182

#ros
new_http_archive(
    name = "ros",
    build_file = "third_party/ros.BUILD",
    strip_prefix = "ros",
183 184 185
    # url = "https://github.com/ApolloAuto/apollo-platform/releases/download/1.0.0/ros-indigo-apollo-1.0.0.MACHINE_ARCH.tar.gz",
    # temporary ros archive for apollo-1.5
    url = "https://github.com/fengqikai1414/apollo-platform/files/1171045/ros-indigo-apollo-1.5-x86_64-dev.tar.gz",
186
)
187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211

# OpenCV 2.4.13.2
new_http_archive(
    name = "opencv2",
    url = "https://github.com/opencv/opencv/archive/2.4.13.2.zip",
    build_file = "third_party/opencv2.BUILD",
    strip_prefix = "opencv-2.4.13.2",
)

# PCL 1.7
# =======
# This requires libpcl-dev to be installed in your Ubuntu/Debian.
new_local_repository(
    name = "pcl",
    path = "/usr/include/pcl-1.7",
    build_file = "third_party/pcl.BUILD",
)

# YAML-CPP
new_http_archive(
    name = "yaml_cpp",
    url = "https://github.com/jbeder/yaml-cpp/archive/yaml-cpp-0.5.3.zip",
    build_file = "third_party/yaml_cpp.BUILD",
    strip_prefix = "yaml-cpp-yaml-cpp-0.5.3",
)