diff options
Diffstat (limited to 'build/BUILD.gn')
-rw-r--r-- | build/BUILD.gn | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/build/BUILD.gn b/build/BUILD.gn index fb20a34f6..eae173727 100644 --- a/build/BUILD.gn +++ b/build/BUILD.gn @@ -18,16 +18,22 @@ declare_args() { # Include path for hardware/bluetooth.h libhw_include_path = "" core_include_path = "" + audio_include_path = "" } config("default_include_dirs") { # TODO(armansito): Remove "core_include_path" once the cutils includes have # been removed. - assert(libhw_include_path != "", "libhardware_include_path build argument wasn't provided.") - assert(core_include_path != "", "core_include_path build argument wasn't provided.") + assert(libhw_include_path != "", + "libhardware_include_path build argument wasn't provided.") + assert(core_include_path != "", + "core_include_path build argument wasn't provided.") + assert(audio_include_path != "", + "audio_include_path build argument wasn't provided.") include_dirs = [ libhw_include_path, core_include_path, + audio_include_path, ] } @@ -35,8 +41,9 @@ config("linux") { # TODO(keybuk): AndroidConfig.h or equivalent cflags = [ - "-Wall", - "-Werror", + #TODO(jpawlowski): uncomment once we have no warnings on linux build + # "-Wall", + # "-Werror", "-g", "-O0", "-fpic", @@ -45,9 +52,7 @@ config("linux") { "-fvisibility=hidden", ] - cflags_c = [ - "-std=c99" - ] + cflags_c = [ "-std=c99" ] cflags_cc = [ "-std=c++11", @@ -60,6 +65,8 @@ config("linux") { "HAS_NO_BDROID_BUILDCFG", "LOG_NDEBUG=1", "EXPORT_SYMBOL=__attribute__((visibility(\"default\")))", + "PROPERTY_VALUE_MAX=256", + "KERNEL_MISSING_CLOCK_BOOTTIME_ALARM=TRUE", # This is a macro to that can be used by source code to detect if the # current build is done by GN or via Android.mk. This is a temporary |