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
b13635ce
Commit
b13635ce
authored
Feb 28, 2008
by
Magnus Hagander
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support for building contrib/uuid-ossp with MSVC.
Original patch from Hiroshi Saito, modified by me.
parent
b8eef283
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
31 additions
and
6 deletions
+31
-6
doc/src/sgml/install-win32.sgml
doc/src/sgml/install-win32.sgml
+10
-1
src/tools/msvc/Install.pm
src/tools/msvc/Install.pm
+2
-2
src/tools/msvc/Mkvcbuild.pm
src/tools/msvc/Mkvcbuild.pm
+12
-2
src/tools/msvc/Solution.pm
src/tools/msvc/Solution.pm
+6
-1
src/tools/msvc/config.pl
src/tools/msvc/config.pl
+1
-0
No files found.
doc/src/sgml/install-win32.sgml
View file @
b13635ce
<!-- $PostgreSQL: pgsql/doc/src/sgml/install-win32.sgml,v 1.4
5 2008/02/06 15:13:25
mha Exp $ -->
<!-- $PostgreSQL: pgsql/doc/src/sgml/install-win32.sgml,v 1.4
6 2008/02/28 12:17:59
mha Exp $ -->
<chapter id="install-win32">
<title>Installation on <productname>Windows</productname></title>
...
...
@@ -160,6 +160,15 @@
</para></listitem>
</varlistentry>
<varlistentry>
<term><productname>ossp-uuid</productname></term>
<listitem><para>
Required for UUID-OSSP support (contrib only). Source can be
downloaded from
<ulink url="http://www.ossp.org/pkg/lib/uuid/"></>.
</para></listitem>
</varlistentry>
<varlistentry>
<term><productname>Python</productname></term>
<listitem><para>
...
...
src/tools/msvc/Install.pm
View file @
b13635ce
...
...
@@ -3,7 +3,7 @@ package Install;
#
# Package that provides 'make install' functionality for msvc builds
#
# $PostgreSQL: pgsql/src/tools/msvc/Install.pm,v 1.2
8 2008/02/07 17:58:16
mha Exp $
# $PostgreSQL: pgsql/src/tools/msvc/Install.pm,v 1.2
9 2008/02/28 12:17:59
mha Exp $
#
use
strict
;
use
warnings
;
...
...
@@ -291,7 +291,7 @@ sub CopyContribFiles
{
next if (
$d
=~ /^
\
./);
next unless (-f
"
contrib
/$d/
Makefile
"
);
next if (
$d
eq
"
uuid
-
ossp
"
);
next if (
$d
eq
"
uuid
-
ossp
"
&& !defined(
$config
->{uuid})
);
next if (
$d
eq
"
sslinfo
"
&& !defined(
$config
->{openssl}));
next if (
$d
eq
"
xml2
"
&& !defined(
$config
->{xml}));
...
...
src/tools/msvc/Mkvcbuild.pm
View file @
b13635ce
...
...
@@ -3,7 +3,7 @@ package Mkvcbuild;
#
# Package that generates build files for msvc build
#
# $PostgreSQL: pgsql/src/tools/msvc/Mkvcbuild.pm,v 1.2
5 2008/02/05 14:17:23
mha Exp $
# $PostgreSQL: pgsql/src/tools/msvc/Mkvcbuild.pm,v 1.2
6 2008/02/28 12:17:59
mha Exp $
#
use
Carp
;
use
Win32
;
...
...
@@ -31,7 +31,7 @@ my $contrib_extrasource = {
'
cube
'
=>
['
cubescan.l
','
cubeparse.y
'],
'
seg
'
=>
['
segscan.l
','
segparse.y
']
};
my
@contrib_excludes
=
('
pgcrypto
'
,'
uuid-ossp
'
);
my
@contrib_excludes
=
('
pgcrypto
');
sub
mkvcbuild
{
...
...
@@ -247,6 +247,16 @@ sub mkvcbuild
push
@contrib_excludes
,'
sslinfo
';
}
if
(
$solution
->
{
options
}
->
{
uuid
})
{
$contrib_extraincludes
->
{'
uuid-ossp
'}
=
[
$solution
->
{
options
}
->
{
uuid
}
.
'
\
include
'
];
$contrib_extralibs
->
{'
uuid-ossp
'}
=
[
$solution
->
{
options
}
->
{
uuid
}
.
'
\
lib
\
uuid.lib
'
];
}
else
{
push
@contrib_excludes
,'
uuid-ossp
';
}
# Pgcrypto makefile too complex to parse....
my
$pgcrypto
=
$solution
->
AddProject
('
pgcrypto
','
dll
','
crypto
');
$pgcrypto
->
AddFiles
(
...
...
src/tools/msvc/Solution.pm
View file @
b13635ce
...
...
@@ -3,7 +3,7 @@ package Solution;
#
# Package that encapsulates a Visual C++ solution file generation
#
# $PostgreSQL: pgsql/src/tools/msvc/Solution.pm,v 1.3
5 2008/02/19 12:00:03
mha Exp $
# $PostgreSQL: pgsql/src/tools/msvc/Solution.pm,v 1.3
6 2008/02/28 12:17:59
mha Exp $
#
use
Carp
;
use
strict
;
...
...
@@ -113,6 +113,10 @@ s{PG_VERSION_STR "[^"]+"}{__STRINGIFY(x) #x\n#define __STRINGIFY2(z) __STRINGIFY
print
O
"
#define USE_SSL 1
\n
"
if
(
$self
->
{
options
}
->
{
openssl
});
print
O
"
#define ENABLE_NLS 1
\n
"
if
(
$self
->
{
options
}
->
{
nls
});
if
(
$self
->
{
options
}
->
{
uuid
})
{
print
O
"
#define HAVE_UUID_H
\n
";
}
if
(
$self
->
{
options
}
->
{
xml
})
{
print
O
"
#define HAVE_LIBXML2
\n
";
...
...
@@ -451,6 +455,7 @@ sub GetFakeConfigure
$cfg
.=
'
--with-ldap
'
if
(
$self
->
{
options
}
->
{
ldap
});
$cfg
.=
'
--without-zlib
'
unless
(
$self
->
{
options
}
->
{
zlib
});
$cfg
.=
'
--with-openssl
'
if
(
$self
->
{
options
}
->
{
ssl
});
$cfg
.=
'
--with-ossp-uuid
'
if
(
$self
->
{
options
}
->
{
uuid
});
$cfg
.=
'
--with-libxml
'
if
(
$self
->
{
options
}
->
{
xml
});
$cfg
.=
'
--with-libxslt
'
if
(
$self
->
{
options
}
->
{
xslt
});
$cfg
.=
'
--with-krb5
'
if
(
$self
->
{
options
}
->
{
krb5
});
...
...
src/tools/msvc/config.pl
View file @
b13635ce
...
...
@@ -12,6 +12,7 @@ our $config = {
krb5
=>
'
c:
\
prog
\
pgsql
\
depend
\
krb5
',
# --with-krb5=<path>
ldap
=>
1
,
# --with-ldap
openssl
=>
'
c:
\
openssl
',
# --with-ssl=<path>
uuid
=>
'
c:
\
prog
\
pgsql
\
depend
\
ossp-uuid
',
#--with-ossp-uuid
xml
=>
'
c:
\
prog
\
pgsql
\
depend
\
libxml2
',
xslt
=>
'
c:
\
prog
\
pgsql
\
depend
\
libxslt
',
iconv
=>
'
c:
\
prog
\
pgsql
\
depend
\
iconv
',
...
...
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