forked from zoltan-ongithub/FFmpeg
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: Generate pkg-config files from Make and not from configure
This moves work from the configure to the Make stage where it can be parallelized and ensures that pkgconfig files are updated when library versions change. Bug-Id: 449
- Loading branch information
Showing
12 changed files
with
86 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ | |
/config.fate | ||
/config.log | ||
/config.mak | ||
/config.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
#!/bin/sh | ||
|
||
. avbuild/config.sh | ||
|
||
if test "$shared" = "yes"; then | ||
shared=true | ||
else | ||
shared=false | ||
fi | ||
|
||
shortname=$1 | ||
name=lib${shortname} | ||
comment=$2 | ||
libs=$(eval echo \$extralibs_${shortname}) | ||
requires=$(eval echo \$requires_${shortname}) | ||
requires=${requires%, } | ||
|
||
version=$(grep ${name}_VERSION= $name/${name}.version | cut -d= -f2) | ||
|
||
cat <<EOF > $name/$name.pc | ||
prefix=$prefix | ||
exec_prefix=\${prefix} | ||
libdir=$libdir | ||
includedir=$incdir | ||
Name: $name | ||
Description: $comment | ||
Version: $version | ||
Requires: $($shared || echo $requires) | ||
Requires.private: $($shared && echo $requires) | ||
Conflicts: | ||
Libs: -L\${libdir} -l${shortname} $($shared || echo $libs) | ||
Libs.private: $($shared && echo $libs) | ||
Cflags: -I\${includedir} | ||
EOF | ||
|
||
cat <<EOF > $name/$name-uninstalled.pc | ||
prefix= | ||
exec_prefix= | ||
libdir=\${pcfiledir} | ||
includedir=${source_path} | ||
Name: $name | ||
Description: $comment | ||
Version: $version | ||
Requires: $requires | ||
Conflicts: | ||
Libs: \${libdir}/${LIBPREF}${shortname}${LIBSUF} $libs | ||
Cflags: -I\${includedir} | ||
EOF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
NAME = avcodec | ||
DESC = Libav codec library | ||
|
||
HEADERS = avcodec.h \ | ||
avfft.h \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
NAME = avdevice | ||
DESC = Libav device handling library | ||
|
||
HEADERS = avdevice.h \ | ||
version.h \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
NAME = avfilter | ||
DESC = Libav video filtering library | ||
|
||
HEADERS = avfilter.h \ | ||
avfiltergraph.h \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
NAME = avformat | ||
DESC = Libav container format library | ||
|
||
HEADERS = avformat.h \ | ||
avio.h \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
NAME = avresample | ||
DESC = Libav audio resampling library | ||
|
||
HEADERS = avresample.h \ | ||
version.h \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
NAME = avutil | ||
DESC = Libav utility library | ||
|
||
HEADERS = adler32.h \ | ||
aes.h \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
NAME = swscale | ||
DESC = Libav image rescaling library | ||
|
||
HEADERS = swscale.h \ | ||
version.h \ | ||
|