OLD | NEW |
(Empty) | |
| 1 # Copyright (c) 2014 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. |
| 4 |
| 5 # Common function for all chromecast targets. |
| 6 function setup_chromium_env_common_chromecast() { |
| 7 # In alpha order: |
| 8 # - chromecast_build=1: This is a Chromecast build. |
| 9 # - disable_nacl=1: We do not support Native Client. |
| 10 # - enable_pepper_cdms=0: Disable pepper plugin based CDMs. |
| 11 # - ffmpeg_branding=Chrome: This picks up additional codecs |
| 12 # - icu_use_data_file_flag=0: We don't use separate ICU data file |
| 13 # - proprietary_codecs=1 |
| 14 # - safe_browsing=0: safe browsing takes a very large amount of memory: a few |
| 15 # MB persistent, and tens of MB (according to chromium-dev) when the DB is |
| 16 # updated. |
| 17 # - screen_capture_supported=0 |
| 18 # - toolkit_uses_gtk=0: we disable all GTK. |
| 19 # - toolkit_views=0: related to disabling GTK (alternative to GTK). |
| 20 # - use_aura=0 |
| 21 # - use_cairo=0: We use fontconfig + freetype |
| 22 # - use_cups=0: we do not support printing on this platform. |
| 23 # - use_dbus=0 |
| 24 # - use_glib=0 |
| 25 # - use_harfbuzz_ng=1 |
| 26 # - use_kerberos=0 |
| 27 # - use_pango=0 |
| 28 # - use_system_fontconfig=0: use fontconfig from the Chromium tree. |
| 29 # - use_udev=0 |
| 30 # - use_webcrypto_ipc=0 |
| 31 # - use_x11=0: we do not support X11 on this platform. |
| 32 local defines=" |
| 33 disable_nacl=1 |
| 34 enable_pepper_cdms=0 |
| 35 chromecast_build=1 |
| 36 ffmpeg_branding=Chrome |
| 37 icu_use_data_file_flag=0 |
| 38 proprietary_codecs=1 |
| 39 safe_browsing=0 |
| 40 screen_capture_supported=0 |
| 41 toolkit_uses_gtk=0 |
| 42 toolkit_views=1 |
| 43 use_aura=0 |
| 44 use_cairo=0 |
| 45 use_cups=0 |
| 46 use_dbus=0 |
| 47 use_glib=0 |
| 48 use_harfbuzz_ng=1 |
| 49 use_kerberos=0 |
| 50 use_pango=0 |
| 51 use_system_fontconfig=0 |
| 52 use_udev=0 |
| 53 use_webcrypto_ipc=0 |
| 54 use_x11=0 |
| 55 " |
| 56 export GYP_DEFINES="${GYP_DEFINES} ${defines}" |
| 57 } |
OLD | NEW |