summaryrefslogtreecommitdiffstats
path: root/test cases/d/12 root include directory
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-29 04:41:38 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-29 04:41:38 +0000
commit7b6e527f440cd7e6f8be2b07cee320ee6ca18786 (patch)
tree4a2738d69fa2814659fdadddf5826282e73d81f4 /test cases/d/12 root include directory
parentInitial commit. (diff)
downloadmeson-7b6e527f440cd7e6f8be2b07cee320ee6ca18786.tar.xz
meson-7b6e527f440cd7e6f8be2b07cee320ee6ca18786.zip
Adding upstream version 1.0.1.upstream/1.0.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'test cases/d/12 root include directory')
-rw-r--r--test cases/d/12 root include directory/meson.build7
-rw-r--r--test cases/d/12 root include directory/some/dlang/code.d7
-rw-r--r--test cases/d/12 root include directory/some/dlang/meson.build8
-rw-r--r--test cases/d/12 root include directory/some/meson.build1
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