|
90 | 90 | $pgtypes->AddReference($postgres,$libpgport);
|
91 | 91 | $pgtypes->AddIncludeDir('src\interfaces\ecpg\include');
|
92 | 92 |
|
93 |
| -my $libecpg = $solution->AddProject('libecpg','dll','interfaces','src\interfaces\ecpg\ecpglib'); |
94 |
| -$libecpg->AddDefine('FRONTEND'); |
95 |
| -$libecpg->AddIncludeDir('src\interfaces\ecpg\include'); |
96 |
| -$libecpg->AddIncludeDir('src\interfaces\libpq'); |
97 |
| -$libecpg->AddIncludeDir('src\port'); |
98 |
| -$libecpg->AddLibrary('wsock32.lib'); |
99 |
| -$libecpg->AddLibrary($config->{'pthread'} . '\pthreadVC2.lib'); |
100 |
| -$libecpg->AddReference($libpq,$pgtypes); |
101 |
| - |
102 |
| -my $libecpgcompat = $solution->AddProject('libecpg_compat','dll','interfaces','src\interfaces\ecpg\compatlib'); |
103 |
| -$libecpgcompat->AddIncludeDir('src\interfaces\ecpg\include'); |
104 |
| -$libecpgcompat->AddIncludeDir('src\interfaces\libpq'); |
105 |
| -$libecpgcompat->AddReference($pgtypes,$libecpg); |
106 |
| - |
107 |
| -my $ecpg = $solution->AddProject('ecpg','exe','interfaces','src\interfaces\ecpg\preproc'); |
108 |
| -$ecpg->AddIncludeDir('src\interfaces\ecpg\include'); |
109 |
| -$ecpg->AddIncludeDir('src\interfaces\libpq'); |
110 |
| -$ecpg->AddFiles('src\interfaces\ecpg\preproc','pgc.l','preproc.y'); |
111 |
| -$ecpg->AddDefine('MAJOR_VERSION=4'); |
112 |
| -$ecpg->AddDefine('MINOR_VERSION=2'); |
113 |
| -$ecpg->AddDefine('PATCHLEVEL=1'); |
114 |
| -$ecpg->AddReference($libpgport); |
| 93 | +if ($config->{pthread}) { |
| 94 | + my $libecpg = $solution->AddProject('libecpg','dll','interfaces','src\interfaces\ecpg\ecpglib'); |
| 95 | + $libecpg->AddDefine('FRONTEND'); |
| 96 | + $libecpg->AddIncludeDir('src\interfaces\ecpg\include'); |
| 97 | + $libecpg->AddIncludeDir('src\interfaces\libpq'); |
| 98 | + $libecpg->AddIncludeDir('src\port'); |
| 99 | + $libecpg->AddLibrary('wsock32.lib'); |
| 100 | + $libecpg->AddLibrary($config->{'pthread'} . '\pthreadVC2.lib'); |
| 101 | + $libecpg->AddReference($libpq,$pgtypes); |
| 102 | + |
| 103 | + my $libecpgcompat = $solution->AddProject('libecpg_compat','dll','interfaces','src\interfaces\ecpg\compatlib'); |
| 104 | + $libecpgcompat->AddIncludeDir('src\interfaces\ecpg\include'); |
| 105 | + $libecpgcompat->AddIncludeDir('src\interfaces\libpq'); |
| 106 | + $libecpgcompat->AddReference($pgtypes,$libecpg); |
| 107 | + |
| 108 | + my $ecpg = $solution->AddProject('ecpg','exe','interfaces','src\interfaces\ecpg\preproc'); |
| 109 | + $ecpg->AddIncludeDir('src\interfaces\ecpg\include'); |
| 110 | + $ecpg->AddIncludeDir('src\interfaces\libpq'); |
| 111 | + $ecpg->AddFiles('src\interfaces\ecpg\preproc','pgc.l','preproc.y'); |
| 112 | + $ecpg->AddDefine('MAJOR_VERSION=4'); |
| 113 | + $ecpg->AddDefine('MINOR_VERSION=2'); |
| 114 | + $ecpg->AddDefine('PATCHLEVEL=1'); |
| 115 | + $ecpg->AddReference($libpgport); |
| 116 | +} |
| 117 | +else { |
| 118 | + print "Not building ecpg due to lack of pthreads.\n"; |
| 119 | +} |
115 | 120 |
|
116 | 121 |
|
117 | 122 | # src/bin
|
|
0 commit comments