2 # Copyright (C) 2015 Google, Inc.
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at:
8 # http://www.apache.org/licenses/LICENSE-2.0
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
18 # Include path for hardware/bluetooth.h
19 libhw_include_path = ""
20 core_include_path = ""
23 config("default_include_dirs") {
24 # TODO(armansito): Remove "core_include_path" once the cutils includes have
26 assert(libhw_include_path != "", "libhardware_include_path build argument wasn't provided.")
27 assert(core_include_path != "", "core_include_path build argument wasn't provided.")
35 # TODO(keybuk): AndroidConfig.h or equivalent
44 "-ffunction-sections",
45 "-fvisibility=hidden",
60 "HAS_NO_BDROID_BUILDCFG",
62 "EXPORT_SYMBOL=__attribute__((visibility(\"default\")))",
64 # This is a macro to that can be used by source code to detect if the
65 # current build is done by GN or via Android.mk. This is a temporary
66 # workaround until we can remove all Android-specific dependencies.
76 ldflags = [ "-Wl,--gc-sections" ]