diff options
author | 2023-10-10 14:33:42 +0000 | |
---|---|---|
committer | 2023-10-10 14:33:42 +0000 | |
commit | af1a266670d040d2f4083ff309d732d648afba2a (patch) | |
tree | 2fc46203448ddcc6f81546d379abfaeb323575e9 /meson/test cases/d/3 shared library/sub | |
parent | e02cda008591317b1625707ff8e115a4841aa889 (diff) |
Change-Id: Iaf8d18082d3991dec7c0ebbea540f092188eb4ec
Diffstat (limited to 'meson/test cases/d/3 shared library/sub')
-rw-r--r-- | meson/test cases/d/3 shared library/sub/libstuff.d | 14 | ||||
-rw-r--r-- | meson/test cases/d/3 shared library/sub/meson.build | 2 |
2 files changed, 16 insertions, 0 deletions
diff --git a/meson/test cases/d/3 shared library/sub/libstuff.d b/meson/test cases/d/3 shared library/sub/libstuff.d new file mode 100644 index 000000000..8205490f7 --- /dev/null +++ b/meson/test cases/d/3 shared library/sub/libstuff.d @@ -0,0 +1,14 @@ +import std.stdio; +import std.string : format; + +export int printLibraryString (string str) +{ + writeln ("Library says: %s".format (str)); + return 4; +} + +version (Windows) +{ + import core.sys.windows.dll; + mixin SimpleDllMain; +} diff --git a/meson/test cases/d/3 shared library/sub/meson.build b/meson/test cases/d/3 shared library/sub/meson.build new file mode 100644 index 000000000..fb4b99661 --- /dev/null +++ b/meson/test cases/d/3 shared library/sub/meson.build @@ -0,0 +1,2 @@ +ldyn = shared_library('stuff', 'libstuff.d', install : true) + |