Ben Murdoch | 097c5b2 | 2016-05-18 11:27:45 +0100 | [diff] [blame^] | 1 | # Copyright 2016 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 | import("//build/config/linux/pkg_config.gni") |
| 6 | import("//build/shim_headers.gni") |
| 7 | |
| 8 | pkg_config("system_flac") { |
| 9 | packages = [ "flac" ] |
| 10 | } |
| 11 | |
| 12 | shim_headers("flac_shim") { |
| 13 | root_path = "include" |
| 14 | headers = [ |
| 15 | "FLAC/all.h", |
| 16 | "FLAC/assert.h", |
| 17 | "FLAC/callback.h", |
| 18 | "FLAC/export.h", |
| 19 | "FLAC/format.h", |
| 20 | "FLAC/metadata.h", |
| 21 | "FLAC/ordinals.h", |
| 22 | "FLAC/stream_decoder.h", |
| 23 | "FLAC/stream_encoder.h", |
| 24 | ] |
| 25 | } |
| 26 | |
| 27 | source_set("flac") { |
| 28 | deps = [ |
| 29 | ":flac_shim", |
| 30 | ] |
| 31 | public_configs = [ ":system_flac" ] |
| 32 | } |