Commit 5c10cca4 authored by brettw@chromium.org's avatar brettw@chromium.org

Add libflac and speex to the GN build.

R=scottmg@chromium.org

Review URL: https://codereview.chromium.org/336633002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@276773 0039d316-1c4b-4281-b951-d872f2087c98
parent 137dff6d
......@@ -60,6 +60,7 @@ group("root") {
"//sql",
"//third_party/angle:translator",
"//third_party/brotli",
"//third_party/flac",
"//third_party/harfbuzz-ng",
"//third_party/iccjpeg",
"//third_party/icu",
......@@ -77,6 +78,7 @@ group("root") {
"//third_party/smhasher:cityhash",
"//third_party/smhasher:murmurhash3",
"//third_party/smhasher:pmurhash",
"//third_party/speex",
"//third_party/WebKit/public:blink_headers",
"//third_party/WebKit/Source/wtf",
"//third_party/zlib",
......
# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
config("flac_config") {
defines = [ "FLAC__NO_DLL" ]
}
static_library("flac") {
sources = [
"include/FLAC/all.h",
"include/FLAC/assert.h",
"include/FLAC/callback.h",
"include/FLAC/export.h",
"include/FLAC/format.h",
"include/FLAC/metadata.h",
"include/FLAC/ordinals.h",
"include/FLAC/stream_decoder.h",
"include/FLAC/stream_encoder.h",
"include/share/alloc.h",
"src/libFLAC/alloc.c",
"src/libFLAC/bitmath.c",
"src/libFLAC/bitreader.c",
"src/libFLAC/bitwriter.c",
"src/libFLAC/cpu.c",
"src/libFLAC/crc.c",
"src/libFLAC/fixed.c",
"src/libFLAC/float.c",
"src/libFLAC/format.c",
"src/libFLAC/lpc.c",
"src/libFLAC/md5.c",
"src/libFLAC/memory.c",
"src/libFLAC/stream_decoder.c",
"src/libFLAC/stream_encoder.c",
"src/libFLAC/stream_encoder_framing.c",
"src/libFLAC/window.c",
"src/libFLAC/include/private/all.h",
"src/libFLAC/include/private/bitmath.h",
"src/libFLAC/include/private/bitreader.h",
"src/libFLAC/include/private/bitwriter.h",
"src/libFLAC/include/private/cpu.h",
"src/libFLAC/include/private/crc.h",
"src/libFLAC/include/private/fixed.h",
"src/libFLAC/include/private/float.h",
"src/libFLAC/include/private/format.h",
"src/libFLAC/include/private/lpc.h",
"src/libFLAC/include/private/md5.h",
"src/libFLAC/include/private/memory.h",
"src/libFLAC/include/private/metadata.h",
"src/libFLAC/include/private/stream_encoder_framing.h",
"src/libFLAC/include/private/window.h",
"src/libFLAC/include/protected/all.h",
"src/libFLAC/include/protected/stream_decoder.h",
"src/libFLAC/include/protected/stream_encoder.h",
]
defines = [
"FLAC__OVERFLOW_DETECT",
"VERSION=\"1.2.1\"",
]
configs -= [ "//build/config/compiler:chromium_code" ]
configs += [ "//build/config/compiler:no_chromium_code" ]
direct_dependent_configs = [ ":flac_config" ]
include_dirs = [
"include",
"src/libFLAC/include",
]
if (is_clang) {
# libflac converts between FLAC__StreamDecoderState and
# FLAC__StreamDecoderInitStatus a lot in stream_decoder.c.
cflags = [ "-Wno-conversion" ]
}
}
# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
config("speex_config") {
# Clients expect <speex/speex.h> to be a system header.
include_dirs = [ "include" ]
}
static_library("speex") {
sources = [
"libspeex/arch.h",
"libspeex/bits.c",
"libspeex/cb_search.c",
"libspeex/cb_search.h",
"libspeex/exc_10_16_table.c",
"libspeex/exc_10_32_table.c",
"libspeex/exc_20_32_table.c",
"libspeex/exc_5_256_table.c",
"libspeex/exc_5_64_table.c",
"libspeex/exc_8_128_table.c",
"libspeex/filters.c",
"libspeex/filters.h",
"libspeex/gain_table.c",
"libspeex/gain_table_lbr.c",
"libspeex/hexc_10_32_table.c",
"libspeex/hexc_table.c",
"libspeex/high_lsp_tables.c",
"libspeex/lpc.c",
"libspeex/lpc.h",
"libspeex/lsp.c",
"libspeex/lsp.h",
"libspeex/lsp_tables_nb.c",
"libspeex/ltp.c",
"libspeex/ltp.h",
"libspeex/math_approx.h",
"libspeex/modes.c",
"libspeex/modes.h",
"libspeex/modes_wb.c",
"libspeex/nb_celp.c",
"libspeex/nb_celp.h",
"libspeex/os_support.h",
"libspeex/pseudofloat.h",
"libspeex/quant_lsp.c",
"libspeex/quant_lsp.h",
"libspeex/sb_celp.c",
"libspeex/sb_celp.h",
"libspeex/speex.c",
"libspeex/speex_callbacks.c",
"libspeex/speex_header.c",
"libspeex/stack_alloc.h",
"libspeex/stereo.c",
"libspeex/vbr.c",
"libspeex/vbr.h",
"libspeex/vq.c",
"libspeex/vq.h",
"libspeex/window.c",
"include/speex/speex.h",
"include/speex/speex_bits.h",
"include/speex/speex_buffer.h",
"include/speex/speex_callbacks.h",
"include/speex/speex_echo.h",
"include/speex/speex_header.h",
"include/speex/speex_jitter.h",
"include/speex/speex_preprocess.h",
"include/speex/speex_resampler.h",
"include/speex/speex_stereo.h",
"include/speex/speex_types.h",
]
defines = [
"FLOATING_POINT",
"EXPORT=",
"USE_ALLOCA",
"inline=__inline",
]
include_dirs = [
"libspeex",
]
configs -= [ "//build/config/compiler:chromium_code" ]
configs += [ "//build/config/compiler:no_chromium_code" ]
direct_dependent_configs = [ ":speex_config" ]
if (is_win) {
cflags = [
"/wd4244", # Possible loss of data in conversion.
"/wd4305", # Truncation in conversion.
]
}
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment