diff options
| author | ruki <[email protected]> | 2021-11-11 00:59:01 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-11-11 00:59:01 +0800 |
| commit | bd26b472129bc61043a69ffecbddabbd83eb0650 (patch) | |
| tree | 730e587c5c2bbb65289f593663b0adcc37afd5f5 /xmake/rules/rust/xmake.lua | |
| parent | 886c51e8ce29b07adb96d4db0f73e38ce9318990 (diff) | |
improve target.sourcekinds
Diffstat (limited to 'xmake/rules/rust/xmake.lua')
| -rw-r--r-- | xmake/rules/rust/xmake.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/xmake/rules/rust/xmake.lua b/xmake/rules/rust/xmake.lua index b823ef753..08fcf11f0 100644 --- a/xmake/rules/rust/xmake.lua +++ b/xmake/rules/rust/xmake.lua @@ -18,6 +18,14 @@ -- @file xmake.lua -- +-- generate bridge.rs.cc/h to call rust library in c++ code +-- @see https://cxx.rs/build/other.html +rule("rust.cxxbridge") + set_extensions(".rs") + before_build_file(function (target, sourcefile, opt) + print(sourcefile) + end) + -- define rule: rust.build rule("rust.build") set_sourcekinds("rc") |
