Extend platform_fix_name() to handle this case We avoid using library(version:), so we don't have to teach platform_fix_name() all the platform details of versioned shared library naming. Hopefully that's exercised by platform-specific tests...pull/4480/head
parent
7a959ffbba
commit
b17f6dae54
4 changed files with 65 additions and 1 deletions
@ -0,0 +1,10 @@ |
|||||||
|
?msvc:usr/bin/baz.pdb |
||||||
|
?msvc:usr/bin/foo.pdb |
||||||
|
?msvc:usr/lib/baz.pdb |
||||||
|
?msvc:usr/lib/foo.pdb |
||||||
|
usr/lib/?libbaz.cheese |
||||||
|
usr/lib/bar.a |
||||||
|
usr/lib/foo?implib |
||||||
|
usr/lib/foo?so |
||||||
|
usr/lib/libbaz?implib |
||||||
|
usr/lib/libqux.cheese |
@ -0,0 +1,14 @@ |
|||||||
|
#if defined _WIN32 || defined __CYGWIN__ |
||||||
|
#define DLL_PUBLIC __declspec(dllexport) |
||||||
|
#else |
||||||
|
#if defined __GNUC__ |
||||||
|
#define DLL_PUBLIC __attribute__ ((visibility("default"))) |
||||||
|
#else |
||||||
|
#pragma message ("Compiler does not support symbol visibility.") |
||||||
|
#define DLL_PUBLIC |
||||||
|
#endif |
||||||
|
#endif |
||||||
|
|
||||||
|
int DLL_PUBLIC func() { |
||||||
|
return 0; |
||||||
|
} |
@ -0,0 +1,7 @@ |
|||||||
|
project('library with name_prefix name_suffix test', 'c') |
||||||
|
|
||||||
|
shared_library('foo', 'libfile.c', name_prefix: '', install : true) |
||||||
|
static_library('bar', 'libfile.c', name_prefix: '', install : true) |
||||||
|
|
||||||
|
shared_library('baz', 'libfile.c', name_suffix: 'cheese', install : true) |
||||||
|
static_library('qux', 'libfile.c', name_suffix: 'cheese', install : true) |
Loading…
Reference in new issue