Skip to content

Commit fb8155d

Browse files
committed
Add define to exclude configured libraries, to be able to easily build a
stripped down version of libpq. To be used by the installer.
1 parent 1ca6ab1 commit fb8155d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/tools/msvc/Solution.pm

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package Solution;
22
#
33
# Package that encapsulates a Visual C++ solution file generation
44
#
5-
# $PostgreSQL: pgsql/src/tools/msvc/Solution.pm,v 1.17 2007/03/17 14:01:01 mha Exp $
5+
# $PostgreSQL: pgsql/src/tools/msvc/Solution.pm,v 1.18 2007/03/23 08:43:51 mha Exp $
66
#
77
use Carp;
88
use strict;
@@ -102,14 +102,15 @@ sub GenerateFiles
102102
s{PG_VERSION_STR "[^"]+"}{__STRINGIFY(x) #x\n#define __STRINGIFY2(z) __STRINGIFY(z)\n#define PG_VERSION_STR "PostgreSQL $self->{strver}, compiled by Visual C++ build " __STRINGIFY2(_MSC_VER)};
103103
print O;
104104
}
105+
print O "#define LOCALEDIR \"/share/locale\"\n" if ($self->{options}->{nls});
105106
print O "/* defines added by config steps */\n";
107+
print O "#ifndef IGNORE_CONFIGURED_SETTINGS\n";
106108
print O "#define USE_ASSERT_CHECKING 1\n" if ($self->{options}->{asserts});
107109
print O "#define USE_INTEGER_DATETIMES 1\n" if ($self->{options}->{integer_datetimes});
108110
print O "#define USE_LDAP 1\n" if ($self->{options}->{ldap});
109111
print O "#define HAVE_LIBZ 1\n" if ($self->{options}->{zlib});
110112
print O "#define USE_SSL 1\n" if ($self->{options}->{openssl});
111113
print O "#define ENABLE_NLS 1\n" if ($self->{options}->{nls});
112-
print O "#define LOCALEDIR \"/share/locale\"\n" if ($self->{options}->{nls});
113114

114115
if ($self->{options}->{xml})
115116
{
@@ -123,6 +124,7 @@ s{PG_VERSION_STR "[^"]+"}{__STRINGIFY(x) #x\n#define __STRINGIFY2(z) __STRINGIFY
123124
print O "#define HAVE_KRB5_TICKET_ENC_PART2 1\n";
124125
print O "#define PG_KRB_SRVNAM \"postgres\"\n";
125126
}
127+
print O "#endif /* IGNORE_CONFIGURED_SETTINGS */\n";
126128
close(O);
127129
close(I);
128130
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy