don't build tap-bridge-helper or tap-wifi-dumbbell if tap-bride not enabled

This commit is contained in:
Craig Dowell
2009-02-06 14:28:49 -08:00
parent ad3221728e
commit d19854afef
2 changed files with 11 additions and 6 deletions

View File

@@ -21,7 +21,6 @@ def build(bld):
'ipv4-interface-container.cc',
'udp-echo-helper.cc',
'bridge-helper.cc',
'tap-bridge-helper.cc',
'yans-wifi-helper.cc',
'v4ping-helper.cc',
]
@@ -47,7 +46,6 @@ def build(bld):
'ipv4-interface-container.h',
'udp-echo-helper.h',
'bridge-helper.h',
'tap-bridge-helper.h',
'yans-wifi-helper.h',
'v4ping-helper.h',
]
@@ -60,4 +58,11 @@ def build(bld):
headers.source.extend([
'emu-helper.h',
])
if env['ENABLE_TAP']:
helper.source.extend([
'tap-bridge-helper.cc',
])
headers.source.extend([
'tap-bridge-helper.h',
])