waf: allow cross-execute program to have arguments with spaces
authorUri Simchoni <urisimchoni@gmail.com>
Tue, 19 May 2015 08:09:55 +0000 (11:09 +0300)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 20 May 2015 09:19:11 +0000 (11:19 +0200)
commit56114bb6778a3515cf8da34a1413b86fe1f904ca
tree66352d901b4756e46a669b7c290feccff106d2ed
parentc244e7dc09e9c98f678cbe716fe2e640de0bd4c0
waf: allow cross-execute program to have arguments with spaces

When cross-compiling samba using the cross-execute method,
allow the cross-excute command to have arguments that contain
spaces by quoting them.

For example:

./configure --cross-compile '--cross-execute=ce-program "par am"'

In this case, for each cross test whose binary is /path/testprog,
waf shall run the equivalent of running from a shell:
ce-program "par am" /path/testprog

This is useful for passing an arbitrary argument list to a subprocess
of the cross-execute program, such as in buildtools/examples/run_on_target.py

Signed-off-by: Uri Simchoni <urisimchoni@gmail.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Alexander Bokovoy <ab@samba.org>
buildtools/wafsamba/samba_cross.py