Skip to content

Commit 69a4159

Browse files
committed
Add internal dependency test
1 parent 500288a commit 69a4159

File tree

5 files changed

+24
-0
lines changed

5 files changed

+24
-0
lines changed

tests/cpp/sw-test-base/meson.build

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,8 @@ swtest_base__module_sources += files(
88
'src/swtest_base/cpp/main.cpp',
99
)
1010

11+
swtest_base__module2_sources += files(
12+
'src/swtest_base/cpp/main2.cpp',
13+
)
14+
1115
subdir('wrapcfg/modules')

tests/cpp/sw-test-base/pyproject.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@ fn = "cpp/fn.h"
2828
base_class = "cpp/baseclass.h"
2929

3030

31+
[tool.semiwrap.extension_modules."swtest_base._module2"]
32+
depends = ["swtest_base__module"]
33+
34+
[tool.semiwrap.extension_modules."swtest_base._module2".headers]
35+
fn2 = "cpp/fn2.h"
36+
3137
[tool.semiwrap.export_type_casters.sw-test-base-casters]
3238
pypackage = "swtest_base"
3339
includedir = ["src/swtest_base/cpp/type_casters"]
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#pragma once
2+
3+
int something() {
4+
return 1;
5+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#include <semiwrap_init.swtest_base._module2.hpp>
2+
3+
SEMIWRAP_PYBIND11_MODULE(m) {
4+
initWrapper(m);
5+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
3+
functions:
4+
something:

0 commit comments

Comments
 (0)