diff options
author | Carlos J. Puga Medina <cpm@FreeBSD.org> | 2017-04-29 23:00:33 +0000 |
---|---|---|
committer | Carlos J. Puga Medina <cpm@FreeBSD.org> | 2017-04-29 23:00:33 +0000 |
commit | 633f9296f4a9a6d9f4988a62658038fdd8c8cc4f (patch) | |
tree | 2f4294c7dbe2c6fd14de23902212e77c6a108530 /www/iridium/files/patch-build_config_BUILDCONFIG.gn | |
parent | www/chromium: update to 58.0.3029.81 (diff) |
Add new port www/iridium
Iridium is a free, open, and libre browser modification of the Chromium
code base, with privacy being enhanced in several key areas.
Automatic transmission of partial queries, keywords, metrics to central
services is inhibited and only occurs with consent.
WWW: https://iridiumbrowser.de/
Notes
Notes:
svn path=/head/; revision=439777
Diffstat (limited to 'www/iridium/files/patch-build_config_BUILDCONFIG.gn')
-rw-r--r-- | www/iridium/files/patch-build_config_BUILDCONFIG.gn | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/www/iridium/files/patch-build_config_BUILDCONFIG.gn b/www/iridium/files/patch-build_config_BUILDCONFIG.gn new file mode 100644 index 000000000000..841b49d3906f --- /dev/null +++ b/www/iridium/files/patch-build_config_BUILDCONFIG.gn @@ -0,0 +1,66 @@ +--- build/config/BUILDCONFIG.gn.orig 2017-04-19 19:06:28 UTC ++++ build/config/BUILDCONFIG.gn +@@ -131,12 +131,13 @@ declare_args() { + is_official_build = false + + # Whether we're a traditional desktop unix. +- is_desktop_linux = current_os == "linux" ++ is_desktop_linux = current_os == "linux" || current_os == "bsd" + + # Set to true when compiling with the Clang compiler. Typically this is used + # to configure warnings. + is_clang = current_os == "mac" || current_os == "ios" || +- current_os == "linux" || current_os == "chromeos" ++ current_os == "linux" || current_os == "chromeos" || ++ current_os == "bsd" + + # Allows the path to a custom target toolchain to be injected as a single + # argument, and set as the default toolchain. +@@ -185,8 +186,8 @@ if (host_toolchain == "") { + # TODO(dpranke): Add some sort of assert here that verifies that + # no toolchain omitted host_toolchain from its toolchain_args(). + +- if (host_os == "linux") { +- if (target_os != "linux") { ++ if (host_os == "linux" || host_os == "bsd") { ++ if (target_os != "linux" || target_os != "bsd") { + # TODO(dpranke) - is_clang normally applies only to the target + # build, and there is no way to indicate that you want to override + # it for both the target build *and* the host build. Do we need to +@@ -222,7 +223,7 @@ if (target_os == "android") { + } else { + _default_toolchain = "//build/toolchain/android:android_$target_cpu" + } +-} else if (target_os == "chromeos" || target_os == "linux") { ++} else if (target_os == "chromeos" || target_os == "linux" || target_os == "bsd") { + # See comments in build/toolchain/cros/BUILD.gn about board compiles. + if (is_clang) { + _default_toolchain = "//build/toolchain/linux:clang_$target_cpu" +@@ -342,8 +343,17 @@ if (current_os == "win" || current_os == + is_nacl = false + is_posix = true + is_win = false ++} else if (current_os == "bsd") { ++ is_android = false ++ is_chromeos = false ++ is_ios = false ++ is_linux = false ++ is_bsd = true ++ is_mac = false ++ is_nacl = false ++ is_posix = true ++ is_win = false + } +- + # ============================================================================= + # SOURCES FILTERS + # ============================================================================= +@@ -412,7 +422,7 @@ if (!is_ios) { + if (!is_mac && !is_ios) { + sources_assignment_filter += [ "*.mm" ] + } +-if (!is_linux) { ++if (!is_linux && !is_bsd) { + sources_assignment_filter += [ + "*_linux.h", + "*_linux.cc", |