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

Unified Diff: media/base/BUILD.gn

Issue 1944183002: Add BUILD.gn for //media/ffmpeg (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add config + rebase Created 4 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 | « media/BUILD.gn ('k') | media/ffmpeg/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/BUILD.gn
diff --git a/media/base/BUILD.gn b/media/base/BUILD.gn
index 2dcd04317bd5bbeb6a03841892b880c87d7ca602..2932eea9eed42c2173f7bd2a945edd1700210bc3 100644
--- a/media/base/BUILD.gn
+++ b/media/base/BUILD.gn
@@ -10,13 +10,21 @@ import("//build/config/linux/pkg_config.gni")
import("//media/media_options.gni")
import("//testing/libfuzzer/fuzzer_test.gni")
+config("base_config") {
+ configs = [
+ # This target uses the ALLOCATOR_SHIM define.
+ "//base/allocator:allocator_shim_define",
+ "//build/config:precompiled_headers",
+ "//build/config/compiler:no_size_t_to_int_warning",
+ "//media:media_config",
+ "//media:media_dependent_config",
+ "//media:media_implementation",
+ ]
+}
+
source_set("base") {
# This is part of the media component.
- visibility = [
- ":*",
- "//media",
- "//media/capture",
- ]
+ visibility = [ "//media/*" ]
sources = [
"audio_block_fifo.cc",
"audio_block_fifo.h",
@@ -248,13 +256,7 @@ source_set("base") {
"//url:url",
]
libs = []
- configs += [
- # This target uses the ALLOCATOR_SHIM define.
- "//base/allocator:allocator_shim_define",
- "//build/config:precompiled_headers",
- "//media:media_config",
- "//media:media_implementation",
- ]
+ configs += [ ":base_config" ]
if (media_use_ffmpeg) {
if (!is_android) {
@@ -313,8 +315,6 @@ source_set("base") {
deps += [ ":media_yasm" ]
}
- configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
-
if (is_linux || is_win) {
sources += [
"keyboard_event_counter.cc",
« no previous file with comments | « media/BUILD.gn ('k') | media/ffmpeg/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698