From 27bedd8c9d8db0b2c8c7bf7ab050a8349d25cf59 Mon Sep 17 00:00:00 2001 From: Bert van der Weerd Date: Fri, 26 Nov 2021 23:58:14 +0100 Subject: [PATCH] new mozconfig --- assets/mozconfig | 49 +-------------------------------------- assets/mozconfig.sample.1 | 38 ++++++++++++++++++++++++++++++ assets/mozconfig.windows | 45 +++++++++++++++++++++++++++++++++++ 3 files changed, 84 insertions(+), 48 deletions(-) mode change 100644 => 120000 assets/mozconfig create mode 100644 assets/mozconfig.sample.1 create mode 100644 assets/mozconfig.windows diff --git a/assets/mozconfig b/assets/mozconfig deleted file mode 100644 index 2427834..0000000 --- a/assets/mozconfig +++ /dev/null @@ -1,48 +0,0 @@ -ac_add_options --enable-application=browser - -# This supposedly speeds up compilation (We test through dogfooding anyway) -ac_add_options --disable-tests -ac_add_options --enable-release -ac_add_options --enable-hardening - -ac_add_options --disable-debug -#ac_add_options --enable-debug - -ac_add_options --enable-rust-simd -#ac_add_options --disable-rust-simd - -ac_add_options --enable-optimize -#ac_add_options --disable-optimize - - -# Branding -ac_add_options --enable-update-channel=release - -# theming bugs: ac_add_options --with-app-name=librewolf -# theming bugs: ac_add_options --with-app-basename=LibreWolf -ac_add_options --with-app-name=librewolf -ac_add_options --with-app-basename=LibreWolf - - - -ac_add_options --with-branding=browser/branding/librewolf -ac_add_options --with-distribution-id=io.gitlab.librewolf-community -ac_add_options --with-unsigned-addon-scopes=app,system -ac_add_options --allow-addon-sideload -# see issue # https://gitlab.com/librewolf-community/browser/arch/-/issues/49 -export MOZ_REQUIRE_SIGNING= - -# Features -ac_add_options --disable-crashreporter -ac_add_options --disable-updater -ac_add_options --disable-default-browser-agent - -# Disables crash reporting, telemetry and other data gathering tools -mk_add_options MOZ_CRASHREPORTER=0 -mk_add_options MOZ_DATA_REPORTING=0 -mk_add_options MOZ_SERVICES_HEALTHREPORT=0 -mk_add_options MOZ_TELEMETRY_REPORTING=0 - -# testing.. -# MOZ_APP_NAME=librewolf -# This gives the same theming issue as --with-app-name=librewolf diff --git a/assets/mozconfig b/assets/mozconfig new file mode 120000 index 0000000..28ab3ac --- /dev/null +++ b/assets/mozconfig @@ -0,0 +1 @@ +mozconfig.sample.1 \ No newline at end of file diff --git a/assets/mozconfig.sample.1 b/assets/mozconfig.sample.1 new file mode 100644 index 0000000..aa546a7 --- /dev/null +++ b/assets/mozconfig.sample.1 @@ -0,0 +1,38 @@ +# we want a full build of firefox. +ac_add_options --enable-application=browser +ac_add_options --disable-artifact-builds + +# for crosscompiling... +#ac_add_options --target=x86_64-pc-mingw32 +#ac_add_options --host=x86_64-pc-mingw32 +#ac_add_options --target=x86_64-apple-darwin +#ac_add_options --with-macos-sdk=... + +# optimization and disabling unwanted features. +ac_add_options --disable-crashreporter +ac_add_options --disable-debug +ac_add_options --disable-default-browser-agent +ac_add_options --disable-tests +ac_add_options --disable-updater +ac_add_options --enable-hardening +ac_add_options --enable-optimize +ac_add_options --enable-release +ac_add_options --enable-rust-simd + +# add-ons.. +ac_add_options --allow-addon-sideload +ac_add_options --with-unsigned-addon-scopes=app,system + + +# disables crash reporting, telemetry and other tools +mk_add_options MOZ_CRASHREPORTER=0 +mk_add_options MOZ_DATA_REPORTING=0 +mk_add_options MOZ_SERVICES_HEALTHREPORT=0 +mk_add_options MOZ_TELEMETRY_REPORTING=0 + + +# see issue # https://gitlab.com/librewolf-community/browser/arch/-/issues/49 +export MOZ_REQUIRE_SIGNING= + +# branding.. +ac_add_options --with-branding=browser/branding/librewolf diff --git a/assets/mozconfig.windows b/assets/mozconfig.windows new file mode 100644 index 0000000..408a784 --- /dev/null +++ b/assets/mozconfig.windows @@ -0,0 +1,45 @@ +ac_add_options --enable-application=browser + +# This supposedly speeds up compilation (We test through dogfooding anyway) +ac_add_options --disable-tests +ac_add_options --enable-release +ac_add_options --enable-hardening + +ac_add_options --disable-debug +#ac_add_options --enable-debug + +ac_add_options --enable-rust-simd +#ac_add_options --disable-rust-simd + +ac_add_options --enable-optimize +#ac_add_options --disable-optimize + + +# Branding +ac_add_options --enable-update-channel=release + +# theming bugs: ac_add_options --with-app-name=librewolf +# theming bugs: ac_add_options --with-app-basename=LibreWolf +ac_add_options --with-app-name=librewolf +ac_add_options --with-app-basename=LibreWolf + + + +ac_add_options --with-branding=browser/branding/librewolf +ac_add_options --with-distribution-id=io.gitlab.librewolf-community +ac_add_options --with-unsigned-addon-scopes=app,system +ac_add_options --allow-addon-sideload +# see issue # https://gitlab.com/librewolf-community/browser/arch/-/issues/49 +export MOZ_REQUIRE_SIGNING= + +# Features +ac_add_options --disable-crashreporter +ac_add_options --disable-updater +ac_add_options --disable-default-browser-agent + +# Disables crash reporting, telemetry and other data gathering tools +mk_add_options MOZ_CRASHREPORTER=0 +mk_add_options MOZ_DATA_REPORTING=0 +mk_add_options MOZ_SERVICES_HEALTHREPORT=0 +mk_add_options MOZ_TELEMETRY_REPORTING=0 +