aboutsummaryrefslogtreecommitdiff
path: root/test cases
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2023-08-09 16:20:34 -0700
committerXavier Claessens <xclaesse@gmail.com>2023-09-19 13:54:49 -0400
commit8ccdb881374084ddb90ef259539cfd3bb748c904 (patch)
tree249596da64205c1b0b9cc778788d4bac4f6e7aa6 /test cases
parentdd22546bdd5b7de34025437ae1360f6dd20491eb (diff)
downloadmeson-8ccdb881374084ddb90ef259539cfd3bb748c904.zip
meson-8ccdb881374084ddb90ef259539cfd3bb748c904.tar.gz
meson-8ccdb881374084ddb90ef259539cfd3bb748c904.tar.bz2
Rust: Add a rust.proc_macro() method
Diffstat (limited to 'test cases')
-rw-r--r--test cases/rust/18 proc-macro/meson.build13
1 files changed, 13 insertions, 0 deletions
diff --git a/test cases/rust/18 proc-macro/meson.build b/test cases/rust/18 proc-macro/meson.build
index 2958df1..c5f0dfc 100644
--- a/test cases/rust/18 proc-macro/meson.build
+++ b/test cases/rust/18 proc-macro/meson.build
@@ -18,3 +18,16 @@ main = executable(
)
test('main_test', main)
+
+rust = import('rust')
+
+pm = rust.proc_macro('proc_macro_examples2', 'proc.rs')
+
+main = executable(
+ 'main2',
+ 'use.rs',
+ link_with : pm,
+ rust_dependency_map : {'proc_macro_examples2' : 'proc_macro_examples'}
+)
+
+test('main_test2', main)