Enable the NSS gyp build to distinguish a Mozilla build from a Comm build
Categories
(Firefox Build System :: General, enhancement)
Tracking
(firefox67 fixed)
Tracking | Status | |
---|---|---|
firefox67 | --- | fixed |
People
(Reporter: KaiE, Assigned: KaiE)
References
Details
Attachments
(1 file, 7 obsolete files)
When building Mozilla, inside the build scripts, I must be able to detect, whether it's being built for Firefox, or for one of the Comm applications (Thunderbird/Suite).
The reason is bug 1529308 and bug 1529227.
Because cmsutil needs more symbols than Firefox wants to export, I'd like to build cmsutil only when NSS is built as part of a Thunderbird/Suite build, but not if it's build inside Firefox.
In theory I could look at the string names for MOZ_APP_BASENAME, and compare with the Thunderbird and Suite names, but that seems less ideal, should anyone produce a derived build with a different name, or if we ever change brand names.
It might be better to introduce a new variable for that.
How about adding MOZ_COMM=1 ?
Assignee | ||
Comment 1•5 years ago
|
||
Assignee | ||
Comment 2•5 years ago
|
||
Assignee | ||
Comment 3•5 years ago
|
||
Assignee | ||
Comment 5•5 years ago
|
||
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Updated•5 years ago
|
Comment 6•5 years ago
|
||
How about using MOZ_BUILD_APP?
For Thunderbird it will be set to "comm/mail", and Seamonkey it's "comm/suite".
The other way I've seen it done in the build code is by checking for "$commtopsrcdir"..
Assignee | ||
Comment 7•5 years ago
|
||
Thanks a lot, using commtopsrcdir works for me.
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 8•5 years ago
|
||
This translates the CONFIG flag into a gyp variable, which is used by bug 1529308.
Assignee | ||
Comment 9•5 years ago
|
||
Comment on attachment 9046778 [details] [diff] [review] 1530671-v2.patch Ted, CONFIG['commtopsrcdir'] is only defined when we do a thunderbird of seamonkey build. If set, it sets a gyp variable, so we can use it in the NSS build for bug 1529308.
Comment 10•5 years ago
|
||
If we can use MOZ_BUILD_APP I think that would be preferable.
Sooner rather than later I'd like to make progress with having comm-central essentially a branch off mozilla-central, and then commtopsrcdir would probably not be a thing anymore.
Assignee | ||
Comment 11•5 years ago
|
||
Comment on attachment 9046778 [details] [diff] [review] 1530671-v2.patch Ok, let me make a new patch that uses MOZ_BUILD_APP
Assignee | ||
Comment 12•5 years ago
|
||
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 13•5 years ago
|
||
patch v4 uses a simpler and more generic syntax
(found at https://searchfox.org/comm-central/source/mailnews/moz.build#86 )
Assignee | ||
Comment 14•5 years ago
|
||
Assignee | ||
Updated•5 years ago
|
Comment 15•5 years ago
|
||
Pushed by kaie@kuix.de: https://hg.mozilla.org/integration/autoland/rev/082a7bbf945a Title: Enable the NSS gyp build to distinguish a Mozilla build from a Comm build r=glandium
Comment 16•5 years ago
|
||
bugherder |
Description
•