summaryrefslogtreecommitdiff
path: root/www/iridium/files/patch-content_browser_BUILD.gn
diff options
context:
space:
mode:
Diffstat (limited to 'www/iridium/files/patch-content_browser_BUILD.gn')
-rw-r--r--www/iridium/files/patch-content_browser_BUILD.gn64
1 files changed, 64 insertions, 0 deletions
diff --git a/www/iridium/files/patch-content_browser_BUILD.gn b/www/iridium/files/patch-content_browser_BUILD.gn
new file mode 100644
index 000000000000..cb60cd2ce3fd
--- /dev/null
+++ b/www/iridium/files/patch-content_browser_BUILD.gn
@@ -0,0 +1,64 @@
+--- content/browser/BUILD.gn.orig 2017-04-19 19:06:33 UTC
++++ content/browser/BUILD.gn
+@@ -1464,11 +1464,6 @@ source_set("browser") {
+ "memory/memory_monitor_chromeos.cc",
+ "memory/memory_monitor_chromeos.h",
+ ]
+- } else {
+- sources += [
+- "memory/memory_monitor_linux.cc",
+- "memory/memory_monitor_linux.h",
+- ]
+ }
+
+ if (!is_win) {
+@@ -1540,7 +1535,7 @@ source_set("browser") {
+
+ # Desktop screen capture implementations, conditionally built depending on
+ # the available implementations for each platform.
+- if (is_linux || is_mac || is_win) {
++ if (is_linux || is_bsd || is_mac || is_win) {
+ defines += [ "ENABLE_SCREEN_CAPTURE=1" ]
+ sources += [
+ "media/capture/cursor_renderer.cc",
+@@ -1727,7 +1722,7 @@ source_set("browser") {
+ }
+ }
+
+- if (is_linux && use_aura) {
++ if ((is_linux || is_bsd) && use_aura) {
+ deps += [ "//build/linux:fontconfig" ]
+ }
+
+@@ -1880,6 +1875,17 @@ source_set("browser") {
+ "//chromeos",
+ "//chromeos:power_manager_proto",
+ ]
++ } else if (is_bsd) {
++ sources -= [
++ "zygote_host/zygote_communication_linux.cc",
++ "zygote_host/zygote_communication_linux.h",
++ "zygote_host/zygote_handle_linux.cc",
++ "zygote_host/zygote_host_impl_linux.cc",
++ "zygote_host/zygote_host_impl_linux.h",
++ "../zygote/zygote_linux.cc",
++ "../zygote/zygote_linux.h",
++ "../zygote/zygote_main_linux.cc",
++ ]
+ }
+
+ if (enable_mojo_media) {
+@@ -1998,11 +2004,11 @@ source_set("browser") {
+ ]
+ }
+
+- if (is_linux && use_dbus) {
++ if ((is_linux || is_bsd) && use_dbus) {
+ deps += [ "//dbus" ]
+ }
+
+- if (is_linux) {
++ if (is_linux || is_bsd) {
+ deps += [ "//third_party/boringssl" ]
+ }
+