blob: 734f41fd8e176366222e3812b6869d5c404c96c1 [file] [log] [blame] [view]
tfarinac6ce1e362016-03-18 12:39:021# Cast Build Instructions
2
3**Note**: it is **not possible** to build a binary functionally
4equivalent to a Chromecast. This is to build a single-page content
5embedder with similar functionality to Cast products.
6
7## Prerequisites
8
9* See the [Linux build prerequisites](https://chromium.googlesource.com/chromium/src/+/master/docs/linux_build_instructions_prerequisites.md)
10
11## Setting Up
12
13* Cast Linux build only: [Linux build
14 setup](https://chromium.googlesource.com/chromium/src/+/master/docs/linux_build_instructions.md)
15 is sufficient.
16* Cast Linux and Android builds: follow the [Android build
17 setup](https://www.chromium.org/developers/how-tos/android-build-instructions)
18 instructions.
19
20## Building/running cast\_shell (Linux)
21
22```shell
23gn gen out/Debug --args='is_chromecast=true is_debug=true'
24ninja -C out/Debug cast_shell
25```
26
27```shell
kylechar3f2b80082016-07-21 18:42:2128out/Debug/cast_shell --ozone-platform=x11 http://google.com
tfarinac6ce1e362016-03-18 12:39:0229```
30
31## Building/running cast\_shell\_apk (Android)
32
33```shell
34gn gen out/Debug --args='is_chromecast=true target_os="android" is_debug=true'
35ninja -C out/Debug cast_shell_apk
36```
37
38```shell
39adb install out/Debug/apks/CastShell.apk
40adb shell am start -d "http://google.com" org.chromium.chromecast.shell/.CastShellActivity
41```