| OLD | NEW |
| 1 # Copyright 2017 The Chromium Authors. All rights reserved. | 1 # Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import("//build/config/linux/pkg_config.gni") | 5 import("//build/config/linux/pkg_config.gni") |
| 6 import("//build/shim_headers.gni") | 6 import("//build/shim_headers.gni") |
| 7 | 7 |
| 8 pkg_config("system_opus") { | 8 pkg_config("opus_config") { |
| 9 packages = [ "opus" ] | 9 packages = [ "opus" ] |
| 10 } | 10 } |
| 11 | 11 |
| 12 shim_headers("opus_shim") { | 12 shim_headers("opus_shim") { |
| 13 root_path = "src/include" | 13 root_path = "src/include" |
| 14 headers = [ | 14 headers = [ |
| 15 "opus.h", | 15 "opus.h", |
| 16 "opus_defines.h", | 16 "opus_defines.h", |
| 17 "opus_multistream.h", | 17 "opus_multistream.h", |
| 18 "opus_types.h", | 18 "opus_types.h", |
| 19 ] | 19 ] |
| 20 } | 20 } |
| 21 | 21 |
| 22 source_set("opus") { | 22 source_set("opus") { |
| 23 deps = [ | 23 deps = [ |
| 24 ":opus_shim", | 24 ":opus_shim", |
| 25 ] | 25 ] |
| 26 public_configs = [ ":system_opus" ] | 26 public_configs = [ ":opus_config" ] |
| 27 } | 27 } |
| 28 | 28 |
| 29 source_set("opus_compare") { | 29 source_set("opus_compare") { |
| 30 } | 30 } |
| 31 | 31 |
| 32 source_set("opus_demo") { | 32 source_set("opus_demo") { |
| 33 } | 33 } |
| 34 | 34 |
| 35 source_set("test_opus_api") { | 35 source_set("test_opus_api") { |
| 36 } | 36 } |
| 37 | 37 |
| 38 source_set("test_opus_decode") { | 38 source_set("test_opus_decode") { |
| 39 } | 39 } |
| 40 | 40 |
| 41 source_set("test_opus_encode") { | 41 source_set("test_opus_encode") { |
| 42 } | 42 } |
| 43 | 43 |
| 44 source_set("test_opus_padding") { | 44 source_set("test_opus_padding") { |
| 45 } | 45 } |
| OLD | NEW |