OSDN Git Service

gn-build: Get btif to compile as its own module
authorArman Uguray <armansito@google.com>
Fri, 29 May 2015 22:27:58 +0000 (15:27 -0700)
committerMiao Chou <mcchou@google.com>
Mon, 1 Jun 2015 23:56:33 +0000 (16:56 -0700)
commitd30195cbf09735da593e186c4c99cce6232b072e
treeec6827f73402131b2b3df6b7002f48add59f140e
parent17cd127445af1bd8a89bb1ea419e415392f1eee3
gn-build: Get btif to compile as its own module

This CL adds support to build //btif:btif as its own target as a static library
by introducing a new module-level BUILD.gn file, adding missing includes, and
conditionally compiling code that is Android-specific (depends on libcutils).
This removes/breaks some functionality on non-Android builds since the
corresponding features are missing until we have a more unified replacement.

BUG=21339022

Change-Id: Ibb0372da45f256c55fa894fdda3d70319ea008c9
13 files changed:
btif/BUILD.gn [new file with mode: 0644]
btif/co/bta_ag_co.c
btif/src/btif_config.c
btif/src/btif_core.c
btif/src/btif_dm.c
btif/src/btif_hf.c
btif/src/btif_hf_client.c
btif/src/btif_hh.c
btif/src/btif_pan.c
btif/src/btif_rc.c
btif/src/btif_sock_rfc.c
btif/src/btif_sock_sco.c
btif/src/btif_sock_util.c