Attempt at BUCK and BUILD files.

This commit is contained in:
Adrian Taylor 2020-10-10 16:19:20 -07:00
parent 121cca4a06
commit 1931ccf65e
2 changed files with 15 additions and 0 deletions

View File

@ -9,6 +9,7 @@ rust_test(
rust_library(
name = "ffi",
srcs = [
"ffi/extra.rs",
"ffi/lib.rs",
"ffi/module.rs",
],
@ -25,6 +26,7 @@ cxx_library(
"ffi/tests.cc",
":bridge/source",
":module/source",
":extra/source",
],
headers = {
"ffi/lib.rs.h": ":bridge/header",
@ -42,3 +44,8 @@ rust_cxx_bridge(
name = "module",
src = "ffi/module.rs",
)
rust_cxx_bridge(
name = "extra",
src = "ffi/extra.rs",
)

View File

@ -12,6 +12,7 @@ rust_test(
rust_library(
name = "cxx_test_suite",
srcs = [
"ffi/extra.rs",
"ffi/lib.rs",
"ffi/module.rs",
],
@ -27,6 +28,7 @@ cc_library(
"ffi/tests.cc",
":bridge/source",
":module/source",
":extra/source",
],
hdrs = ["ffi/tests.h"],
deps = [
@ -46,3 +48,9 @@ rust_cxx_bridge(
src = "ffi/module.rs",
deps = [":impl"],
)
rust_cxx_bridge(
name = "extra",
src = "ffi/extra.rs",
deps = [":impl"],
)