Index: chromecast/build/build_env_common_chromecast.sh |
diff --git a/chromecast/build/build_env_common_chromecast.sh b/chromecast/build/build_env_common_chromecast.sh |
new file mode 100644 |
index 0000000000000000000000000000000000000000..60ce45208362314248f1769e1b59ee6c7827bca5 |
--- /dev/null |
+++ b/chromecast/build/build_env_common_chromecast.sh |
@@ -0,0 +1,57 @@ |
+# Copyright (c) 2014 The Chromium Authors. All rights reserved. |
+# Use of this source code is governed by a BSD-style license that can be |
+# found in the LICENSE file. |
+ |
+# Common function for all chromecast targets. |
+function setup_chromium_env_common_chromecast() { |
+ # In alpha order: |
+ # - chromecast_build=1: This is a Chromecast build. |
+ # - disable_nacl=1: We do not support Native Client. |
+ # - enable_pepper_cdms=0: Disable pepper plugin based CDMs. |
+ # - ffmpeg_branding=Chrome: This picks up additional codecs |
+ # - icu_use_data_file_flag=0: We don't use separate ICU data file |
+ # - proprietary_codecs=1 |
+ # - safe_browsing=0: safe browsing takes a very large amount of memory: a few |
+ # MB persistent, and tens of MB (according to chromium-dev) when the DB is |
+ # updated. |
+ # - screen_capture_supported=0 |
+ # - toolkit_uses_gtk=0: we disable all GTK. |
+ # - toolkit_views=0: related to disabling GTK (alternative to GTK). |
+ # - use_aura=0 |
+ # - use_cairo=0: We use fontconfig + freetype |
+ # - use_cups=0: we do not support printing on this platform. |
+ # - use_dbus=0 |
+ # - use_glib=0 |
+ # - use_harfbuzz_ng=1 |
+ # - use_kerberos=0 |
+ # - use_pango=0 |
+ # - use_system_fontconfig=0: use fontconfig from the Chromium tree. |
+ # - use_udev=0 |
+ # - use_webcrypto_ipc=0 |
+ # - use_x11=0: we do not support X11 on this platform. |
+ local defines=" |
+disable_nacl=1 |
+enable_pepper_cdms=0 |
+chromecast_build=1 |
+ffmpeg_branding=Chrome |
+icu_use_data_file_flag=0 |
+proprietary_codecs=1 |
+safe_browsing=0 |
+screen_capture_supported=0 |
+toolkit_uses_gtk=0 |
+toolkit_views=1 |
+use_aura=0 |
+use_cairo=0 |
+use_cups=0 |
+use_dbus=0 |
+use_glib=0 |
+use_harfbuzz_ng=1 |
+use_kerberos=0 |
+use_pango=0 |
+use_system_fontconfig=0 |
+use_udev=0 |
+use_webcrypto_ipc=0 |
+use_x11=0 |
+" |
+ export GYP_DEFINES="${GYP_DEFINES} ${defines}" |
+} |