diff --git a/test cases/d/12 root include directory/meson.build b/test cases/d/12 root include directory/meson.build new file mode 100644 index 000000000..95016156d --- /dev/null +++ b/test cases/d/12 root include directory/meson.build @@ -0,0 +1,7 @@ +project('some', 'd') + +project_dep = declare_dependency( + include_directories: ['.'], +) +subdir('some') + diff --git a/test cases/d/12 root include directory/some/dlang/code.d b/test cases/d/12 root include directory/some/dlang/code.d new file mode 100644 index 000000000..0dd82a497 --- /dev/null +++ b/test cases/d/12 root include directory/some/dlang/code.d @@ -0,0 +1,7 @@ +void foo() {} + +version (Windows) +{ + import core.sys.windows.dll; + mixin SimpleDllMain; +} diff --git a/test cases/d/12 root include directory/some/dlang/meson.build b/test cases/d/12 root include directory/some/dlang/meson.build new file mode 100644 index 000000000..3f958b103 --- /dev/null +++ b/test cases/d/12 root include directory/some/dlang/meson.build @@ -0,0 +1,8 @@ +code_lib = library('code', + ['code.d'], + dependencies: [project_dep]) + +code_dep = declare_dependency( + link_with: code_lib, + dependencies: project_dep +) \ No newline at end of file diff --git a/test cases/d/12 root include directory/some/meson.build b/test cases/d/12 root include directory/some/meson.build new file mode 100644 index 000000000..a549c09df --- /dev/null +++ b/test cases/d/12 root include directory/some/meson.build @@ -0,0 +1 @@ +subdir('dlang') \ No newline at end of file