summaryrefslogtreecommitdiffstats
path: root/www/chromium/files/patch-media_audio_BUILD.gn
blob: 41a4627ba13d416f4c90fa9a20a59303ffefff48 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
--- media/audio/BUILD.gn.orig	2017-03-09 20:04:34 UTC
+++ media/audio/BUILD.gn
@@ -207,7 +207,7 @@ source_set("audio") {
     deps += [ "//media/base/android:media_jni_headers" ]
   }
 
-  if (is_linux) {
+  if (is_linux || is_bsd) {
     sources += [ "linux/audio_manager_linux.cc" ]
   }
 
@@ -256,10 +256,12 @@ source_set("audio") {
       configs += [ ":libpulse" ]
     } else {
       # TODO(ajwong): Technically, this dl should go in the action.
-      libs += [ "dl" ]
       deps += [ ":pulse_generate_stubs" ]
       sources += get_target_outputs(":pulse_generate_stubs")
     }
+    if (is_linux) {
+      libs += [ "dl" ]
+    }
   }
 
   configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
OpenPOWER on IntegriCloud