Gustavo Jose de Sousa
2f324c056f
waf: cmake: live output!
...
Waf buffers command output and spit it after the command is done. For external
builds, that might give the wrong impression that the build stalled.
2016-03-14 11:54:30 -03:00
Gustavo Jose de Sousa
1f60e9e3e8
waf: cmake: refactor methods to accept cmake_config parameter
...
That makes methods more flexible for use.
2016-03-14 11:54:30 -03:00
Gustavo Jose de Sousa
b0e7fe26d5
waf: cmake: fix target processing for cmake_build
...
Accept passing a single Node object to target option.
2016-03-14 11:54:30 -03:00
Gustavo Jose de Sousa
07700a821c
waf: cmake: add method get_cmake_bldnode()
...
That allows a user to have access to the cmake build node before the configure
task generator is posted.
2016-03-14 11:54:30 -03:00
Gustavo Jose de Sousa
b077613f28
waf: cmake: use BLUE color for cmake tasks
2016-03-14 11:54:30 -03:00
Gustavo Jose de Sousa
03146c5d15
waf: cmake: move cmake build task creation to a function
...
That enables other tools to create the task directly.
2016-03-14 11:54:30 -03:00
Gustavo Jose de Sousa
049abec55b
waf: cmake: add keyword parameter cmake_output_patterns
2016-03-14 11:54:30 -03:00
Gustavo Jose de Sousa
4f82120c8f
waf: cmake: improve documentation regarding target option
...
That feature can also be used within wscripts with no problem. The code added
in the example shows that.
2016-03-14 11:54:29 -03:00
Gustavo Jose de Sousa
1233022c78
waf: cmake: synchronize cmake build tasks of same configuration
...
Running cmake build tasks of the same configuration in parallel my cause race
condition.
2016-02-27 03:15:45 -03:00
Gustavo Jose de Sousa
181b6f5c2e
waf: cmake: do a clean configuration
...
We need to remove CMakeCache.txt, otherwise cached variables would remain the
old value when they are removed from cmake_vars parameter.
We use `os.remove()` instead of `Node.delete()` because the latter removes the
node instance from its parent's children list. That makes the node be ignored
when storing persistent information after the build, thus the node signature
wouldn't be saved with that approach, which would make waf always think that
the task should be executed.
2016-02-22 15:36:48 -03:00
Gustavo Jose de Sousa
eacf9d8a0e
waf: cmake: declare CMAKE_BLD_DIR as a value dependency
...
Since we set that value to the task's cwd property, we need to declare it as a
value dependency of cmake_configure_task.
2016-02-22 15:36:48 -03:00
Gustavo Jose de Sousa
6c914349d0
waf: cmake: define proper uid() functions
...
The default implementation takes into account the task's output and input
nodes. That isn't very well applicable for cmake tasks, so we define proper
uid() methods.
2016-02-22 15:36:48 -03:00
Gustavo Jose de Sousa
b5f20459e7
waf: cmake: set CMakeCache.txt as output of cmake_configure task
...
That provides the behavior we implemented in runnable_status(). Thus, we don't
have to override that method anymore.
2016-02-22 15:36:48 -03:00
Gustavo Jose de Sousa
ed288ed345
waf: cmake: ensure order of cmake_vars
...
We need to ensure the order in which the variables are defined to avoid
unnecessary execution of the configuration task.
2016-02-22 15:36:48 -03:00
Gustavo Jose de Sousa
e883242c31
waf: cmake: add Waf tool
2016-02-22 15:36:48 -03:00