Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
75e95dd7
Commit
75e95dd7
authored
Mar 28, 2018
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Attempt to fix jsonb_plpython build on Windows
parent
e81fc9b9
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
14 deletions
+29
-14
src/tools/msvc/Install.pm
src/tools/msvc/Install.pm
+1
-0
src/tools/msvc/Mkvcbuild.pm
src/tools/msvc/Mkvcbuild.pm
+26
-14
src/tools/msvc/vcregress.pl
src/tools/msvc/vcregress.pl
+2
-0
No files found.
src/tools/msvc/Install.pm
View file @
75e95dd7
...
@@ -465,6 +465,7 @@ sub CopyContribFiles
...
@@ -465,6 +465,7 @@ sub CopyContribFiles
next if (
$d
eq
"
xml2
"
&& !defined(
$config
->{xml}));
next if (
$d
eq
"
xml2
"
&& !defined(
$config
->{xml}));
next if (
$d
eq
"
hstore_plperl
"
&& !defined(
$config
->{perl}));
next if (
$d
eq
"
hstore_plperl
"
&& !defined(
$config
->{perl}));
next if (
$d
eq
"
hstore_plpython
"
&& !defined(
$config
->{python}));
next if (
$d
eq
"
hstore_plpython
"
&& !defined(
$config
->{python}));
next if (
$d
eq
"
jsonb_plpython
"
&& !defined(
$config
->{python}));
next if (
$d
eq
"
ltree_plpython
"
&& !defined(
$config
->{python}));
next if (
$d
eq
"
ltree_plpython
"
&& !defined(
$config
->{python}));
next if (
$d
eq
"
sepgsql
"
);
next if (
$d
eq
"
sepgsql
"
);
...
...
src/tools/msvc/Mkvcbuild.pm
View file @
75e95dd7
...
@@ -43,6 +43,7 @@ my $contrib_extrasource = {
...
@@ -43,6 +43,7 @@ my $contrib_extrasource = {
my
@contrib_excludes
=
(
my
@contrib_excludes
=
(
'
commit_ts
',
'
hstore_plperl
',
'
commit_ts
',
'
hstore_plperl
',
'
hstore_plpython
',
'
intagg
',
'
hstore_plpython
',
'
intagg
',
'
jsonb_plpython
',
'
ltree_plpython
',
'
pgcrypto
',
'
ltree_plpython
',
'
pgcrypto
',
'
sepgsql
',
'
brin
',
'
sepgsql
',
'
brin
',
'
test_extensions
',
'
test_pg_dump
',
'
test_extensions
',
'
test_pg_dump
',
...
@@ -506,6 +507,11 @@ sub mkvcbuild
...
@@ -506,6 +507,11 @@ sub mkvcbuild
'
hstore
',
'
contrib/hstore
');
'
hstore
',
'
contrib/hstore
');
$hstore_plpython
->
AddDefine
(
$hstore_plpython
->
AddDefine
(
'
PLPYTHON_LIBNAME="plpython
'
.
$pymajorver
.
'
"
');
'
PLPYTHON_LIBNAME="plpython
'
.
$pymajorver
.
'
"
');
my
$jsonb_plpython
=
AddTransformModule
(
'
jsonb_plpython
'
.
$pymajorver
,
'
contrib/jsonb_plpython
',
'
plpython
'
.
$pymajorver
,
'
src/pl/plpython
');
$jsonb_plpython
->
AddDefine
(
'
PLPYTHON_LIBNAME="plpython
'
.
$pymajorver
.
'
"
');
my
$ltree_plpython
=
AddTransformModule
(
my
$ltree_plpython
=
AddTransformModule
(
'
ltree_plpython
'
.
$pymajorver
,
'
contrib/ltree_plpython
',
'
ltree_plpython
'
.
$pymajorver
,
'
contrib/ltree_plpython
',
'
plpython
'
.
$pymajorver
,
'
src/pl/plpython
',
'
plpython
'
.
$pymajorver
,
'
src/pl/plpython
',
...
@@ -850,20 +856,23 @@ sub AddTransformModule
...
@@ -850,20 +856,23 @@ sub AddTransformModule
my
$n_src
=
shift
;
my
$n_src
=
shift
;
my
$pl_proj_name
=
shift
;
my
$pl_proj_name
=
shift
;
my
$pl_src
=
shift
;
my
$pl_src
=
shift
;
my
$t
ransform_name
=
shift
;
my
$t
ype_name
=
shift
;
my
$t
ransform_src
=
shift
;
my
$t
ype_src
=
shift
;
my
$transform_proj
=
undef
;
my
$type_proj
=
undef
;
if
(
$type_name
)
{
foreach
my
$proj
(
@
{
$solution
->
{
projects
}
->
{'
contrib
'}
})
foreach
my
$proj
(
@
{
$solution
->
{
projects
}
->
{'
contrib
'}
})
{
{
if
(
$proj
->
{
name
}
eq
$transform
_name
)
if
(
$proj
->
{
name
}
eq
$type
_name
)
{
{
$transform
_proj
=
$proj
;
$type
_proj
=
$proj
;
last
;
last
;
}
}
}
}
die
"
could not find base module
$transform_name
for transform module
$n
"
die
"
could not find base module
$type_name
for transform module
$n
"
if
(
!
defined
(
$transform_proj
));
if
(
!
defined
(
$type_proj
));
}
my
$pl_proj
=
undef
;
my
$pl_proj
=
undef
;
foreach
my
$proj
(
@
{
$solution
->
{
projects
}
->
{'
PLs
'}
})
foreach
my
$proj
(
@
{
$solution
->
{
projects
}
->
{'
PLs
'}
})
...
@@ -894,13 +903,16 @@ sub AddTransformModule
...
@@ -894,13 +903,16 @@ sub AddTransformModule
}
}
# Add base module dependencies
# Add base module dependencies
$p
->
AddIncludeDir
(
$transform_src
);
if
(
$type_proj
)
$p
->
AddIncludeDir
(
$transform_proj
->
{
includes
});
foreach
my
$trans_lib
(
@
{
$transform_proj
->
{
libraries
}
})
{
{
$p
->
AddLibrary
(
$trans_lib
);
$p
->
AddIncludeDir
(
$type_src
);
$p
->
AddIncludeDir
(
$type_proj
->
{
includes
});
foreach
my
$type_lib
(
@
{
$type_proj
->
{
libraries
}
})
{
$p
->
AddLibrary
(
$type_lib
);
}
$p
->
AddReference
(
$type_proj
);
}
}
$p
->
AddReference
(
$transform_proj
);
return
$p
;
return
$p
;
}
}
...
...
src/tools/msvc/vcregress.pl
View file @
75e95dd7
...
@@ -326,6 +326,7 @@ sub subdircheck
...
@@ -326,6 +326,7 @@ sub subdircheck
# Makefile for more details regarding Python-version specific
# Makefile for more details regarding Python-version specific
# dependencies.
# dependencies.
if
(
$module
eq
"
hstore_plpython
"
if
(
$module
eq
"
hstore_plpython
"
||
$module
eq
"
jsonb_plpython
"
||
$module
eq
"
ltree_plpython
")
||
$module
eq
"
ltree_plpython
")
{
{
die
"
Python not enabled in configuration
"
die
"
Python not enabled in configuration
"
...
@@ -376,6 +377,7 @@ sub contribcheck
...
@@ -376,6 +377,7 @@ sub contribcheck
next
if
(
$module
eq
"
xml2
"
&&
!
defined
(
$config
->
{
xml
}));
next
if
(
$module
eq
"
xml2
"
&&
!
defined
(
$config
->
{
xml
}));
next
if
(
$module
eq
"
hstore_plperl
"
&&
!
defined
(
$config
->
{
perl
}));
next
if
(
$module
eq
"
hstore_plperl
"
&&
!
defined
(
$config
->
{
perl
}));
next
if
(
$module
eq
"
hstore_plpython
"
&&
!
defined
(
$config
->
{
python
}));
next
if
(
$module
eq
"
hstore_plpython
"
&&
!
defined
(
$config
->
{
python
}));
next
if
(
$module
eq
"
jsonb_plpython
"
&&
!
defined
(
$config
->
{
python
}));
next
if
(
$module
eq
"
ltree_plpython
"
&&
!
defined
(
$config
->
{
python
}));
next
if
(
$module
eq
"
ltree_plpython
"
&&
!
defined
(
$config
->
{
python
}));
next
if
(
$module
eq
"
sepgsql
");
next
if
(
$module
eq
"
sepgsql
");
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment