|
47 | 47 | $plpgsql->AddReference($postgres);
|
48 | 48 |
|
49 | 49 | if ($solution->{options}->{perl}) {
|
50 |
| -# Already running in perl, so use the version that we already have information for. |
51 |
| - use Config; |
52 | 50 | my $plperl = $solution->AddProject('plperl','dll','PLs','src\pl\plperl');
|
53 |
| - $plperl->AddIncludeDir($Config{archlibexp} . '\CORE'); |
| 51 | + $plperl->AddIncludeDir($solution->{options}->{perl} . '/lib/CORE'); |
54 | 52 | $plperl->AddDefine('PLPERL_HAVE_UID_GID');
|
55 | 53 | if (Solution::IsNewer('src\pl\plperl\SPI.c','src\pl\plperl\SPI.xs')) {
|
56 | 54 | print 'Building src\pl\plperl\SPI.c...' . "\n";
|
57 |
| - system('perl ' . $Config{privlibexp} . '/ExtUtils/xsubpp -typemap ' . $Config{privlibexp} . '/ExtUtils/typemap src\pl\plperl\SPI.xs >src\pl\plperl\SPI.c'); |
| 55 | + system($solution->{options}->{perl} . '/bin/perl ' . $solution->{options}->{perl} . '/lib/COREExtUtils/xsubpp -typemap ' . $solution->{options}->{perl} . '/lib/CORE/ExtUtils/typemap src\pl\plperl\SPI.xs >src\pl\plperl\SPI.c'); |
58 | 56 | die 'Failed to create SPI.c' . "\n" if ((!(-f 'src\pl\plperl\SPI.c')) || -z 'src\pl\plperl\SPI.c');
|
59 | 57 | }
|
60 | 58 | $plperl->AddReference($postgres);
|
61 |
| - $plperl->AddLibrary($Config{archlibexp} . '\CORE\perl58.lib'); |
| 59 | + $plperl->AddLibrary($solution->{options}->{perl} . '\lib\CORE\perl58.lib'); |
62 | 60 | }
|
63 | 61 |
|
64 | 62 | if ($solution->{options}->{python}) {
|
65 | 63 | my $plpython = $solution->AddProject('plpython','dll','PLs','src\pl\plpython');
|
66 | 64 | $plpython->AddIncludeDir($solution->{options}->{python} . '\include');
|
67 |
| - $plpython->AddLibrary($solution->{options}->{python} . '\Libs\python24.lib'); |
| 65 | + $solution->{options}->{python} =~ /\\Python(\d{2})/i || croak "Could not determine python version from path"; |
| 66 | + $plpython->AddLibrary($solution->{options}->{python} . "\\Libs\\python$1.lib"); |
68 | 67 | $plpython->AddReference($postgres);
|
69 | 68 | }
|
70 | 69 |
|
|
125 | 124 |
|
126 | 125 | my $pgevent = $solution->AddProject('pgevent','dll','bin');
|
127 | 126 | $pgevent->AddFiles('src\bin\pgevent','pgevent.c','pgmsgevent.rc');
|
| 127 | +$pgevent->AddResourceFile('src\bin\pgevent','Eventlog message formatter'); |
| 128 | +$pgevent->RemoveFile('src\bin\pgevent\win32ver.rc'); |
128 | 129 | $pgevent->UseDef('src\bin\pgevent\pgevent.def');
|
129 | 130 |
|
130 | 131 | my $psql = AddSimpleFrontend('psql', 1);
|
|
0 commit comments