diff options
Diffstat (limited to 'www/chromium-uc/patches/patch-base_BUILD_gn')
| -rw-r--r-- | www/chromium-uc/patches/patch-base_BUILD_gn | 85 |
1 files changed, 0 insertions, 85 deletions
diff --git a/www/chromium-uc/patches/patch-base_BUILD_gn b/www/chromium-uc/patches/patch-base_BUILD_gn deleted file mode 100644 index 51f0749..0000000 --- a/www/chromium-uc/patches/patch-base_BUILD_gn +++ /dev/null | |||
| @@ -1,85 +0,0 @@ | |||
| 1 | $OpenBSD: patch-base_BUILD_gn,v 1.50 2021/11/16 11:28:45 robert Exp $ | ||
| 2 | |||
| 3 | Index: base/BUILD.gn | ||
| 4 | --- base/BUILD.gn.orig | ||
| 5 | +++ base/BUILD.gn | ||
| 6 | @@ -958,7 +958,7 @@ component("base") { | ||
| 7 | "timer/hi_res_timer_manager_posix.cc", | ||
| 8 | ] | ||
| 9 | |||
| 10 | - if (!is_nacl && !is_apple) { | ||
| 11 | + if (!is_nacl && !is_apple && !is_openbsd) { | ||
| 12 | sources += [ | ||
| 13 | "cpu_affinity_posix.cc", | ||
| 14 | "cpu_affinity_posix.h", | ||
| 15 | @@ -969,6 +969,12 @@ component("base") { | ||
| 16 | "profiler/thread_delegate_posix.h", | ||
| 17 | ] | ||
| 18 | } | ||
| 19 | + | ||
| 20 | + if (is_openbsd) { | ||
| 21 | + sources += [ | ||
| 22 | + "profiler/stack_sampler_posix.cc", | ||
| 23 | + ] | ||
| 24 | + } | ||
| 25 | } | ||
| 26 | |||
| 27 | if (is_win) { | ||
| 28 | @@ -1393,11 +1399,16 @@ component("base") { | ||
| 29 | # building inside the cros_sdk environment - use host_toolchain as a | ||
| 30 | # more robust check for this. | ||
| 31 | if (!use_sysroot && | ||
| 32 | - (is_android || ((is_linux || is_chromeos) && !is_chromecast)) && | ||
| 33 | + (is_android || ((is_linux || is_chromeos) && !is_chromecast && !is_openbsd)) && | ||
| 34 | host_toolchain != "//build/toolchain/cros:host") { | ||
| 35 | libs += [ "atomic" ] | ||
| 36 | } | ||
| 37 | |||
| 38 | + # OpenBSD needs libkvm | ||
| 39 | + if (is_openbsd) { | ||
| 40 | + libs += [ "kvm" ] | ||
| 41 | + } | ||
| 42 | + | ||
| 43 | if (use_allocator_shim) { | ||
| 44 | sources += [ | ||
| 45 | "allocator/allocator_shim.cc", | ||
| 46 | @@ -1419,7 +1430,7 @@ component("base") { | ||
| 47 | "allocator/allocator_shim_override_mac_symbols.h", | ||
| 48 | ] | ||
| 49 | } | ||
| 50 | - if (is_chromeos || is_linux) { | ||
| 51 | + if (is_chromeos || (is_linux && !is_openbsd)) { | ||
| 52 | sources += [ | ||
| 53 | "allocator/allocator_shim_override_cpp_symbols.h", | ||
| 54 | "allocator/allocator_shim_override_glibc_weak_symbols.h", | ||
| 55 | @@ -2134,6 +2145,30 @@ component("base") { | ||
| 56 | "linux_util.h", | ||
| 57 | ] | ||
| 58 | } | ||
| 59 | + } | ||
| 60 | + | ||
| 61 | + if (is_openbsd) { | ||
| 62 | + sources -= [ | ||
| 63 | + "files/file_path_watcher_linux.cc", | ||
| 64 | + "files/file_util_linux.cc", | ||
| 65 | + "files/scoped_file_linux.cc", | ||
| 66 | + "process/memory_linux.cc", | ||
| 67 | + "process/process_linux.cc", | ||
| 68 | + "system/sys_info_linux.cc", | ||
| 69 | + "process/process_iterator_linux.cc", | ||
| 70 | + "process/process_metrics_linux.cc", | ||
| 71 | + "process/process_handle_linux.cc" | ||
| 72 | + ] | ||
| 73 | + sources += [ | ||
| 74 | + "process/memory_stubs.cc", | ||
| 75 | + "process/process_handle_openbsd.cc", | ||
| 76 | + "process/process_iterator_openbsd.cc", | ||
| 77 | + "process/process_metrics_openbsd.cc", | ||
| 78 | + "system/sys_info_openbsd.cc", | ||
| 79 | + "files/file_path_watcher_kqueue.cc", | ||
| 80 | + "files/file_path_watcher_kqueue.h", | ||
| 81 | + "files/file_path_watcher_bsd.cc", | ||
| 82 | + ] | ||
| 83 | } | ||
| 84 | |||
| 85 | # iOS | ||
