Closed
Bug 170737
(xulpp)
Opened 22 years ago
Closed 22 years ago
Revive XUL preprocessor
Categories
(Firefox :: General, defect)
Tracking
()
VERIFIED
FIXED
Phoenix0.3
People
(Reporter: bugzilla, Assigned: bryner)
Details
(Keywords: perf)
Attachments
(1 file, 3 obsolete files)
12.67 KB,
patch
|
netscape
:
review+
|
Details | Diff | Splinter Review |
It'd be nice if we could get the xulpp working again. There are still two
platform overlays in browser.xul.
Reporter | ||
Updated•22 years ago
|
Target Milestone: Phoenix0.2 → Phoenix0.3
Comment 3•22 years ago
|
||
snooping, as this would help other projects as well.
Assignee | ||
Comment 4•22 years ago
|
||
*** Bug 135533 has been marked as a duplicate of this bug. ***
Assignee | ||
Comment 5•22 years ago
|
||
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 *.
Comment 6•22 years ago
|
||
shouldn't this be Mozilla: Build Config rather than Phoenix: General
Assignee | ||
Comment 7•22 years ago
|
||
die() if the preprocessor command fails
Attachment #101863 -
Attachment is obsolete: true
Comment 8•22 years ago
|
||
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+
Comment 9•22 years ago
|
||
>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?
Assignee | ||
Comment 10•22 years ago
|
||
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
Comment 11•22 years ago
|
||
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.
Assignee | ||
Comment 12•22 years ago
|
||
Comment on attachment 102183 [details] [diff] [review]
patch #3
attached the wrong patch
Attachment #102183 -
Attachment is obsolete: true
Comment 13•22 years ago
|
||
I lack a Mac, alas :/
Assignee | ||
Comment 14•22 years ago
|
||
This is what I meant to post earlier.
Updated•22 years ago
|
Alias: xulpp
Comment 15•22 years ago
|
||
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?
Comment 16•22 years ago
|
||
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.
Comment 17•22 years ago
|
||
Comment on attachment 102317 [details] [diff] [review]
the real patch #3
r=cls
Attachment #102317 -
Flags: review+
Comment 18•22 years ago
|
||
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?
Comment 19•22 years ago
|
||
a=asa for checkin to 1.2b
Comment 20•22 years ago
|
||
Simon: It's not just an optimisation -- a file that requires the preprocessor
won't be usable without being preprocessed.
Comment 21•22 years ago
|
||
> 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.
Assignee | ||
Comment 22•22 years ago
|
||
checked in.
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Comment 23•22 years ago
|
||
>#ifdef DEBUG
> <button label="debug" oncommand="dump(getState() + '\n')" />
>#endif
that would be really cool to have
Comment 24•22 years ago
|
||
well it wouldn't fail on startup (it's still valid XUL) but it would definitely
cause a smoketest blocker...
Comment 25•22 years ago
|
||
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
You need to log in
before you can comment on or make changes to this bug.
Description
•