Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
aom-rav1e
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Xiph.Org
aom-rav1e
Commits
cbc8089a
Commit
cbc8089a
authored
11 years ago
by
Martin Storsjö
Browse files
Options
Downloads
Patches
Plain Diff
gen_msvs_sln: Support producing versions 10 and 11, handle vcxproj files
Change-Id: I3c23a2ce383d9291a823d2be7364608ce0e01570
parent
56666f07
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
build/make/gen_msvs_sln.sh
+26
-7
26 additions, 7 deletions
build/make/gen_msvs_sln.sh
build/make/gen_msvs_vcxproj.sh
+3
-1
3 additions, 1 deletion
build/make/gen_msvs_vcxproj.sh
with
29 additions
and
8 deletions
build/make/gen_msvs_sln.sh
+
26
−
7
View file @
cbc8089a
...
...
@@ -25,7 +25,7 @@ files.
Options:
--help Print this message
--out=outfile Redirect output to a file
--ver=version Version (7,8,9) of visual studio to generate for
--ver=version Version (7,8,9
,10,11
) of visual studio to generate for
--target=isa-os-cc Target specifier
EOF
exit
1
...
...
@@ -55,14 +55,19 @@ indent_pop() {
parse_project
()
{
local
file
=
$1
local
name
=
`
grep
Name
"
$file
"
|
awk
'BEGIN {FS="\""}{if (NR==1) print $2}'
`
local
guid
=
`
grep
ProjectGUID
"
$file
"
|
awk
'BEGIN {FS="\""}{if (NR==1) print $2}'
`
if
[
"
$sfx
"
=
"vcproj"
]
;
then
local
name
=
`
grep
Name
"
$file
"
|
awk
'BEGIN {FS="\""}{if (NR==1) print $2}'
`
local
guid
=
`
grep
ProjectGUID
"
$file
"
|
awk
'BEGIN {FS="\""}{if (NR==1) print $2}'
`
else
local
name
=
`
grep
RootNamespace
"
$file
"
|
sed
's,.*<.*>\(.*\)</.*>.*,\1,'
`
local
guid
=
`
grep
ProjectGuid
"
$file
"
|
sed
's,.*<.*>\(.*\)</.*>.*,\1,'
`
fi
# save the project GUID to a varaible, normalizing to the basename of the
# vcproj file without the extension
local
var
var
=
${
file
##*/
}
var
=
${
var
%%.
vcproj
}
var
=
${
var
%%.
${
sfx
}
}
eval
"
${
var
}
_file=
\"
$1
\"
"
eval
"
${
var
}
_name=
$name
"
eval
"
${
var
}
_guid=
$guid
"
...
...
@@ -83,14 +88,14 @@ process_project() {
# vcproj file without the extension
local
var
var
=
${
file
##*/
}
var
=
${
var
%%.
vcproj
}
var
=
${
var
%%.
${
sfx
}
}
eval
"
${
var
}
_guid=
$guid
"
echo
"Project(
\"
{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}
\"
) =
\"
$name
\"
,
\"
$file
\"
,
\"
$guid
\"
"
indent_push
eval
"local deps=
\"\$
{
${
var
}
_deps}
\"
"
if
[
-n
"
$deps
"
]
;
then
if
[
-n
"
$deps
"
]
&&
[
"
$sfx
"
=
"vcproj"
]
;
then
echo
"
${
indent
}
ProjectSection(ProjectDependencies) = postProject"
indent_push
...
...
@@ -221,7 +226,7 @@ for opt in "$@"; do
;;
--ver
=
*
)
vs_ver
=
"
$optval
"
case
$optval
in
[
789]
)
[
789]
|10|11
)
;;
*
)
die Unrecognized Visual Studio Version
in
$opt
;;
...
...
@@ -257,6 +262,20 @@ case "${vs_ver:-8}" in
9
)
sln_vers
=
"10.00"
sln_vers_str
=
"Visual Studio 2008"
;;
10
)
sln_vers
=
"11.00"
sln_vers_str
=
"Visual Studio 2010"
;;
11
)
sln_vers
=
"12.00"
sln_vers_str
=
"Visual Studio 2012"
;;
esac
case
"
${
vs_ver
:-
8
}
"
in
[
789]
)
sfx
=
vcproj
;;
10|11
)
sfx
=
vcxproj
;;
esac
for
f
in
"
${
file_list
[@]
}
"
;
do
...
...
This diff is collapsed.
Click to expand it.
build/make/gen_msvs_vcxproj.sh
+
3
−
1
View file @
cbc8089a
...
...
@@ -358,7 +358,9 @@ generate_vcxproj() {
else
tag_content ConfigurationType StaticLibrary
fi
tag_content PlatformToolset v110
# v110_wp80, omit for v10
if
[
"
$vs_ver
"
=
"11"
]
;
then
tag_content PlatformToolset v110
fi
tag_content CharacterSet Unicode
if
[
"
$config
"
=
"Release"
]
;
then
tag_content WholeProgramOptimization
true
...
...
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