diff options
Diffstat (limited to 'meson/test cases/windows/10 vs module defs generated custom target/subdir')
3 files changed, 16 insertions, 0 deletions
diff --git a/meson/test cases/windows/10 vs module defs generated custom target/subdir/make_def.py b/meson/test cases/windows/10 vs module defs generated custom target/subdir/make_def.py new file mode 100755 index 000000000..50acfb5ef --- /dev/null +++ b/meson/test cases/windows/10 vs module defs generated custom target/subdir/make_def.py @@ -0,0 +1,6 @@ +#!/usr/bin/env python3 +import sys + +with open(sys.argv[1], 'w') as f: + print('EXPORTS', file=f) + print(' somedllfunc', file=f) diff --git a/meson/test cases/windows/10 vs module defs generated custom target/subdir/meson.build b/meson/test cases/windows/10 vs module defs generated custom target/subdir/meson.build new file mode 100644 index 000000000..c4ae33ae4 --- /dev/null +++ b/meson/test cases/windows/10 vs module defs generated custom target/subdir/meson.build @@ -0,0 +1,7 @@ +make_def = find_program('make_def.py') + +def_file = custom_target('gen_def', + command: [make_def, '@OUTPUT@'], + output: 'somedll.def') + +shlib = shared_library('somedll', 'somedll.c', vs_module_defs: def_file) diff --git a/meson/test cases/windows/10 vs module defs generated custom target/subdir/somedll.c b/meson/test cases/windows/10 vs module defs generated custom target/subdir/somedll.c new file mode 100644 index 000000000..f095b1839 --- /dev/null +++ b/meson/test cases/windows/10 vs module defs generated custom target/subdir/somedll.c @@ -0,0 +1,3 @@ +int somedllfunc(void) { + return 42; +} |