Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FFmpeg
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
Service Desk
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
libremedia
Tethys
FFmpeg
Commits
112971af
Commit
112971af
authored
12 years ago
by
Diego Biurrun
Browse files
Options
Downloads
Patches
Plain Diff
configure: simplify get_version()
All libs have version headers now, which allows hardcoding the path.
parent
86ab7b0f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
configure
+10
-10
10 additions, 10 deletions
configure
with
10 additions
and
10 deletions
configure
+
10
−
10
View file @
112971af
...
@@ -3368,22 +3368,22 @@ SAMPLES:=${samples:-\$(LIBAV_SAMPLES)}
...
@@ -3368,22 +3368,22 @@ SAMPLES:=${samples:-\$(LIBAV_SAMPLES)}
EOF
EOF
get_version
(){
get_version
(){
name
=
$1
lcname
=
$1
file
=
$source_path
/
$2
name
=
$(
toupper
$lcname
)
file
=
$source_path
/
$lcname
/version.h
eval
$(
grep
"#define
${
name
}
_VERSION_M"
"
$file
"
|
awk
'{ print $2"="$3 }'
)
eval
$(
grep
"#define
${
name
}
_VERSION_M"
"
$file
"
|
awk
'{ print $2"="$3 }'
)
eval
${
name
}
_VERSION
=
\$
${
name
}
_VERSION_MAJOR.
\$
${
name
}
_VERSION_MINOR.
\$
${
name
}
_VERSION_MICRO
eval
${
name
}
_VERSION
=
\$
${
name
}
_VERSION_MAJOR.
\$
${
name
}
_VERSION_MINOR.
\$
${
name
}
_VERSION_MICRO
lcname
=
$(
tolower
$name
)
eval echo
"
${
lcname
}
_VERSION=
\$
${
name
}
_VERSION"
>>
config.mak
eval echo
"
${
lcname
}
_VERSION=
\$
${
name
}
_VERSION"
>>
config.mak
eval echo
"
${
lcname
}
_VERSION_MAJOR=
\$
${
name
}
_VERSION_MAJOR"
>>
config.mak
eval echo
"
${
lcname
}
_VERSION_MAJOR=
\$
${
name
}
_VERSION_MAJOR"
>>
config.mak
}
}
get_version
LIBAVCODEC libavcodec/version.h
get_version
libavcodec
get_version
LIBAVDEVICE
libavdevice
/version.h
get_version libavdevice
get_version
LIBAVFILTER
libavfilter
/version.h
get_version libavfilter
get_version
LIBAVFORMAT
libavformat
/version.h
get_version libavformat
get_version
LIBAVRESAMPLE
libavresample
/version.h
get_version libavresample
get_version
LIBAVUTIL libavutil/version.h
get_version
libavutil
get_version
LIBSWSCALE libswscale/version.h
get_version
libswscale
cat
>
$TMPH
<<
EOF
cat
>
$TMPH
<<
EOF
/* Automatically generated by configure - do not modify! */
/* Automatically generated by configure - do not modify! */
...
...
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