1 package platform::Windows;
9 require platform::BASE;
10 @ISA = qw(platform::BASE);
12 # Assume someone set @INC right before loading this module
17 sub shlibext { '.dll' }
24 # Other extra that aren't defined in platform::BASE
26 sub shlibextimport { '.lib' }
27 sub shlibvariant { $target{shlib_variant} || '' }
30 # Non-installed libraries are *always* static, and their names remain
31 # the same, except for the mandatory extension
32 my $in_libname = platform::BASE->staticname($_[1]);
33 return $in_libname if $unified_info{attributes}->{$_[1]}->{noinst};
35 # To make sure not to clash with an import library, we make the static
36 # variant of our installed libraries get '_static' added to their names.
37 return platform::BASE->staticname($_[1])
38 . ($disabled{shared} ? '' : '_static');
41 # To mark forward compatibility, we include the OpenSSL major release version
42 # number in the installed shared library names.
43 (my $sover_filename = $config{shlib_version}) =~ s|\.|_|g;
44 sub shlib_version_as_filename {
45 return $sover_filename
48 return platform::BASE::__concat(platform::BASE->sharedname($_[1]),
50 $_[0]->shlib_version_as_filename(),
51 ($_[0]->shlibvariant() // ''));
54 sub sharedname_import {
55 return platform::BASE::__isshared($_[1]) ? $_[1] : undef;
58 sub sharedlib_import {
59 return platform::BASE::__concat($_[0]->sharedname_import($_[1]),
60 $_[0]->shlibextimport());