summaryrefslogtreecommitdiffstats
path: root/www/chromium/files/patch-media_audio_BUILD.gn
blob: 83ed93f383a4b8f821000ea509e8778874d5abef (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
--- media/audio/BUILD.gn.orig	2017-06-05 19:03:08 UTC
+++ media/audio/BUILD.gn
@@ -216,7 +216,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" ]
   }
 
@@ -265,9 +265,11 @@ 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" ]
     }
   }
 
OpenPOWER on IntegriCloud