Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(57)

Unified Diff: BUILD.gn

Issue 299373002: Add GN build file for third_party speex library. (Closed) Base URL: http://src.chromium.org/svn/trunk/deps/third_party/speex
Patch Set: rm include Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: BUILD.gn
diff --git a/BUILD.gn b/BUILD.gn
new file mode 100644
index 0000000000000000000000000000000000000000..5462673feecd48bdfa3b14f9fbc2e00198b17ba3
--- /dev/null
+++ b/BUILD.gn
@@ -0,0 +1,96 @@
+# 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") {
+ include_dirs = [
+ "include", # Clients expect <speex/speex.h> to be a system header.
+ ]
+}
+
+source_set("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",
+ ]
+
+ configs -= [ "//build/config/compiler:chromium_code" ]
+ configs += [ "//build/config/compiler:no_chromium_code" ]
+
+ direct_dependent_configs = [ ":speex_config" ]
+
+ include_dirs = [
+ "libspeex",
+ ]
+
+ defines = [
+ "FLOATING_POINT",
+ "EXPORT=",
+ "USE_ALLOCA",
+ "inline=__inline",
+ ]
+
+ cflags = []
+
+ if (is_win) {
+ cflags += [
+ "/wd4244",
+ "/wd4305",
+ ]
+ }
+}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698