Merge pull request #1951 from tonytheodore/pc-template

tools/skeleton.py: update pkg-config template
This commit is contained in:
Tony Theodore 2017-10-30 15:15:10 +11:00 committed by GitHub
commit a0360915ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 3 deletions

View File

@ -84,12 +84,14 @@ BUILDERS = {
}
PC_AND_TEST = r'''
# create pkg-config files
# create pkg-config file
$(INSTALL) -d '$(PREFIX)/$(TARGET)/lib/pkgconfig'
(echo 'Name: $(PKG)'; \
echo 'Version: $($(PKG)_VERSION)'; \
echo 'Description: %(description)s'; \
echo 'Libs: -l%(libname)s';) \
echo 'Description: $($(PKG)_DESCR)'; \
echo 'Requires:'; \
echo 'Libs: -l%(libname)s'; \
echo 'Cflags.private:';) \
> '$(PREFIX)/$(TARGET)/lib/pkgconfig/$(PKG).pc'
# compile test