Closed Bug 237282 Opened 21 years ago Closed 20 years ago

Add build rule for preprocessed js components

Categories

(SeaMonkey :: Build Config, enhancement)

x86
All
enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla1.8beta1

People

(Reporter: alex, Assigned: alex)

References

Details

Attachments

(2 files)

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.
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
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.
(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?
Product: Browser → Seamonkey
*** Bug 277309 has been marked as a duplicate of this bug. ***
I prefer my patch from bug 277309, can I get that one reviewed?
Attachment #170772 - Flags: review?(cls)
Attachment #170772 - Flags: review?(cls) → review+
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.

Attachment

General

Creator:
Created:
Updated:
Size: