| # Copyright 2014 The Chromium OS Authors. All rights reserved. |
| # Distributed under the terms of the GNU General Public License v2 |
| |
| EAPI="5" |
| |
| DESCRIPTION="Text file listing USE flags for chromeos-base/libchromeos" |
| |
| LICENSE="BSD-Google" |
| SLOT="0" |
| KEYWORDS="*" |
| |
| # NB: Flags listed here are off by default unless prefixed with a '+'. |
| # This list is lengthy since it determines the USE flags that will be written to |
| # the /etc/ui_use_flags.txt file that's used to generate Chrome's command line. |
| IUSE=" |
| allow_consumer_kiosk |
| arc |
| arc_adb_sideloading |
| arc_force_2x_scaling |
| arc_oobe_optin_no_skip |
| arc_transition_m_to_n |
| arcpp |
| arcvm |
| asan |
| background_blur |
| big_little |
| biod |
| cfm_enabled_device |
| cheets |
| compupdates |
| disable_cros_video_decoder |
| disable_flash_hw_video_decode |
| drm_atomic |
| edge_touch_filtering |
| force_crashpad |
| gpu_sandbox_allow_sysv_shm |
| gpu_sandbox_failures_not_fatal |
| gpu_sandbox_start_early |
| instant_tethering |
| kvm_host |
| kvm_transition |
| legacy_keyboard |
| legacy_power_button |
| moblab |
| native_gpu_memory_buffers |
| natural_scroll_default |
| neon |
| nocturne |
| oobe_skip_postlogin |
| oobe_skip_to_login |
| opengles |
| passive_event_listeners |
| pita |
| rialto |
| screenshare_sw_codec |
| shelf-hotseat |
| smartdim |
| tablet_form_factor |
| touch_centric_device |
| touchscreen_wakeup |
| touchview |
| video_capture_use_gpu_memory_buffer |
| virtio_gpu |
| webui-tab-strip |
| wilco |
| +X |
| " |
| |
| S=${WORKDIR} |
| |
| src_install() { |
| # Install a file containing a list of currently-set USE flags that |
| # ChromiumCommandBuilder reads at runtime while constructing Chrome's |
| # command line. |
| local path="${WORKDIR}/ui_use_flags.txt" |
| cat <<EOF >"${path}" |
| # This file is just for libchromeos's ChromiumCommandBuilder class. |
| # Don't use it for anything else. Your code will break. |
| EOF |
| |
| # If you need to use a new flag, add it to $IUSE at the top of the file. |
| local flags=( ${IUSE} ) |
| local flag |
| for flag in ${flags[@]/#[-+]} ; do |
| usev ${flag} |
| done | sort -u >>"${path}" |
| |
| insinto /etc |
| doins "${path}" |
| } |