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

Commit 3466c6d1 authored by Marie Janssen's avatar Marie Janssen
Browse files

build: Build net_test_btcore using GN + ninja

Changes needed:
 - add gtest dependency
 - add includes to allow build on Goobuntu Trusty

Bug: 21444625
Change-Id: Ic2495258681c6b93de8d4ddb5dfff2c24248b979
parent c7580ebc
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -32,6 +32,7 @@ source_set("btcore") {
}

executable("net_test_btcore") {
  testonly = true
  sources = [
    "test/bdaddr_test.cpp",
    "test/counter_test.cpp",
@@ -49,6 +50,7 @@ executable("net_test_btcore") {
  deps = [
    "//btcore",
    "//osi",
    "//testing/gtest:gtest_main",
  ]

  libs = [ "-lpthread", "-lrt", "-ldl" ]
+2 −0
Original line number Diff line number Diff line
@@ -21,6 +21,8 @@
#include <assert.h>
#include <errno.h>
#include <fcntl.h>
#include <pthread.h>
#include <stdarg.h>
#include <string.h>
#include <sys/eventfd.h>