mirror of
https://gitlab.com/ita1024/waf.git
synced 2024-11-21 17:35:55 +01:00
docs
This commit is contained in:
parent
8bea637dc7
commit
0454ee677e
8
TODO
8
TODO
@ -3,3 +3,11 @@ Waf 1.9
|
||||
|
||||
Documentation
|
||||
|
||||
Waf 2.0
|
||||
-------
|
||||
|
||||
Merge mem_reducer.py in the mainline
|
||||
Keep sorted lists in TaskGen.prec[]
|
||||
Improve the sorting in TaskGen.post()
|
||||
Default to force files into the build directory
|
||||
|
||||
|
27
waflib/extras/force_build_directory.py
Normal file
27
waflib/extras/force_build_directory.py
Normal file
@ -0,0 +1,27 @@
|
||||
#!/usr/bin/env python
|
||||
# coding=utf-8
|
||||
# Thomas Nagy, 2016
|
||||
|
||||
"""
|
||||
Force all build files to go to the build directory:
|
||||
|
||||
def options(opt):
|
||||
opt.load('force_build_directory')
|
||||
|
||||
"""
|
||||
|
||||
from waflib import Node, Utils
|
||||
|
||||
def find_or_declare(self, lst):
|
||||
if isinstance(lst, str):
|
||||
lst = [x for x in Utils.split_path(lst) if x and x != '.']
|
||||
|
||||
node = self.get_bld().search_node(lst)
|
||||
if node:
|
||||
if not os.path.isfile(node.abspath()):
|
||||
node.parent.mkdir()
|
||||
return node
|
||||
node = self.get_bld().make_node(lst)
|
||||
node.parent.mkdir()
|
||||
return node
|
||||
Node.Node.find_or_declare = find_or_declare
|
Loading…
Reference in New Issue
Block a user