support setting a cc_binary target as the thrift compiler

N/A

for example:

thrift_library_config(
    # The path to thrift compiler.
    thrift='//thirdparty/thrift:thrift',
)

Change-Id: I0c890144c2fd4416e931a46264a06e1c85fe150d
Signed-off-by: liuhuahang <liuhuahang@xiaomi.com>
code review follow up: support setting a cc_binary target as the thrift compiler

* remove the hard code library deps to thrift compiler
* thrift compiler target to the deps of thrift_library target

Change-Id: I4716484f09e99169dd5ba84175ff1dd728598f71
Signed-off-by: liuhuahang <liuhuahang@xiaomi.com>
Merge pull request #77 from huahang/master

support setting a cc_binary target as the thrift compiler