mirror of
https://github.com/topjohnwu/cxx.git
synced 2024-11-27 22:00:33 +00:00
34 lines
624 B
Python
34 lines
624 B
Python
load("//tools/buck:rust_cxx_bridge.bzl", "rust_cxx_bridge")
|
|
|
|
rust_binary(
|
|
name = "demo",
|
|
srcs = glob(["src/**/*.rs"]),
|
|
deps = [
|
|
":blobstore-sys",
|
|
":bridge",
|
|
"//:cxx",
|
|
],
|
|
)
|
|
|
|
rust_cxx_bridge(
|
|
name = "bridge",
|
|
src = "src/main.rs",
|
|
deps = [":blobstore-include"],
|
|
)
|
|
|
|
cxx_library(
|
|
name = "blobstore-sys",
|
|
srcs = ["src/blobstore.cc"],
|
|
compiler_flags = ["-std=c++14"],
|
|
deps = [
|
|
":blobstore-include",
|
|
":bridge/include",
|
|
],
|
|
)
|
|
|
|
cxx_library(
|
|
name = "blobstore-include",
|
|
exported_headers = ["include/blobstore.h"],
|
|
deps = ["//:core"],
|
|
)
|