diff options
Diffstat (limited to 'Configurations/platform')
-rw-r--r-- | Configurations/platform/BASE.pm | 10 | ||||
-rw-r--r-- | Configurations/platform/mingw.pm | 3 |
2 files changed, 9 insertions, 4 deletions
diff --git a/Configurations/platform/BASE.pm b/Configurations/platform/BASE.pm index fcd7b70ccf..1ab4bf18e9 100644 --- a/Configurations/platform/BASE.pm +++ b/Configurations/platform/BASE.pm @@ -52,11 +52,13 @@ sub isdef { return $_[1] =~ m|\.ld$|; } sub isobj { return $_[1] =~ m|\.o$|; } sub isres { return $_[1] =~ m|\.res$|; } sub isasm { return $_[1] =~ m|\.[Ss]$|; } +sub isstaticlib { return $_[1] =~ m|\.a$|; } sub convertext { - if ($_[0]->isdef($_[1])) { return $_[0]->def($_[1]); } - if ($_[0]->isobj($_[1])) { return $_[0]->obj($_[1]); } - if ($_[0]->isres($_[1])) { return $_[0]->res($_[1]); } - if ($_[0]->isasm($_[1])) { return $_[0]->asm($_[1]); } + if ($_[0]->isdef($_[1])) { return $_[0]->def($_[1]); } + if ($_[0]->isobj($_[1])) { return $_[0]->obj($_[1]); } + if ($_[0]->isres($_[1])) { return $_[0]->res($_[1]); } + if ($_[0]->isasm($_[1])) { return $_[0]->asm($_[1]); } + if ($_[0]->isstaticlib($_[1])) { return $_[0]->staticlib($_[1]); } return $_[1]; } diff --git a/Configurations/platform/mingw.pm b/Configurations/platform/mingw.pm index 5788a36e77..7dacb32a31 100644 --- a/Configurations/platform/mingw.pm +++ b/Configurations/platform/mingw.pm @@ -17,6 +17,9 @@ sub objext { '.obj' } sub libext { '.a' } sub dsoext { '.dll' } sub defext { '.def' } + +# Other extra that aren't defined in platform::BASE +sub resext { '.res.obj' } sub shlibext { '.dll' } sub shlibextimport { $target{shared_import_extension} || '.dll.a' } sub shlibextsimple { undef } |