Closed Bug 170737 (xulpp) Opened 22 years ago Closed 22 years ago

Revive XUL preprocessor

Categories

(Firefox :: General, defect)

x86
All
defect
Not set
normal

Tracking

()

VERIFIED FIXED
Phoenix0.3

People

(Reporter: bugzilla, Assigned: bryner)

Details

(Keywords: perf)

Attachments

(1 file, 3 obsolete files)

It'd be nice if we could get the xulpp working again. There are still two platform overlays in browser.xul.
blue sky target.
Keywords: perf
OS: Windows 98 → All
blue sky target.
Target Milestone: --- → Phoenix0.2
Target Milestone: Phoenix0.2 → Phoenix0.3
snooping, as this would help other projects as well.
*** Bug 135533 has been marked as a duplicate of this bug. ***
Attached patch patch (obsolete) — Splinter Review
This hooks up hixie's preprocessor (see http://software.hixie.ch/utilities/unix/preprocessor/ ) You can mark a file as needing preprocessed in jar.mn by putting a * as the first character on a line. If you need to specify "+" for overrides, put it after the *.
shouldn't this be Mozilla: Build Config rather than Phoenix: General
Attached patch minor tweak (obsolete) — Splinter Review
die() if the preprocessor command fails
Attachment #101863 - Attachment is obsolete: true
Comment on attachment 101930 [details] [diff] [review] minor tweak Just noting what I stated on IRC. Since this new jar.mn syntax & functionality isn't meant for general use (ie, there's no support for the mac classic build's Jar.pm module), there should be some obvious indicator that this is meant only for the phoenix builds and shouldn't be enabled for the mozilla builds by default.
Attachment #101930 - Flags: needs-work+
>this is meant only >for the phoenix builds and shouldn't be enabled for the mozilla builds by >default. why shouldn't mozilla benefit from the changes? wouldn't it be a better idea to fix this to work on the mac, and use it in mozilla as well?
Attached patch patch #3 (obsolete) — Splinter Review
ifdef the rules MOZ_PHOENIX; fix a bug in checking the return result of the system() call in make-jars.pl.
Attachment #101930 - Attachment is obsolete: true
biesi: fix it for mac classic and it can of course be turned on for the trunk. As it is, none of the developers have the time to do so.
Comment on attachment 102183 [details] [diff] [review] patch #3 attached the wrong patch
Attachment #102183 - Attachment is obsolete: true
This is what I meant to post earlier.
Alias: xulpp
jj, leaf and cls, according to hixie / bryner, the only thing stopping us from having this on the trunk is mac classic. I think we could make really good use of this on the trunk. how hard would it be to make it work for mac classic?
Based upon my previous experience with the mac classic build system, it would involve rewritting preprocessor.pl so that it could be loaded as a perl module (.pm) instead of invoking a separate perl process. Simon may be able to point out any other problem spots.
The Mac classsic build doesn't run make-jars.pl; it has its own jar packaging stuff. So making this work for Mac classic is non-trivial, and of questionable utility, since we're looking towards Macho (i.e. unix-based) builds now. If we don't add xulpp support to mac classic, will this break the builds? Or is this an optional 'optimization' thing?
a=asa for checkin to 1.2b
Simon: It's not just an optimisation -- a file that requires the preprocessor won't be usable without being preprocessed.
> If we don't add xulpp support to mac classic, will this break the builds? Or > is this an optional 'optimization' thing? right now, it's phoenix only. my understanding is if we wanted to use the preprocessor on the trunk, we'd have to have it working on all platforms that we plan on building on. xul with: #ifdef DEBUG <button label="debug" oncommand="dump(getState() + '\n')" /> #endif would not get pre-processed out, and would fail on startup.
checked in.
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
>#ifdef DEBUG > <button label="debug" oncommand="dump(getState() + '\n')" /> >#endif that would be really cool to have
well it wouldn't fail on startup (it's still valid XUL) but it would definitely cause a smoketest blocker...
Bug 135533 was inappropriately closed against this bug since 135533 requests a fix on the trunk and this closed bug has not yet resulted in a fix on the trunk. If this bug is not going to be re-opened for a trunk fix, then I'm going to reopen 135533. Please let me know which bug you prefer. Steve
v.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: