Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
112971af
Commit
112971af
authored
Jul 02, 2012
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
configure: simplify get_version()
All libs have version headers now, which allows hardcoding the path.
parent
86ab7b0f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
configure
configure
+10
-10
No files found.
configure
View file @
112971af
...
...
@@ -3368,22 +3368,22 @@ SAMPLES:=${samples:-\$(LIBAV_SAMPLES)}
EOF
get_version
(){
name
=
$1
file
=
$source_path
/
$2
lcname
=
$1
name
=
$(
toupper
$lcname
)
file
=
$source_path
/
$lcname
/version.h
eval
$(
grep
"#define
${
name
}
_VERSION_M"
"
$file
"
|
awk
'{ print $2"="$3 }'
)
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_MAJOR=
\$
${
name
}
_VERSION_MAJOR"
>>
config.mak
}
get_version
LIBAVCODEC libavcodec/version.h
get_version
LIBAVDEVICE libavdevice/version.h
get_version
LIBAVFILTER libavfilter/version.h
get_version
LIBAVFORMAT libavformat/version.h
get_version
LIBAVRESAMPLE libavresample/version.h
get_version
LIBAVUTIL libavutil/version.h
get_version
LIBSWSCALE libswscale/version.h
get_version
libavcodec
get_version
libavdevice
get_version
libavfilter
get_version
libavformat
get_version
libavresample
get_version
libavutil
get_version
libswscale
cat
>
$TMPH
<<
EOF
/* Automatically generated by configure - do not modify! */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment