Closed Bug 1790446 Opened 2 years ago Closed 2 years ago

Add build script to properly handle RNP's config.h.in file with #cmakedefine's instead of mangling during source updates

Categories

(Thunderbird :: Build Config, task)

Tracking

(thunderbird_esr102 fixed)

RESOLVED FIXED
107 Branch
Tracking Status
thunderbird_esr102 --- fixed

People

(Reporter: rjl, Assigned: rjl)

References

Details

Attachments

(3 files)

Mangling RNP's config.h.in via the update_rnp.sh script would be better handled by a build script that does the preprocessing at build time.

The generator script needs to handle the #cmakedefine lines and accept -D arguments to set additional DEFINE's beyond what is set at configure time in config.status.

Product: MailNews Core → Thunderbird
Version: unspecified → Trunk
Assignee: nobody → rob
Status: NEW → ASSIGNED

Right now config.h.in is rewritten when the RNP source is updated.
This has caused problems when new lines are added to it.

Depends on D157151

Target Milestone: --- → 107 Branch

Pushed by thunderbird@calypsoblue.org:
https://hg.mozilla.org/comm-central/rev/688752ceab6d
Stop rewriting RNP config.h.in when updating the source from upstream. r=dandarnell
https://hg.mozilla.org/comm-central/rev/dffc4e833cdf
Add build script to preprocess CMake config.h templates. r=dandarnell
https://hg.mozilla.org/comm-central/rev/b53ebf6b4a3f
Get RNP version during configure and set in config.h. r=dandarnell

Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED

Suggesting uplift to esr102, dependency for new RNP.

Attachment #9294317 - Flags: approval-comm-esr102?
Attachment #9294319 - Flags: approval-comm-esr102?
Attachment #9294320 - Flags: approval-comm-esr102?

Comment on attachment 9294320 [details]
Bug 1790446 - Get RNP version during configure and set in config.h. r=dandarnell

[Triage Comment]
Approved for esr102

Attachment #9294320 - Flags: approval-comm-esr102? → approval-comm-esr102+

Comment on attachment 9294317 [details]
Bug 1790446 - Stop rewriting RNP config.h.in when updating the source from upstream. r=dandarnell

[Triage Comment]
Approved for esr102

Attachment #9294317 - Flags: approval-comm-esr102? → approval-comm-esr102+

Comment on attachment 9294319 [details]
Bug 1790446 - Add build script to preprocess CMake config.h templates. r=dandarnell

[Triage Comment]
Approved for esr102

Attachment #9294319 - Flags: approval-comm-esr102? → approval-comm-esr102+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: