mirror of
https://gitlab.com/ita1024/waf.git
synced 2024-11-22 01:46:15 +01:00
docs
This commit is contained in:
parent
381337357e
commit
5bf2132211
6
DEVEL
6
DEVEL
@ -1,4 +1,4 @@
|
||||
Waf 1.8 is on https://github.com/waf-project/waf
|
||||
Waf 1.9 is on https://github.com/waf-project/waf
|
||||
------------------------------------------------
|
||||
|
||||
waflib the core library
|
||||
@ -22,7 +22,7 @@ Coding guidelines
|
||||
-----------------
|
||||
|
||||
* We use tabs, no spaces
|
||||
* Do not use x.split("\n") but x.splitlines()
|
||||
* Do not catch all exceptions unless you have a good reason to do so (no "except:")
|
||||
* Use x.splitlines() instead of x.split('\n')
|
||||
* No "except:" and and no "except Exception:" unless there is a very good reason
|
||||
* File handles are too easy to get wrong, use Node.readf/Node.writef/Utils.readf/Utils.writef
|
||||
|
||||
|
@ -170,10 +170,10 @@ The attributes _before_ and _after_ are used to declare ordering constraints bet
|
||||
|
||||
[source,python]
|
||||
---------------
|
||||
from waflib.Task import TaskBase
|
||||
class task_test_a(TaskBase):
|
||||
from waflib.Task import Task
|
||||
class task_test_a(Task):
|
||||
before = ['task_test_b']
|
||||
class task_test_b(TaskBase):
|
||||
class task_test_b(Task):
|
||||
after = ['task_test_a']
|
||||
---------------
|
||||
|
||||
@ -183,10 +183,10 @@ Another way to force the order is by declaring lists of abstract symbols on the
|
||||
|
||||
[source,python]
|
||||
---------------
|
||||
from waflib.Task import TaskBase
|
||||
class task_test_a(TaskBase):
|
||||
from waflib.Task import Task
|
||||
class task_test_a(Task):
|
||||
ext_in = ['.h']
|
||||
class task_test_b(TaskBase):
|
||||
class task_test_b(Task):
|
||||
ext_out = ['.h']
|
||||
---------------
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user