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

Unified Diff: tools/gn/secondary/third_party/flac/BUILD.gn

Issue 336633002: Add libflac and speex to the GN build. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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
Index: tools/gn/secondary/third_party/flac/BUILD.gn
diff --git a/tools/gn/secondary/third_party/flac/BUILD.gn b/tools/gn/secondary/third_party/flac/BUILD.gn
new file mode 100644
index 0000000000000000000000000000000000000000..53a2b05077a29a85bac60716bb480a18517ffe3b
--- /dev/null
+++ b/tools/gn/secondary/third_party/flac/BUILD.gn
@@ -0,0 +1,76 @@
+# 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" ]
scottmg 2014/06/12 18:21:49 wth is with their underscores :/
+}
+
+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" ]
+ }
+}

Powered by Google App Engine
This is Rietveld 408576698