From 8440506ee8945ad57f5e20e9962084d67808eb22 Mon Sep 17 00:00:00 2001 From: Chris Johns Date: Mon, 15 Jun 2015 17:42:23 +1000 Subject: Add tcpdump and libpcap. - Update the file builder generator to handle generator specific cflags and includes. The tcpdump and libpcap have localised headers and need specific headers paths to see them. There are also module specific flags and these need to be passed to the lex and yacc generators. - Add the tcpdump support. --- builder.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'builder.py') diff --git a/builder.py b/builder.py index 3a0da7a1..8059475c 100755 --- a/builder.py +++ b/builder.py @@ -88,6 +88,7 @@ def includes(): '-Ifreebsd/lib/libkvm', '-Ifreebsd/lib/libmemstat', '-Ifreebsd/lib/libipsec', + '-Ifreebsd/contrib/libpcap', '-Irtemsbsd/sys', '-ImDNSResponder/mDNSCore', '-ImDNSResponder/mDNSShared', @@ -302,6 +303,12 @@ class TargetSourceCPUDependentPathComposer(CPUDependentPathComposer): return path class BuildSystemFragmentComposer(object): + def __init__(self, includes = None): + if type(includes) is not list: + self.includes = [includes] + else: + self.includes = includes + def compose(self, path): return '' -- cgit v1.2.3