Skip to content

Commit

Permalink
[Configure] Move lib names and dir into platform config
Browse files Browse the repository at this point in the history
This eliminates the last `eq 'win32'` checks in the main Configure
code.
  • Loading branch information
Benabik committed Oct 26, 2013
1 parent 8303bb3 commit 80f0e1a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Configure.pl
Expand Up @@ -158,17 +158,17 @@
$config{objflags} = '@ccdef@MVM_BUILD_SHARED @ccshared@';
$config{mainflags} = '@ccdef@MVM_SHARED';
$config{moar} = '@moardll@';
$config{moarinst} = $config{os} eq 'win32' ? 'bin' : 'lib';
$config{impinst} = $config{os} eq 'win32' ? '@moardll@.lib' : '';
$config{moarinst} = $config{shareddir};
$config{impinst} = $config{sharedlib},
$config{mainlibs} = '@lddir@. ' .
sprintf($config{ldimp} // $config{ldusr}, $NAME);
}
else {
$config{objflags} = '';
$config{mainflags} = '';
$config{moar} = '@moarlib@';
$config{moarinst} = 'lib';
$config{impinst} = '';
$config{moarinst} = $config{staticdir};
$config{impinst} = $config{staticlib};
$config{mainlibs} = '@moarlib@ @thirdpartylibs@ $(LDLIBS)';
}

Expand Down
12 changes: 12 additions & 0 deletions build/setup.pm
Expand Up @@ -133,6 +133,12 @@ our %TC_POSIX = (
lib => 'lib%s.a',
dll => 'lib%s.so',

shareddir => 'lib',
sharedlib => '',

staticdir => 'lib',
staticlib => '',

-auxfiles => [],
);

Expand Down Expand Up @@ -205,6 +211,12 @@ TERM
lib => '%s.lib',
dll => '%s.dll',

shareddir => 'bin',
sharedlib => '@moardll@.lib',

staticdir => 'lib',
staticlib => '',

-auxfiles => [ qw( @name@.ilk @name@.pdb @moardll@.lib @moardll@.exp vc100.pdb ) ],

-thirdparty => {
Expand Down

0 comments on commit 80f0e1a

Please sign in to comment.