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

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: Enable ozone/embedded when chromecast == 1. Also add libgles2-mesa-dev as a dependency for chromeca… Created 6 years, 6 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 5cb252298357baa4a05885f4736dbdd38fb6d07d..0401f1f639906bd7ae34feeeda9b5fb34f691fed 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"
;;
@@ -164,6 +169,9 @@ done
dev_list="${dev_list} libgbm-dev${mesa_variant}"
nacl_list="${nacl_list} libgl1-mesa-glx${mesa_variant}:i386"
+# Packages needed to build (chromecast) cast shell
+chromecast_list="libgles2-mesa-dev"
rjkroege 2014/06/25 16:44:16 i think dnicoara landed a change already to arrang
spang 2014/06/25 19:55:46 No that was gbm. I think this can go in the main
lcwu1 2014/06/25 22:41:02 Michael has a CL to add libgles2-mesa-dev, I will
+
# Some package names have changed over time
if package_exists ttf-mscorefonts-installer; then
dev_list="${dev_list} ttf-mscorefonts-installer"
@@ -287,8 +295,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