Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
df0cdd53
Commit
df0cdd53
authored
15 years ago
by
Magnus Hagander
Browse files
Options
Downloads
Patches
Plain Diff
Add basic build support for Visual Studio 2008, without resorting to
generating the build files for 2005 and then converting them.
parent
4e766f2d
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/tools/msvc/Project.pm
+4
-3
4 additions, 3 deletions
src/tools/msvc/Project.pm
src/tools/msvc/Solution.pm
+23
-1
23 additions, 1 deletion
src/tools/msvc/Solution.pm
with
27 additions
and
4 deletions
src/tools/msvc/Project.pm
+
4
−
3
View file @
df0cdd53
...
...
@@ -3,7 +3,7 @@ package Project;
#
# Package that encapsulates a Visual C++ project file generation
#
# $PostgreSQL: pgsql/src/tools/msvc/Project.pm,v 1.2
1
2009/1
1/12 00:13:00 tgl
Exp $
# $PostgreSQL: pgsql/src/tools/msvc/Project.pm,v 1.2
2
2009/1
2/23 13:27:04 mha
Exp $
#
use
Carp
;
use
strict
;
...
...
@@ -32,7 +32,8 @@ sub new
defines
=>
'
;
',
solution
=>
$solution
,
disablewarnings
=>
'
4018;4244;4273;4102;4090
',
disablelinkerwarnings
=>
''
disablelinkerwarnings
=>
'',
vcver
=>
$solution
->
{
vcver
}
};
bless
$self
;
...
...
@@ -458,7 +459,7 @@ sub WriteHeader
print
$f
<<EOF;
<?xml version="1.0" encoding="Windows-1252"?>
<VisualStudioProject ProjectType="Visual C++" Version="
8.00
" Name="$self->{name}" ProjectGUID="$self->{guid}">
<VisualStudioProject ProjectType="Visual C++" Version="
$self->{vcver}
" Name="$self->{name}" ProjectGUID="$self->{guid}">
<Platforms><Platform Name="Win32"/></Platforms>
<Configurations>
EOF
...
...
This diff is collapsed.
Click to expand it.
src/tools/msvc/Solution.pm
+
23
−
1
View file @
df0cdd53
...
...
@@ -3,7 +3,7 @@ package Solution;
#
# Package that encapsulates a Visual C++ solution file generation
#
# $PostgreSQL: pgsql/src/tools/msvc/Solution.pm,v 1.4
8
2009/
09/19 05:56:50 adunstan
Exp $
# $PostgreSQL: pgsql/src/tools/msvc/Solution.pm,v 1.4
9
2009/
12/23 13:27:04 mha
Exp $
#
use
Carp
;
use
strict
;
...
...
@@ -20,6 +20,7 @@ sub new
options
=>
$options
,
numver
=>
'',
strver
=>
'',
vcver
=>
undef
,
};
bless
$self
;
# integer_datetimes is now the default
...
...
@@ -51,9 +52,30 @@ sub new
unless
$options
->
{
wal_segsize
};
# undef or 0 means default
die
"
Bad wal_segsize
$options
->{wal_segsize}
"
unless
grep
{
$_
==
$options
->
{
wal_segsize
}}
(
1
,
2
,
4
,
8
,
16
,
32
,
64
);
$self
->
DetermineToolVersions
();
return
$self
;
}
sub
DetermineToolVersions
{
my
$self
=
shift
;
# Determine version of vcbuild command, to set proper verison of visual studio
open
(
P
,"
vcbuild /? |
")
||
die
"
vcbuild command not found
";
my
$line
=
<
P
>
;
close
(
P
);
if
(
$line
!~
/^Microsoft \(R\) Visual C\+\+ Project Builder - Command Line Version (\d+)\.00\.\d+/
)
{
die
"
Unable to determine vcbuild version from first line of output!
";
}
if
(
$
1
==
8
)
{
$self
->
{
vcver
}
=
'
8.00
'
}
elsif
(
$
1
==
9
)
{
$self
->
{
vcver
}
=
'
9.00
'
}
else
{
die
"
Unsupported version of Visual Studio: $1
"
}
print
"
Detected Visual Studio version
$self
->{vcver}
\n
";
}
# Return 1 if $oldfile is newer than $newfile, or if $newfile doesn't exist.
# Special case - if config.pl has changed, always return 1
sub
IsNewer
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment