commit | 50d0366ecb536d56e3aacf23faeb3ff80ea9dc7e | [log] [tgz] |
---|---|---|
author | Carbo Kuo <carbokuo@fb.com> | Wed Aug 28 07:26:39 2013 -0700 |
committer | Michael Bolin <mbolin@fb.com> | Thu Sep 19 14:58:51 2013 -0700 |
tree | bb9e3c0fc758eb484742c19bfcfd36204d6454df | |
parent | bb6f873c9ff3f75b086b3abc9c3a559264dc8219 [diff] |
Add platform-specific command parameters to genrule. Summary: Add 2 parameters `win` and `sh` to `genrule` and make `cmd` optional, in which `win` is Windows-specific and `sh` is non-windows specific command. `cmd` is platform independent and has a lower priority if the platform-specific command is given. The priority sequence is (on Windows): "cmd.exe /c [cmd_exe]" "cmd.exe /c [cmd]" On non-windows os: "/bin/bash -c [bash]" "/bin/bash -c [cmd]" This would provide backward compatibility. Test Plan: Unit tests.
Buck is an Android build tool. To see what Buck can do for you, check out the documentation at http://facebook.github.io/buck/.
To build Buck, run the following:
git clone git@github.com:facebook/buck.git cd buck ant ./bin/buck --help
Apache License 2.0