Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 019ce6f5 authored by Sonny Sasaka's avatar Sonny Sasaka Committed by Hansong Zhang
Browse files

Add gn builds for main/shim

This adds GN builds for main/shim, along the way adding some fixes:
* Add message_loop_thread_bridge_header to use Rust's message loop
* Add some missing includes
* Build files for dumpsys
* Add gd/hci gn build

Bug: 176847216
Tag: #refactor
Test: atest --host bluetooth_test_common

Change-Id: Ide1edbb70076c4dcc4a4e6ee41303a9e315d52af
parent a4cf58db
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -90,6 +90,7 @@ config("target_defaults") {
    "-Wno-unused-result",
    "-Wno-unused-variable",
    "-Wno-unused-const-variable",
    "-Wno-format",
  ]

  cflags_cc = [
+2 −0
Original line number Diff line number Diff line
@@ -117,7 +117,9 @@ static_library("bta") {
  ]

  deps = [
    "//bt/gd/rust/shim:hci_bridge_header",
    "//bt/gd/rust/shim:init_flags_bridge_header",
    "//bt/gd/rust/shim:message_loop_thread_bridge_header",
  ]
}

+1 −0
Original line number Diff line number Diff line
@@ -34,6 +34,7 @@ static_library("btcore") {

  deps = [
    "//bt/gd/rust/shim:init_flags_bridge_header",
    "//bt/gd/rust/shim:message_loop_thread_bridge_header",
  ]
}

+1 −0
Original line number Diff line number Diff line
@@ -44,6 +44,7 @@
#include "btif_storage.h"
#include "btif_util.h"
#include "osi/include/allocator.h"
#include "osi/include/compat.h"

#define BTIF_HD_APP_NAME_LEN 50
#define BTIF_HD_APP_DESCRIPTION_LEN 50
+1 −0
Original line number Diff line number Diff line
@@ -35,6 +35,7 @@ static_library("device") {

  deps = [
    "//bt/gd/rust/shim:init_flags_bridge_header",
    "//bt/gd/rust/shim:message_loop_thread_bridge_header",
  ]
}

Loading