~vojtech-horky/helenos/waf

« back to all changes in this revision

Viewing changes to tools/waf/config.py

  • Committer: Vojtech Horky
  • Date: 2012-08-29 11:09:29 UTC
  • Revision ID: vojtechhorky@users.sourceforge.net-20120829110929-3bpjtowjhbvinec5
Refactor common code into function

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
        uspace_entry_point_objfile_node = None
12
12
        config = {}
13
13
 
 
14
def helenos_select_by_config(options_and_values):
 
15
        result = []
 
16
        for cond, values in options_and_values.items():
 
17
                result += helenos_config_choose(cond, values, [])
 
18
        
 
19
        return result
 
20
 
14
21
def helenos_config_choose(conditions, ret_when_true, ret_when_false = []):
15
22
        final_result = True
16
23