Bertrand SIMONNET | 1c6c90f | 2014-07-18 17:07:34 -0700 | [diff] [blame] | 1 | # Copyright 2014 The Chromium OS Authors. All rights reserved. |
| 2 | # Distributed under the terms of the GNU General Public License v2 |
| 3 | |
| 4 | # @ECLASS: libchrome.eclass |
| 5 | # @MAINTAINER: |
| 6 | # ChromiumOS Build Team |
| 7 | # @BUGREPORTS: |
| 8 | # Please report bugs via http://crbug.com/new (with label Build) |
| 9 | # @VCSURL: https://chromium.googlesource.com/chromiumos/overlays/chromiumos-overlay/+/master/eclass/@ECLASS@ |
| 10 | # @BLURB: helper eclass for managing dependencies on libchrome |
| 11 | # @DESCRIPTION: |
| 12 | # Our base library libchrome is slotted and is used by a lot of packages. All |
| 13 | # the version numbers need to be updated whenever we uprev libchrome. This |
| 14 | # eclass centralizes the logic used to depend on libchrome and sets up the |
| 15 | # environment variables to reduce the amount of change needed. |
| 16 | |
Ben Chan | c1ac4cf | 2014-09-05 07:58:36 -0700 | [diff] [blame] | 17 | [[ -z ${LIBCHROME_VERS} ]] && LIBCHROME_VERS=( 293518 ) |
Bertrand SIMONNET | 1c6c90f | 2014-07-18 17:07:34 -0700 | [diff] [blame] | 18 | export BASE_VER="${LIBCHROME_VERS[0]}" |
| 19 | |
| 20 | RDEPEND=$( |
| 21 | printf \ |
| 22 | 'chromeos-base/libchrome:%s[cros-debug=] ' \ |
| 23 | "${LIBCHROME_VERS[@]}" |
| 24 | ) |
| 25 | |
| 26 | DEPEND="${RDEPEND}" |