~ubuntu-branches/ubuntu/quantal/ns3/quantal

« back to all changes in this revision

Viewing changes to debian/waf-1.5.19/TODO

  • Committer: Package Import Robot
  • Author(s): YunQiang Su, Aron Xu, YunQiang Su, Upstream
  • Date: 2012-01-06 00:35:42 UTC
  • mfrom: (10.1.5 sid)
  • Revision ID: package-import@ubuntu.com-20120106003542-vcn5g03mhapm991h
Tags: 3.13+dfsg-1
[ Aron Xu ]:
        add tag binary and binary-indep, 
  for not build doc when --binary-arch (Closes: #654493).
[ YunQiang Su ]
        add waf 1.5/1.6 source to debian directory, 
  and build waf from there (Closes: #642217).
[ Upstream ]
  Successfully link with --as-needed option (Closes: #642225).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
Waf 1.5
2
 
-------
3
 
 
4
 
remove the call to perl for editing the files in "waf --make-waf"
5
 
 
6
 
docs:
7
 
 
8
 
 
9
 
- the different levels of coupling
10
 
 
11
 
task generator -> task generator (--targets)
12
 
task -> other task (build order)
13
 
task -> other task (mere existence)
14
 
 
15
 
 
16
 
 
17
 
# enforce the after= ordering constraints in the javac task generators
18
 
from TaskGen import after, feature
19
 
@feature('*')
20
 
@after('apply_core', 'apply_java', 'apply_subst')
21
 
def process_after(self):
22
 
        lst = self.to_list(getattr(self, 'after', []))
23
 
        print(self.name)
24
 
        for x in lst:
25
 
                obj = self.bld.name_to_obj(x,self.bld.env)
26
 
                if not obj: break
27
 
                obj.post()
28
 
                for a in obj.tasks:
29
 
                        for b in self.tasks:
30
 
                                b.set_run_after(a)
31
 
 
32
 
 
33
 
 
34
 
 
35
 
 
36
 
import Node, Environment
37
 
 
38
 
def vari(self):
39
 
        return "default"
40
 
Environment.Environment.variant = vari
41
 
 
42
 
def variant(self, env):
43
 
        if not env: return 0
44
 
        elif self.id & 3 == Node.FILE: return 0
45
 
        else: return "default"
46
 
Node.Node.variant = variant
47
 
 
48
 
 
49
 
import TaskGen, Task
50
 
 
51
 
def create_task(self, name, src=None, tgt=None):
52
 
    task = Task.TaskBase.classes[name](self.env, generator=self)
53
 
    if src:
54
 
        task.set_inputs(src)
55
 
    if tgt:
56
 
        task.set_outputs(tgt)
57
 
    return task
58
 
TaskGen.task_gen.create_task = create_task
59
 
 
60
 
def hash_constraints(self):
61
 
        a = self.attr
62
 
        sum = hash((str(a('before', '')),
63
 
            str(a('after', '')),
64
 
            str(a('ext_in', '')),
65
 
            str(a('ext_out', '')),
66
 
            self.__class__.maxjobs))
67
 
        return sum
68
 
Task.TaskBase.hash_constraints = hash_constraints
69
 
 
70
 
 
71
 
 
72
 
 
73
 
--------------------------------------
74
 
Last update: 19/03/2010
75
 
Contact -> http://code.google.com/p/waf
76