diff options
author | Tobias Pankrath <tobias@pankrath.net> | 2022-01-29 17:41:07 +0100 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2022-02-06 14:16:51 -0800 |
commit | a57d6fa51b63178f5762d2aabb446a19a393c8bc (patch) | |
tree | dcf389d4a88e8904ed2fbc53e1225589f8c2586d /test cases | |
parent | b497becc8744825a6943b13c5b8750403e29fc82 (diff) | |
download | meson-a57d6fa51b63178f5762d2aabb446a19a393c8bc.zip meson-a57d6fa51b63178f5762d2aabb446a19a393c8bc.tar.gz meson-a57d6fa51b63178f5762d2aabb446a19a393c8bc.tar.bz2 |
dlang: add test case for root include_directory #9250
Diffstat (limited to 'test cases')
4 files changed, 23 insertions, 0 deletions
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 0000000..9501615 --- /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 0000000..0dd82a4 --- /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 0000000..3f958b1 --- /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 0000000..a549c09 --- /dev/null +++ b/test cases/d/12 root include directory/some/meson.build @@ -0,0 +1 @@ +subdir('dlang')
\ No newline at end of file |