dlang: add test case for root include_directory #9250

pull/9958/head
Tobias Pankrath 3 years ago committed by Dylan Baker
parent b497becc87
commit a57d6fa51b
  1. 7
      test cases/d/12 root include directory/meson.build
  2. 7
      test cases/d/12 root include directory/some/dlang/code.d
  3. 8
      test cases/d/12 root include directory/some/dlang/meson.build
  4. 1
      test cases/d/12 root include directory/some/meson.build

@ -0,0 +1,7 @@
project('some', 'd')
project_dep = declare_dependency(
include_directories: ['.'],
)
subdir('some')

@ -0,0 +1,7 @@
void foo() {}
version (Windows)
{
import core.sys.windows.dll;
mixin SimpleDllMain;
}

@ -0,0 +1,8 @@
code_lib = library('code',
['code.d'],
dependencies: [project_dep])
code_dep = declare_dependency(
link_with: code_lib,
dependencies: project_dep
)
Loading…
Cancel
Save