Closed
Bug 237282
Opened 21 years ago
Closed 20 years ago
Add build rule for preprocessed js components
Categories
(SeaMonkey :: Build Config, enhancement)
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla1.8beta1
People
(Reporter: alex, Assigned: alex)
References
Details
Attachments
(2 files)
1.08 KB,
patch
|
Details | Diff | Splinter Review | |
1.40 KB,
patch
|
cls
:
review+
|
Details | Diff | Splinter Review |
It would be nice to have a rule in rules.mk that does the same as
EXTRA_COMPONENTS but filters files through preprocessor.pl before copying to the
components dir.
patch coming up.
Assignee | ||
Comment 1•21 years ago
|
||
This patch adds ::lib & ::install rules that filter all files given in
JS_COMPONENTS through the preprocessor & copy them to the components dir.
Do we really need another define for this since EXTRA_COMPONENTS only contains
.js files?
Assignee: nobody → alex
Assignee | ||
Comment 3•21 years ago
|
||
OK, I can make another patch for that. Most makefiles that use EXTRA_COMPONENTS
need to be edited for that, since objdir builds will then require that file
names are prepended with "$(srcdir)/".
How about renaming EXTRA_COMPONENTS to JS_COMPONENTS, though? If we ever add
support for other similar components (e.g. phython components) we might not want
to put them through the preprocessor...
(In reply to comment #3)
> OK, I can make another patch for that. Most makefiles that use EXTRA_COMPONENTS
> need to be edited for that, since objdir builds will then require that file
> names are prepended with "$(srcdir)/".
Actually, they don't if you use the automatic make variable $^ (I think) in the
rule instead of copying JS_COMPONENTS again.
> How about renaming EXTRA_COMPONENTS to JS_COMPONENTS, though? If we ever add
> support for other similar components (e.g. phython components) we might not want
> to put them through the preprocessor...
I'm fine with the name change. After thinking about it some more though, I
think we may want to have an extra variable or something to use the
preprocessor. I'm guessing that in 98% of the cases, that's going to be an
unnecessary preprocessor call.
Assignee | ||
Comment 5•21 years ago
|
||
(In reply to comment #4)
> I'm fine with the name change. After thinking about it some more though, I
> think we may want to have an extra variable or something to use the
> preprocessor. I'm guessing that in 98% of the cases, that's going to be an
> unnecessary preprocessor call.
OK, how about renaming JS_COMPONENTS to PREPROCESSED_EXTRA_COMPONENTS and
keeping EXTRA_COMPONENTS as well?
Updated•20 years ago
|
Product: Browser → Seamonkey
*** Bug 277309 has been marked as a duplicate of this bug. ***
Comment 7•20 years ago
|
||
I prefer my patch from bug 277309, can I get that one reviewed?
Comment 8•20 years ago
|
||
Attachment #170772 -
Flags: review?(cls)
Attachment #170772 -
Flags: review?(cls) → review+
Comment 9•20 years ago
|
||
fixed on trunk
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.8beta
You need to log in
before you can comment on or make changes to this bug.
Description
•