Fluoride Bluetooth stack
Building and running on AOSP
Just build AOSP - Fluoride is there by default.
Building and running on Linux
Instructions for Ubuntu, tested on 15.10 with GCC 5.2.1.
Install required libraries
Install build tools
or download binary from https://github.com/ninja-build/ninja/releases
Get sha1 of current version from here and then download corresponding executable:
i.e. if sha1 is "3491f6687bd9f19946035700eb84ce3eed18c5fa" (value from 24 Feb 2016) do
Then make binary executable and put it on your PATH, i.e.:
Then fetch third party dependencies:
And third party dependencies of third party dependencies:
Fluoride currently has dependency on some internal Android projects, which also need to be downloaded. This will be removed in future:
Configure your build
We need to configure some paths to make the build successful. Run:
This will prompt you to fill the contents of your "out/Default/args.gn" file. Make it look like below. Replace "/home/job" with path to your home directory, and don't use "~" in build arguments:
Build arguments go here. Examples:
iscomponentbuild = true
is_debug = false
See "gn args --list" for available build arguments.
libhwincludepath = "/home/job/fluoride/libhardware/include" coreincludepath = "/home/job/fluoride/core/include" audioincludepath = "/home/job/fluoride/media/audio/include" ```
Then generate your build files by calling
This will build all targets (the shared library, executables, tests, etc) and put them in out/Default. To build an individual target, replace "all" with the target of your choice, e.g.