mirror of
https://github.com/topjohnwu/cxx.git
synced 2025-02-24 10:03:39 +00:00
Attempt at BUCK and BUILD files.
This commit is contained in:
parent
121cca4a06
commit
1931ccf65e
@ -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",
|
||||
)
|
||||
|
@ -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"],
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user