diff options
author | Abhishek Pandit-Subedi <abhishekpandit@google.com> | 2021-01-08 19:53:23 -0800 |
---|---|---|
committer | Abhishek Pandit-Subedi <abhishekpandit@google.com> | 2021-02-01 22:58:03 +0000 |
commit | c86d26f3548b9ec3fc25495c09b4905387431ae6 (patch) | |
tree | 535841c5db8e49088c53ea173e878f1ddfee73a1 /system/include/array_utils.h | |
parent | d4d9f0617bf1b8ffd8abdb779bc3f46e7589282b (diff) |
Fix up files to compile on Linux
Fix up all the .gn files so that they will compile on Linux. In order to
compile with GN, there is a new dependency on common-mk (currently part
of chromiumos/platform2) and most third-party libraries now use
pkg-config to include and link. As a result, all build paths are
prefixed with //bt now.
In addition, also disable building non standard codecs temporarily (i.e.
ldac, aptx, aac). We will add a way to enable them via build flags later
but we're disabling them entirely for now.
Bug: 176847216
Bug: 176846220
Tag: #refactor
Test: run --host bluetooth_test_gd
Test: run --host bluetooth_test_common
Change-Id: I85e5f8bd64c9ad074537cdd1393d373d5644aca0
Diffstat (limited to 'system/include/array_utils.h')
-rw-r--r-- | system/include/array_utils.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/system/include/array_utils.h b/system/include/array_utils.h new file mode 100644 index 0000000000..d669d0aba0 --- /dev/null +++ b/system/include/array_utils.h @@ -0,0 +1,20 @@ +// +// Copyright 2021 Google, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at: +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +#pragma once + +#ifndef ARRAY_SIZE +#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof(arr[0])) +#endif |