summaryrefslogtreecommitdiff
path: root/buildtools
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-03-27 18:14:06 +1100
committerAndrew Tridgell <tridge@samba.org>2010-04-06 20:27:10 +1000
commit1750bd4b363fecc9695ed20e707e786cae7e60c4 (patch)
tree68b0e3de4a8fb1a46eb6b3ac2f87d1876df07f6c /buildtools
parent052a0e0a02224db6ebacabbc1324dcf903b00c39 (diff)
downloadsamba-1750bd4b363fecc9695ed20e707e786cae7e60c4.tar.gz
samba-1750bd4b363fecc9695ed20e707e786cae7e60c4.tar.bz2
samba-1750bd4b363fecc9695ed20e707e786cae7e60c4.zip
build: added support for pc_files= for pkgconfig files
Diffstat (limited to 'buildtools')
-rw-r--r--buildtools/wafsamba/wafsamba.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/buildtools/wafsamba/wafsamba.py b/buildtools/wafsamba/wafsamba.py
index 1dc71b4fae..03be97f299 100644
--- a/buildtools/wafsamba/wafsamba.py
+++ b/buildtools/wafsamba/wafsamba.py
@@ -68,6 +68,7 @@ def SAMBA_LIBRARY(bld, libname, source,
includes='',
public_headers=None,
header_path=None,
+ pc_files=None,
vnum=None,
cflags='',
external_library=False,
@@ -189,6 +190,9 @@ def SAMBA_LIBRARY(bld, libname, source,
if public_headers is not None:
bld.PUBLIC_HEADERS(public_headers, header_path=header_path)
+ if pc_files is not None:
+ bld.PKG_CONFIG_FILES(pc_files)
+
Build.BuildContext.SAMBA_LIBRARY = SAMBA_LIBRARY
@@ -690,3 +694,12 @@ def PUBLIC_HEADERS(bld, public_headers, header_path=None):
INSTALL_FILES(bld, hdest, h, flat=True)
Build.BuildContext.PUBLIC_HEADERS = PUBLIC_HEADERS
+
+def PKG_CONFIG_FILES(bld, pc_files):
+ '''install some pkg_config pc files'''
+ # TODO: replace the @VAR@ variables
+ dest = '${PKGCONFIGDIR}'
+ dest = bld.EXPAND_VARIABLES(dest)
+ for f in TO_LIST(pc_files):
+ INSTALL_FILES(bld, dest, f+'.in', flat=True, destname=f)
+Build.BuildContext.PKG_CONFIG_FILES = PKG_CONFIG_FILES