Jesse Natalie 4 years ago committed by Andres Freund
parent a8370e6d3f
commit 01ddf3ac13
  1. 7
      test cases/windows/19 vs install static lib with generated obj deps/both_lib_source.c
  2. 4
      test cases/windows/19 vs install static lib with generated obj deps/copyfile.py
  3. 4
      test cases/windows/19 vs install static lib with generated obj deps/generated_source.c
  4. 20
      test cases/windows/19 vs install static lib with generated obj deps/meson.build
  5. 6
      test cases/windows/19 vs install static lib with generated obj deps/static_lib_source.c
  6. 13
      test cases/windows/19 vs install static lib with generated obj deps/test.json

@ -0,0 +1,7 @@
extern int static_lib_function(void);
extern __declspec(dllexport) int both_lib_function(void);
int both_lib_function(void)
{
return static_lib_function();
}

@ -0,0 +1,4 @@
from shutil import copyfile
import sys
copyfile(sys.argv[1], sys.argv[2])

@ -0,0 +1,4 @@
int generated_function(void)
{
return 42;
}

@ -0,0 +1,20 @@
project('test', 'c')
generated_c = custom_target(
'generated.c',
input : files('generated_source.c', 'copyfile.py'),
output : 'generated.c',
command : ['python', '@INPUT1@', '@INPUT0@', '@OUTPUT@'],
)
static_lib = static_library(
'static_lib',
[files('static_lib_source.c'), generated_c],
)
both_lib = both_libraries(
'both_lib',
[files('both_lib_source.c')],
link_with : [static_lib],
install : true,
)

@ -0,0 +1,6 @@
extern int generated_function(void);
int static_lib_function(void)
{
return generated_function();
}

@ -0,0 +1,13 @@
{
"installed": [
{"type": "file", "file": "usr/lib/libboth_lib.a"},
{"type": "shared_lib", "platform": "msvc", "file": "usr/bin/both_lib"},
{"type": "implib", "platform": "msvc", "file": "usr/lib/both_lib"},
{"type": "pdb", "platform": "msvc", "file": "usr/bin/both_lib"},
{"type": "expr", "platform": "gcc", "file": "usr/lib/?libboth_lib.dll"},
{"type": "implib", "platform": "gcc", "file": "usr/lib/libboth_lib"},
{"type": "pdb", "platform": "gcc", "file": "usr/bin/libboth_lib"}
]
}
Loading…
Cancel
Save