Skip to content
Snippets Groups Projects
Commit 55782e26 authored by Jakub Pawlowski's avatar Jakub Pawlowski Committed by Andre Eisenbach
Browse files

Fix broken formatting in README.md

Markdown formatter at:
https://android.googlesource.com/platform/system/bt/
interpret some things differently than other formatters.
This patch fixes badly formatted parts.

Change-Id: Ibe8a9c159d9d47396ef073f6555f06720bc3e661
parent f811856f
No related branches found
No related tags found
No related merge requests found
...@@ -8,6 +8,7 @@ Just build AOSP - Fluoride is there by default. ...@@ -8,6 +8,7 @@ Just build AOSP - Fluoride is there by default.
Instructions for Ubuntu, tested on 15.10 with GCC 5.2.1. Instructions for Ubuntu, tested on 15.10 with GCC 5.2.1.
### Install required libraries ### Install required libraries
```sh ```sh
sudo apt-get install libevent-dev sudo apt-get install libevent-dev
``` ```
...@@ -19,6 +20,7 @@ sudo apt-get install libevent-dev ...@@ -19,6 +20,7 @@ sudo apt-get install libevent-dev
```sh ```sh
sudo apt-get install ninja-build sudo apt-get install ninja-build
``` ```
or download binary from https://github.com/ninja-build/ninja/releases or download binary from https://github.com/ninja-build/ninja/releases
- Install [gn](https://chromium.googlesource.com/chromium/src/tools/gn/) - meta-build system that generates NinjaBuild files. - Install [gn](https://chromium.googlesource.com/chromium/src/tools/gn/) - meta-build system that generates NinjaBuild files.
...@@ -29,23 +31,30 @@ https://chromium.googlesource.com/chromium/buildtools/+/master/linux64/gn.sha1) ...@@ -29,23 +31,30 @@ https://chromium.googlesource.com/chromium/buildtools/+/master/linux64/gn.sha1)
```sh ```sh
wget -O gn http://storage.googleapis.com/chromium-gn/<gn.sha1> wget -O gn http://storage.googleapis.com/chromium-gn/<gn.sha1>
``` ```
i.e. if sha1 is "3491f6687bd9f19946035700eb84ce3eed18c5fa" (value from 24 Feb 2016) do i.e. if sha1 is "3491f6687bd9f19946035700eb84ce3eed18c5fa" (value from 24 Feb 2016) do
```sh ```sh
wget -O gn http://storage.googleapis.com/chromium-gn/3491f6687bd9f19946035700eb84ce3eed18c5fa wget -O gn http://storage.googleapis.com/chromium-gn/3491f6687bd9f19946035700eb84ce3eed18c5fa
``` ```
Then make binary executable and put it on your PATH, i.e.: Then make binary executable and put it on your PATH, i.e.:
```sh ```sh
chmod a+x ./gn chmod a+x ./gn
sudo mv ./gn /usr/bin sudo mv ./gn /usr/bin
``` ```
### Download source ### Download source
```sh ```sh
mkdir ~/fluoride mkdir ~/fluoride
cd ~/fluoride cd ~/fluoride
git clone https://android.googlesource.com/platform/packages/modules/Bluetooth/system git clone https://android.googlesource.com/platform/packages/modules/Bluetooth/system
``` ```
Then fetch third party dependencies: Then fetch third party dependencies:
```sh ```sh
cd ~/fluoride/bt cd ~/fluoride/bt
mkdir third_party mkdir third_party
...@@ -53,6 +62,7 @@ git clone https://github.com/google/googletest.git ...@@ -53,6 +62,7 @@ git clone https://github.com/google/googletest.git
git clone https://android.googlesource.com/platform/external/libchrome git clone https://android.googlesource.com/platform/external/libchrome
git clone https://android.googlesource.com/platform/external/modp_b64 git clone https://android.googlesource.com/platform/external/modp_b64
``` ```
And third party dependencies of third party dependencies: And third party dependencies of third party dependencies:
```sh ```sh
...@@ -62,7 +72,9 @@ cd valgrind ...@@ -62,7 +72,9 @@ cd valgrind
curl https://chromium.googlesource.com/chromium/src/base/+/master/third_party/valgrind/valgrind.h?format=TEXT | base64 -d > valgrind.h curl https://chromium.googlesource.com/chromium/src/base/+/master/third_party/valgrind/valgrind.h?format=TEXT | base64 -d > valgrind.h
curl https://chromium.googlesource.com/chromium/src/base/+/master/third_party/valgrind/memcheck.h?format=TEXT | base64 -d > memcheck.h curl https://chromium.googlesource.com/chromium/src/base/+/master/third_party/valgrind/memcheck.h?format=TEXT | base64 -d > memcheck.h
``` ```
Fluoride currently have dependency on some internal Android projects, which also need to be downloaded. This will be removed in future:
Fluoride currently has dependency on some internal Android projects, which also need to be downloaded. This will be removed in future:
```sh ```sh
cd ~/fluoride cd ~/fluoride
git clone https://android.googlesource.com/platform/system/core git clone https://android.googlesource.com/platform/system/core
...@@ -72,12 +84,15 @@ git clone https://android.googlesource.com/platform/system/media ...@@ -72,12 +84,15 @@ git clone https://android.googlesource.com/platform/system/media
### Configure your build ### Configure your build
We need to configure some paths to make the build successful. Run: We need to configure some paths to make the build successful. Run:
```sh ```sh
cd ~/fluoride/bt cd ~/fluoride/bt
gn args out/Default gn args out/Default
``` ```
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, don't use "~":
``` 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:
```sh
# Build arguments go here. Examples: # Build arguments go here. Examples:
# is_component_build = true # is_component_build = true
# is_debug = false # is_debug = false
...@@ -89,6 +104,7 @@ audio_include_path = "/home/job/fluoride/media/audio/include" ...@@ -89,6 +104,7 @@ audio_include_path = "/home/job/fluoride/media/audio/include"
``` ```
Then generate your build files by calling Then generate your build files by calling
```sh ```sh
cd ~/fluoride/bt cd ~/fluoride/bt
gn gen out/Default gn gen out/Default
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment