Commit graph

58 commits

Author SHA1 Message Date
athenian200
b652dd59ae MoonchildProductions#1251 - Part 7: All the posix_m* memory-related stuff, gathered together.
https://bugzilla.mozilla.org/show_bug.cgi?id=1158445
https://bugzilla.mozilla.org/show_bug.cgi?id=963983
https://bugzilla.mozilla.org/show_bug.cgi?id=1542758

Solaris madvise and malign don't perfectly map to their POSIX counterparts, and some Linux versions (especially Android) don't define the POSIX counterparts at all, so options are limited. Ideally posix_madvise and posix_malign should be the safer and more portable options for all platforms.
2019-11-04 11:52:22 +08:00
athenian200
afb2e3a054 MoonchildProductions#1251 - Part 4: Core build system changes, lots of libevent/IPC junk.
This is mostly ifdefs, but as you can see, Solaris is actually a lot like Linux. They're both more SysV than BSD at core, and most of the differences have more to do with Solaris not using glibc than anything else.

I still need to audit a lot of these changes and understand why they're needed and what the alternative approaches are. After this patch, most of the core functionality needed to build Solaris is here.
2019-11-04 11:52:17 +08:00
athenian200
6de8a0f12d MoonchildProductions#1251 - Part 1: Restore initial Solaris support, fixed up.
Compared with what Pale Moon had for Solaris originally, this is mostly the same zero point I started patching from, but I've made the following changes here after reviewing all this initial code I never looked at closely before.

1. In package-manifest.in for both Basilisk and Pale Moon, I've made the SPARC code for libfreebl not interefere with the x86 code, use the proper build flags, and also updated it to allow a SPARC64 build which is more likely to be used than the 32-bit SPARC code we had there.

2. See Mozilla bug #832272 and the old rules.mk patch from around Firefox 30 in oracle/solaris-userland. I believe they screwed up NSINSTALL on Solaris when they were trying to streamline the NSS buildsystem, because they started having unexplained issues with it around that time after Firefox 22 that they never properly resolved until Mozilla began building NSS with gyp files. I'm actually not even sure how relevant the thing they broke actually is to Solaris at this point, bug 665509 is so old it predates Firefox itself and goes back to the Mozilla suite days. I believe $(INSTALL) -t was wrong, and they meant $(NSINSTALL) -t because that makes more sense and is closer to what was there originally. It's what they have for WINNT, and it's possible a fix more like that could serve for Solaris as well. Alternatively, we could get rid of all these half-broken Makefiles and start building NSS with gyp files like Mozilla did.

3. I've completely cut out support for the Sun compiler and taken into account the reality that everyone builds Firefox (and therefore its forks) with GCC now on Solaris. This alone helped clean up a lot of the uglier parts of the code.

4. I've updated all remaining SOLARIS build flags to the newer XP_SOLARIS, because the SOLARIS flag is no longer set when building Solaris.

5. I've confirmed the workaround in gtxFontconfigFonts.cpp is no longer necessary. The Solaris people got impatient about implementing a half-baked patch for a fontconfig feature that wasn't ready yet back in 2009, and somehow convinced Mozilla to patch their software to work around it when really they should have just fixed or removed their broken fontconfig patch. The feature they wanted has since been implemented properly, and no version of Solaris still uses the broken patch that required this fix. If anyone had ever properly audited this code, it would have been removed a long time ago.
2019-11-04 11:52:13 +08:00
wolfbeast
5449e900ba Issue #1226 - Explicitly enable sse2 on x86_64 also.
Although it's enabled by default in gcc (should be, anyway!), we're
being explicit here for 64-bit x86 platforms here also. This matches the
old behavior.
2019-09-20 22:14:44 +08:00
wolfbeast
3686403436 Don't assume Intel architecture for compiler optimizations on Linux/gcc.
This only adds SSE2 flags when the CPU architecture is correct for it.
Resolves #1226
2019-09-20 22:14:42 +08:00
Ascrod
cf71a30b16 Issue #1217 - Add support for (later versions of) the Windows 10 SDK 2019-09-06 23:49:23 +08:00
Matt A. Tobin
c135f205d9 [Pale Moon] Add a configure flag to functionally disable personas at build time 2019-07-05 21:30:02 +08:00
Matt A. Tobin
c9b411d6cd Issue #1053 - Drop support Android and remove Fennec - Part 1a: Remove mobile/android 2019-04-27 08:51:42 +08:00
wolfbeast
0a50553673 Issue #187: Remove solaris 1st party code OS checks. 2019-04-04 20:26:29 +08:00
trav90
22183c7754 Remove OMX related options from configure 2019-02-16 00:22:39 +08:00
NTD
38e84217a3 [PALEMOON] Complete making Sync optional at build time 2019-02-16 00:20:51 +08:00
Gaming4JC
3c4b6babee Issue #795 - Make nsIUserInfo component optional
This allows the nsIUserinfo component to be disabled with --disable-userinfo in mozconfig
at build time, but leaves it on by default to avoid any compatibility issues in existing
applications.
2019-02-16 00:18:11 +08:00
Moonchild
d0e0acb1fa Revert "Make nsIUserInfo component optional with --disable-userinfo at build time" 2019-02-16 00:18:05 +08:00
Gaming4JC
5d075cfe31 Issue #795 - Make nsIUserInfo component optional
This allows the nsIUserinfo component to be disabled with --disable-userinfo in mozconfig
at build time, but leaves it on by default to avoid any compatibility issues in existing
applications.
2019-02-16 00:17:59 +08:00
trav90
eb98eba938 [GCC] Add -Wno-noexcept-type to the js build flags 2019-02-16 00:12:48 +08:00
trav90
8c17dc77d0 Disable -Werror on -Wmultistatement-macros
Silences compiler warning spam with GCC 8.
2019-02-16 00:11:00 +08:00
wolfbeast
d224ddb0e5 Issue #303 Part 2: Update build files for the new location 2019-02-16 00:00:40 +08:00
trav90
3f87aa1a69 Always build with SSE2 support when using GCC 2019-02-16 00:00:14 +08:00
wolfbeast
f4a29c2947 Teach moz.configure about --enable-precompiled-startupcache 2019-02-15 23:59:58 +08:00
Moonchild
170f2ade41 Revert "Always build with SSE2 support & display an error if not available" 2019-02-15 23:59:11 +08:00
trav90
10bc6c2b0d Remove extraneous SSE flag 2019-02-15 23:59:05 +08:00
trav90
1e8a7b041e Tweak SSE/SSE2 GCC flags 2019-02-15 23:59:04 +08:00
trav90
bbc27e01ae Always build with SSE2 support when using GCC 2019-02-15 23:59:02 +08:00
wolfbeast
92fbd042f5 Remove the Dark Matter Detector (DMD) Memeory debugger component.
This resolves #376.
2019-02-15 23:58:31 +08:00
wolfbeast
fd9202fef0 Remove moz_widget_toolkit_gonk
Tag #288
2019-02-15 23:57:24 +08:00
wolfbeast
74df182488 Remove other gonk widget conditionals and unused files.
Tag #288.
2019-02-15 23:57:15 +08:00
NTD
b7158e06ac Use application specific application.ini 2019-02-15 23:56:27 +08:00
wolfbeast
127b2c99dc Issue #325 Part 15: Remove ENABLE_INTL_API and EXPOSE_INTL_API flags. 2019-02-15 23:56:20 +08:00
wolfbeast
b19e3c348c Remove the option to build without INTL/ICU
This resolves #324.
2019-02-15 23:55:55 +08:00
wolfbeast
c8462db202 Remove sandbox ductwork conditional code. 2019-02-15 23:55:41 +08:00
wolfbeast
8ffcc15d3f Move --enable-tests out of Python configure and flip the default. 2019-02-15 23:53:16 +08:00
wolfbeast
d804882857 Remove jemalloc 4 from our tree. 2019-02-15 23:52:10 +08:00
wolfbeast
797ca533f9 Remove support for making jemalloc4 the default memory allocator. 2019-02-15 23:52:09 +08:00
wolfbeast
c76d18a40d Remove support for system jemalloc. 2019-02-15 23:52:07 +08:00
NTD
f0536c394b Fix preprocessor conditional precedence in application.ini 2019-02-15 23:49:08 +08:00
NTD
b72012f9c2 Resolve issues with application.ini not allowing non-mcp applications to be official and have their own vendor
Also add BinOC cause two words breaks the build system
2019-02-15 23:49:07 +08:00
trav90
f02ba306ef Style fix 2019-02-15 23:48:28 +08:00
trav90
b2917cce1d Force use of level 1 Liftetime DSE optimization on modern GCC
Instead of completely disabling it.
2019-02-15 23:48:26 +08:00
wolfbeast
d37246737b Convert MOZILLA_OFFICIAL conditionals to MC_OFFICIAL where needed.
- `--enable-official-branding` implies `MC_OFFICIAL` (no need to specifically set it)
- `--enable-official-vendor` can be used to set `MC_OFFICIAL` on builds without `--enable-official-branding` that should still be considered official release versions.
- `MC_OFFICIAL` implies `--enable-release`, meaning `DEVELOPER_OPTIONS` isn't set
- `MC_OFFICIAL` makes `nsXULAppInfo.getIsOfficial` return `true`
- `MC_OFFICIAL` makes `AppConstants.MOZILLA_OFFICIAL` (for compatibility in extensions) and `AppConstants.MC_OFFICIAL` return `true`
- Optional, for the time being: `MOZILLA_OFFICIAL` is still present in some places in case someone wants to build a Mozilla-alike official application and has the rights and necessary keys to use Mozilla-official third-party services. This must always be combined with `MC_OFFICIAL` to have a sane combination of defines. This may be removed in the future.
2019-02-15 23:44:10 +08:00
trav90
618138082f [GTK3] Get styles for menu label, button text and combobox text colors from WidgetCache 2019-02-15 23:43:40 +08:00
NTD
332daa081a Update configure variable verification 2019-02-15 23:41:07 +08:00
wolfbeast
013cb18fed Remove MOZ_CRASHREPORTER_NO_REPORT except in /testing 2019-02-15 23:39:55 +08:00
wolfbeast
434f3590e3 Remove base conditional code for crash reporter and injector. 2019-02-15 23:39:53 +08:00
wolfbeast
963560a1d2 Remove Rust from the tree.
Part 4 for #58
2019-02-15 23:36:42 +08:00
NTD
29b56a9e55 Update configure variable verification 2019-02-15 23:34:12 +08:00
wolfbeast
297f13362a Move --enable-eme out of mozconfigure 2019-02-15 23:33:57 +08:00
NTD
16ee2a0626 Split MOZ_DEVTOOLS into MOZ_DEVTOOLS (client) and MOZ_DEVTOOLS_SERVER (backend) and make both optional 2019-02-15 23:32:43 +08:00
NTD
fb319fb148 Hook up the Tycho Add-on Manager to the build system 2019-02-15 23:31:13 +08:00
wolfbeast
7161ba5ce9 Don't bust when addon-sdk dir exists but is empty (e.g. after pull) 2019-02-15 23:31:07 +08:00
NTD
23b67db438 Move Add-on SDK source to toolkit/jetpack 2019-02-15 23:30:56 +08:00