kevincai commented on issue #1992: URL: https://github.com/apache/brpc/issues/1992#issuecomment-1421948109
> Maybe this https://github.com/apache/brpc/blob/master/example/build_with_bazel/brpc_workspace.bzl is your want. refer to prometheus-cpp repository, the following example is a common way to allow other projects to reference to. https://github.com/jupp0r/prometheus-cpp ``` load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive", "http_file") http_archive( name = "com_github_jupp0r_prometheus_cpp", strip_prefix = "prometheus-cpp-master", urls = ["https://github.com/jupp0r/prometheus-cpp/archive/master.zip"], ) load("@com_github_jupp0r_prometheus_cpp//bazel:repositories.bzl", "prometheus_cpp_repositories") prometheus_cpp_repositories() ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
