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
d2604af4
Commit
d2604af4
authored
10 years ago
by
James Zern
Committed by
Gerrit Code Review
10 years ago
Browse files
Options
Downloads
Plain Diff
Merge "gen_msvs_*proj.sh: factorize some functions"
parents
fae988dc
092a20f0
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
build/make/gen_msvs_proj.sh
+2
-88
2 additions, 88 deletions
build/make/gen_msvs_proj.sh
build/make/gen_msvs_vcxproj.sh
+2
-88
2 additions, 88 deletions
build/make/gen_msvs_vcxproj.sh
build/make/msvs_common.sh
+98
-0
98 additions, 0 deletions
build/make/msvs_common.sh
with
102 additions
and
176 deletions
build/make/gen_msvs_proj.sh
+
2
−
88
View file @
d2604af4
...
...
@@ -9,17 +9,11 @@
## be found in the AUTHORS file in the root of the source tree.
##
self
=
$0
self_basename
=
${
self
##*/
}
self_dirname
=
$(
dirname
"
$0
"
)
EOL
=
$'
\n
'
if
[
"
$(
uname
-o
2>/dev/null
)
"
=
"Cygwin"
]
\
&&
cygpath
--help
>
/dev/null 2>&1
;
then
FIXPATH
=
'cygpath -m'
else
FIXPATH
=
'echo'
fi
.
"
$self_dirname
/msvs_common.sh"
||
exit
127
show_help
()
{
cat
<<
EOF
...
...
@@ -49,86 +43,6 @@ EOF
exit
1
}
die
()
{
echo
"
${
self_basename
}
:
$@
"
>
&2
exit
1
}
die_unknown
(){
echo
"Unknown option
\"
$1
\"
."
>
&2
echo
"See
${
self_basename
}
--help for available options."
>
&2
exit
1
}
fix_path
()
{
$FIXPATH
"
$1
"
}
generate_uuid
()
{
local
hex
=
"0123456789ABCDEF"
local
i
local
uuid
=
""
local
j
#93995380-89BD-4b04-88EB-625FBE52EBFB
for
((
i
=
0
;
i<32
;
i++
))
;
do
((
j
=
$RANDOM
% 16
))
uuid
=
"
${
uuid
}${
hex
:
$j
:1
}
"
done
echo
"
${
uuid
:0:8
}
-
${
uuid
:8:4
}
-
${
uuid
:12:4
}
-
${
uuid
:16:4
}
-
${
uuid
:20:12
}
"
}
indent1
=
" "
indent
=
""
indent_push
()
{
indent
=
"
${
indent
}${
indent1
}
"
}
indent_pop
()
{
indent
=
"
${
indent
%
${
indent1
}}
"
}
tag_attributes
()
{
for
opt
in
"
$@
"
;
do
optval
=
"
${
opt
#*=
}
"
[
-n
"
${
optval
}
"
]
||
die
"Missing attribute value in '
$opt
' while generating
$tag
tag"
echo
"
${
indent
}${
opt
%%=*
}
=
\"
${
optval
}
\"
"
done
}
open_tag
()
{
local
tag
=
$1
shift
if
[
$#
-ne
0
]
;
then
echo
"
${
indent
}
<
${
tag
}
"
indent_push
tag_attributes
"
$@
"
echo
"
${
indent
}
>"
else
echo
"
${
indent
}
<
${
tag
}
>"
indent_push
fi
}
close_tag
()
{
local
tag
=
$1
indent_pop
echo
"
${
indent
}
</
${
tag
}
>"
}
tag
()
{
local
tag
=
$1
shift
if
[
$#
-ne
0
]
;
then
echo
"
${
indent
}
<
${
tag
}
"
indent_push
tag_attributes
"
$@
"
indent_pop
echo
"
${
indent
}
/>"
else
echo
"
${
indent
}
<
${
tag
}
/>"
fi
}
generate_filter
()
{
local
var
=
$1
local
name
=
$2
...
...
This diff is collapsed.
Click to expand it.
build/make/gen_msvs_vcxproj.sh
+
2
−
88
View file @
d2604af4
...
...
@@ -9,17 +9,11 @@
## be found in the AUTHORS file in the root of the source tree.
##
self
=
$0
self_basename
=
${
self
##*/
}
self_dirname
=
$(
dirname
"
$0
"
)
EOL
=
$'
\n
'
if
[
"
$(
uname
-o
2>/dev/null
)
"
=
"Cygwin"
]
\
&&
cygpath
--help
>
/dev/null 2>&1
;
then
FIXPATH
=
'cygpath -m'
else
FIXPATH
=
'echo'
fi
.
"
$self_dirname
/msvs_common.sh"
||
exit
127
show_help
()
{
cat
<<
EOF
...
...
@@ -50,86 +44,6 @@ EOF
exit
1
}
die
()
{
echo
"
${
self_basename
}
:
$@
"
>
&2
exit
1
}
die_unknown
(){
echo
"Unknown option
\"
$1
\"
."
>
&2
echo
"See
${
self_basename
}
--help for available options."
>
&2
exit
1
}
fix_path
()
{
$FIXPATH
"
$1
"
}
generate_uuid
()
{
local
hex
=
"0123456789ABCDEF"
local
i
local
uuid
=
""
local
j
#93995380-89BD-4b04-88EB-625FBE52EBFB
for
((
i
=
0
;
i<32
;
i++
))
;
do
((
j
=
$RANDOM
% 16
))
uuid
=
"
${
uuid
}${
hex
:
$j
:1
}
"
done
echo
"
${
uuid
:0:8
}
-
${
uuid
:8:4
}
-
${
uuid
:12:4
}
-
${
uuid
:16:4
}
-
${
uuid
:20:12
}
"
}
indent1
=
" "
indent
=
""
indent_push
()
{
indent
=
"
${
indent
}${
indent1
}
"
}
indent_pop
()
{
indent
=
"
${
indent
%
${
indent1
}}
"
}
tag_attributes
()
{
for
opt
in
"
$@
"
;
do
optval
=
"
${
opt
#*=
}
"
[
-n
"
${
optval
}
"
]
||
die
"Missing attribute value in '
$opt
' while generating
$tag
tag"
echo
"
${
indent
}${
opt
%%=*
}
=
\"
${
optval
}
\"
"
done
}
open_tag
()
{
local
tag
=
$1
shift
if
[
$#
-ne
0
]
;
then
echo
"
${
indent
}
<
${
tag
}
"
indent_push
tag_attributes
"
$@
"
echo
"
${
indent
}
>"
else
echo
"
${
indent
}
<
${
tag
}
>"
indent_push
fi
}
close_tag
()
{
local
tag
=
$1
indent_pop
echo
"
${
indent
}
</
${
tag
}
>"
}
tag
()
{
local
tag
=
$1
shift
if
[
$#
-ne
0
]
;
then
echo
"
${
indent
}
<
${
tag
}
"
indent_push
tag_attributes
"
$@
"
indent_pop
echo
"
${
indent
}
/>"
else
echo
"
${
indent
}
<
${
tag
}
/>"
fi
}
tag_content
()
{
local
tag
=
$1
local
content
=
$2
...
...
This diff is collapsed.
Click to expand it.
build/make/msvs_common.sh
0 → 100644
+
98
−
0
View file @
d2604af4
#!/bin/bash
##
## Copyright (c) 2014 The WebM project authors. All Rights Reserved.
##
## Use of this source code is governed by a BSD-style license
## that can be found in the LICENSE file in the root of the source
## tree. An additional intellectual property rights grant can be found
## in the file PATENTS. All contributing project authors may
## be found in the AUTHORS file in the root of the source tree.
##
if
[
"
$(
uname
-o
2>/dev/null
)
"
=
"Cygwin"
]
\
&&
cygpath
--help
>
/dev/null 2>&1
;
then
FIXPATH
=
'cygpath -m'
else
FIXPATH
=
'echo'
fi
die
()
{
echo
"
${
self_basename
}
:
$@
"
>
&2
exit
1
}
die_unknown
(){
echo
"Unknown option
\"
$1
\"
."
>
&2
echo
"See
${
self_basename
}
--help for available options."
>
&2
exit
1
}
fix_path
()
{
$FIXPATH
"
$1
"
}
generate_uuid
()
{
local
hex
=
"0123456789ABCDEF"
local
i
local
uuid
=
""
local
j
#93995380-89BD-4b04-88EB-625FBE52EBFB
for
((
i
=
0
;
i<32
;
i++
))
;
do
((
j
=
$RANDOM
% 16
))
uuid
=
"
${
uuid
}${
hex
:
$j
:1
}
"
done
echo
"
${
uuid
:0:8
}
-
${
uuid
:8:4
}
-
${
uuid
:12:4
}
-
${
uuid
:16:4
}
-
${
uuid
:20:12
}
"
}
indent1
=
" "
indent
=
""
indent_push
()
{
indent
=
"
${
indent
}${
indent1
}
"
}
indent_pop
()
{
indent
=
"
${
indent
%
${
indent1
}}
"
}
tag_attributes
()
{
for
opt
in
"
$@
"
;
do
optval
=
"
${
opt
#*=
}
"
[
-n
"
${
optval
}
"
]
||
die
"Missing attribute value in '
$opt
' while generating
$tag
tag"
echo
"
${
indent
}${
opt
%%=*
}
=
\"
${
optval
}
\"
"
done
}
open_tag
()
{
local
tag
=
$1
shift
if
[
$#
-ne
0
]
;
then
echo
"
${
indent
}
<
${
tag
}
"
indent_push
tag_attributes
"
$@
"
echo
"
${
indent
}
>"
else
echo
"
${
indent
}
<
${
tag
}
>"
indent_push
fi
}
close_tag
()
{
local
tag
=
$1
indent_pop
echo
"
${
indent
}
</
${
tag
}
>"
}
tag
()
{
local
tag
=
$1
shift
if
[
$#
-ne
0
]
;
then
echo
"
${
indent
}
<
${
tag
}
"
indent_push
tag_attributes
"
$@
"
indent_pop
echo
"
${
indent
}
/>"
else
echo
"
${
indent
}
<
${
tag
}
/>"
fi
}
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