Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(366)

Unified Diff: build/install-build-deps.sh

Issue 223143004: Add chromecast_build gyp variable and add rules when the variable is set to 1. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add directfb as a new dependency in install-build-deps.sh for building chromecast Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: build/install-build-deps.sh
diff --git a/build/install-build-deps.sh b/build/install-build-deps.sh
index a02b748bd4c155c3296f10defbb3a9131f215091..94941e3a7dc8e31303226bc49fcb15deda6ff5a8 100755
--- a/build/install-build-deps.sh
+++ b/build/install-build-deps.sh
@@ -18,6 +18,8 @@ usage() {
"fonts"
echo "--[no-]nacl: enable or disable installation of prerequisites for"\
"building standalone NaCl and all its toolchains"
+ echo "--[no-]chromecast: enable or disable installation of prerequisites for"\
+ "building cast shell"
echo "--no-prompt: silently select standard options/defaults"
echo "--quick-check: quickly try to determine if dependencies are installed"
echo " (this avoids interactive prompts and sudo commands,"
@@ -39,6 +41,7 @@ package_exists() {
# own workstations can pass --no-arm --no-nacl when running the script.
do_inst_arm=1
do_inst_nacl=1
+do_inst_chromecast=1
while test "$1" != ""
do
@@ -53,6 +56,8 @@ do
--no-chromeos-fonts) do_inst_chromeos_fonts=0;;
--nacl) do_inst_nacl=1;;
--no-nacl) do_inst_nacl=0;;
+ --chromecast) do_inst_chromecast=1;;
+ --no-chromecast) do_inst_chromecast=0;;
--no-prompt) do_default=1
do_quietly="-qq --assume-yes"
;;
@@ -159,6 +164,9 @@ arm_list="$arm_list $armel_list"
# Packages to build standalone NaCl and all its toolchains.
nacl_list="g++-mingw-w64-i686 libtinfo-dev:i386"
+# Packages to build (chromecast) cast shell
+chromecast_list="libdirectfb-dev"
rjkroege 2014/04/24 18:49:35 Will making this not installed by default make set
+
# Some package names have changed over time
if package_exists ttf-mscorefonts-installer; then
dev_list="${dev_list} ttf-mscorefonts-installer"
@@ -274,8 +282,15 @@ else
nacl_list=
fi
+if test "$do_inst_chromecast" = "1"; then
+ echo "Including Chromecast dependencies."
+else
+ echo "Skipping Chromecast dependencies."
+ chromecast_list=
+fi
+
packages="$(
- echo "${dev_list} ${lib_list} ${dbg_list} ${arm_list} ${nacl_list}" |
+ echo "${dev_list} ${lib_list} ${dbg_list} ${arm_list} ${nacl_list} ${chromecast_list}" |
tr " " "\n" | sort -u | tr "\n" " "
)"

Powered by Google App Engine
This is Rietveld 408576698