third_party_rust_cxx/demo/BUCK

34 lines
624 B
Python
Raw Normal View History

load("//tools/buck:rust_cxx_bridge.bzl", "rust_cxx_bridge")
2020-02-10 02:59:12 +00:00
rust_binary(
2020-09-01 22:51:38 +00:00
name = "demo",
srcs = glob(["src/**/*.rs"]),
2020-02-10 02:59:12 +00:00
deps = [
":blobstore-sys",
":bridge",
2020-02-10 02:59:12 +00:00
"//:cxx",
],
)
rust_cxx_bridge(
name = "bridge",
src = "src/main.rs",
deps = [":blobstore-include"],
2020-09-01 22:51:38 +00:00
)
cxx_library(
name = "blobstore-sys",
srcs = ["src/blobstore.cc"],
2020-09-01 22:51:38 +00:00
compiler_flags = ["-std=c++14"],
deps = [
":blobstore-include",
":bridge/include",
2020-09-01 22:51:38 +00:00
],
)
cxx_library(
name = "blobstore-include",
exported_headers = ["include/blobstore.h"],
2020-09-01 22:51:38 +00:00
deps = ["//:core"],
2020-02-10 02:59:12 +00:00
)