From d884a2e47858c8970a9d698804362ce90c8185cf Mon Sep 17 00:00:00 2001 From: Ben Chan Date: Thu, 24 Apr 2014 20:19:25 -0700 Subject: [PATCH] libmetrics: add pkg-config file BUG=chromium:366984 TEST=`FEATURES=test emerge-$BOARD platform2` and verify libmetrics-242728.pc is created. Change-Id: I3cd79e7421a5f666a4bf2551c87086f779078771 Reviewed-on: https://chromium-review.googlesource.com/196974 Reviewed-by: Mike Frysinger Tested-by: Ben Chan Commit-Queue: Ben Chan --- metrics/libmetrics.pc.in | 7 +++++++ metrics/platform2_preinstall.sh | 13 +++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 metrics/libmetrics.pc.in create mode 100755 metrics/platform2_preinstall.sh diff --git a/metrics/libmetrics.pc.in b/metrics/libmetrics.pc.in new file mode 100644 index 000000000..233f3181a --- /dev/null +++ b/metrics/libmetrics.pc.in @@ -0,0 +1,7 @@ +bslot=@BSLOT@ + +Name: libmetrics +Description: Chrome OS metrics library +Version: ${bslot} +Requires.private: libchrome-${bslot} +Libs: -lmetrics-${bslot} diff --git a/metrics/platform2_preinstall.sh b/metrics/platform2_preinstall.sh new file mode 100755 index 000000000..ccf353ff4 --- /dev/null +++ b/metrics/platform2_preinstall.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +# Copyright (c) 2014 The Chromium OS Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +set -e + +OUT=$1 +shift +for v; do + sed -e "s/@BSLOT@/${v}/g" libmetrics.pc.in > "${OUT}/lib/libmetrics-${v}.pc" +done