summaryrefslogtreecommitdiff
path: root/BUILD.gn
diff options
context:
space:
mode:
author Abhishek Pandit-Subedi <abhishekpandit@google.com> 2021-04-10 00:41:07 +0000
committer Abhishek Pandit-Subedi <abhishekpandit@google.com> 2021-04-23 18:34:02 +0000
commitd801b120b2c8027ca67b86c60408719d40849c09 (patch)
treef6a8621234e82c7aeea3bed918b628fb59bbf15c /BUILD.gn
parent800130a4eaa47af9c600a05fb541478e01f018e2 (diff)
Additional changes for Linux build
While building for Linux on cloudtop, a few more problems were identified in the build. There were a couple of missing #include and some incomplete struct definitions in btm_int_types.h. Also put statslog.h behind an #ifdef OS_ANDROID. Bug: 184975659 Tag: #floss Test: atest --host bluetooth_test_gd Change-Id: Ic2272a3acfa66259e692db280b48b4ddadff2171
Diffstat (limited to 'BUILD.gn')
-rw-r--r--BUILD.gn6
1 files changed, 4 insertions, 2 deletions
diff --git a/BUILD.gn b/BUILD.gn
index 109bf7167c..9d2f4c7adc 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -104,7 +104,9 @@ config("target_defaults") {
"-Wno-final-dtor-non-final-class",
]
- cflags_cc = [ "-std=c++17" ]
+ cflags_cc = [
+ "-std=c++17",
+ ]
defines = [
"HAS_NO_BDROID_BUILDCFG",
@@ -116,7 +118,7 @@ config("target_defaults") {
# If not configured as a dynamic library, default to static library
if (!(defined(use.bt_dynlib) && use.bt_dynlib)) {
- defines = [
+ defines += [
"STATIC_LIBBLUETOOTH",
]
}