From ccbb77693cec4e612d839b2dca92f97aa05f342e Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 29 Oct 2010 11:52:25 +1100 Subject: waf: separate out get_tgt_list() this is a useful function for the new symbols code, so separate it out of samba_deps.py Pair-Programmed-With: Andrew Bartlett --- buildtools/wafsamba/samba_deps.py | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'buildtools/wafsamba/samba_deps.py') diff --git a/buildtools/wafsamba/samba_deps.py b/buildtools/wafsamba/samba_deps.py index bbd945210b..3bcf8fd92e 100644 --- a/buildtools/wafsamba/samba_deps.py +++ b/buildtools/wafsamba/samba_deps.py @@ -1077,21 +1077,10 @@ def load_samba_deps(bld, tgt_list): def check_project_rules(bld): '''check the project rules - ensuring the targets are sane''' - targets = LOCAL_CACHE(bld, 'TARGET_TYPE') loops = {} inc_loops = {} - # build a list of task generators we are interested in - tgt_list = [] - for tgt in targets: - type = targets[tgt] - if not type in ['SUBSYSTEM', 'MODULE', 'BINARY', 'LIBRARY', 'ASN1', 'PYTHON']: - continue - t = bld.name_to_obj(tgt, bld.env) - if t is None: - Logs.error("Target %s of type %s has no task generator" % (tgt, type)) - sys.exit(1) - tgt_list.append(t) + tgt_list = get_tgt_list(bld) add_samba_attributes(bld, tgt_list) -- cgit