| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 config("flac_config") { | 5 config("flac_config") { |
| 6 defines = [ "FLAC__NO_DLL" ] | 6 defines = [ "FLAC__NO_DLL" ] |
| 7 } | 7 } |
| 8 | 8 |
| 9 static_library("flac") { | 9 static_library("flac") { |
| 10 sources = [ | 10 sources = [ |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 "src/libFLAC/include/protected/stream_encoder.h", | 54 "src/libFLAC/include/protected/stream_encoder.h", |
| 55 ] | 55 ] |
| 56 | 56 |
| 57 defines = [ | 57 defines = [ |
| 58 "FLAC__OVERFLOW_DETECT", | 58 "FLAC__OVERFLOW_DETECT", |
| 59 "VERSION=\"1.2.1\"", | 59 "VERSION=\"1.2.1\"", |
| 60 ] | 60 ] |
| 61 | 61 |
| 62 configs -= [ "//build/config/compiler:chromium_code" ] | 62 configs -= [ "//build/config/compiler:chromium_code" ] |
| 63 configs += [ "//build/config/compiler:no_chromium_code" ] | 63 configs += [ "//build/config/compiler:no_chromium_code" ] |
| 64 direct_dependent_configs = [ ":flac_config" ] | 64 public_configs = [ ":flac_config" ] |
| 65 | 65 |
| 66 include_dirs = [ | 66 include_dirs = [ |
| 67 "include", | 67 "include", |
| 68 "src/libFLAC/include", | 68 "src/libFLAC/include", |
| 69 ] | 69 ] |
| 70 | 70 |
| 71 if (is_clang) { | 71 if (is_clang) { |
| 72 # libflac converts between FLAC__StreamDecoderState and | 72 # libflac converts between FLAC__StreamDecoderState and |
| 73 # FLAC__StreamDecoderInitStatus a lot in stream_decoder.c. | 73 # FLAC__StreamDecoderInitStatus a lot in stream_decoder.c. |
| 74 cflags = [ "-Wno-conversion" ] | 74 cflags = [ "-Wno-conversion" ] |
| 75 } | 75 } |
| 76 } | 76 } |
| OLD | NEW |