gn-build: Add bluetooth-service target
This patch makes the Bluetooth system service (service/) buildable using GN: 1. Added new BUILD.gn file for service/ 2. Added conditional compilation for global config paths, with TODOs for generalizing them later. 3. Added a shim for loading the Bluetooth library that calls hw_get_module on Android and explicitly calls dlopen on OS_GENERIC. 4. Fixed compile warnings and errors. 5. Did some minor clean up in gatt_server.cpp for better readability. Bug: 22124644 Change-Id: I3226537a3a5211a6762651a35707638df29956b0
Showing
- BUILD.gn 3 additions, 0 deletionsBUILD.gn
- system/btcore/Android.mk 1 addition, 0 deletionssystem/btcore/Android.mk
- system/btcore/BUILD.gn 1 addition, 0 deletionssystem/btcore/BUILD.gn
- system/btcore/include/hal_util.h 24 additions, 0 deletionssystem/btcore/include/hal_util.h
- system/btcore/src/hal_util.c 92 additions, 0 deletionssystem/btcore/src/hal_util.c
- system/btif/src/btif_config.c 5 additions, 0 deletionssystem/btif/src/btif_config.c
- system/btif/src/btif_core.c 6 additions, 1 deletionsystem/btif/src/btif_core.c
- system/btif/src/btif_storage.c 7 additions, 1 deletionsystem/btif/src/btif_storage.c
- system/build/secondary/third_party/libchrome/BUILD.gn 1 addition, 1 deletionsystem/build/secondary/third_party/libchrome/BUILD.gn
- system/main/BUILD.gn 1 addition, 1 deletionsystem/main/BUILD.gn
- system/main/bte_main.c 6 additions, 1 deletionsystem/main/bte_main.c
- system/main/stack_config.c 5 additions, 0 deletionssystem/main/stack_config.c
- system/osi/BUILD.gn 2 additions, 0 deletionssystem/osi/BUILD.gn
- system/service/Android.mk 2 additions, 1 deletionsystem/service/Android.mk
- system/service/BUILD.gn 40 additions, 0 deletionssystem/service/BUILD.gn
- system/service/a2dp_source.cpp 2 additions, 2 deletionssystem/service/a2dp_source.cpp
- system/service/core_stack.cpp 12 additions, 5 deletionssystem/service/core_stack.cpp
- system/service/gatt_server.cpp 130 additions, 81 deletionssystem/service/gatt_server.cpp
- system/service/gatt_server.h 4 additions, 1 deletionsystem/service/gatt_server.h
- system/service/host.cpp 7 additions, 7 deletionssystem/service/host.cpp
Loading
Please register or sign in to comment