Closed Bug 775338 Opened 14 years ago Closed 14 years ago

make rule to install JS modules into specific directory

Categories

(Firefox Build System :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 773933

People

(Reporter: gps, Unassigned)

References

Details

Attachments

(1 file)

We need a generic rule in the rules.mk hierarchy to install JS modules into a custom subdirectory under modules/. Currently, EXTRA_JS_MODULES blindly assumes $(FINAL_TARGET)/modules. We need a way to inject an extra path in there: $(FINAL_TARGET)/modules/$(EXTRA)/foo.js
It appears all the cool kids are doing this so I might as well as part of this bug. I have little inclination to take the meat of this bug, however.
Attachment #643709 - Flags: review?(mh+mozilla)
Comment on attachment 643709 [details] [diff] [review] Part 1: Move JS modules rules into their own mk file, v1 This conflicts with bug 770426, which, by the way, would essentially fix this bug.
Attachment #643709 - Flags: review?(mh+mozilla) → review-
Should I just dupe this bug then? How is bug 770426 different from bug 701393?
(In reply to Gregory Szorc [:gps] from comment #3) > Should I just dupe this bug then? You can. Or you can make it a dep and add a helper on top of bug 770426 > How is bug 770426 different from bug 701393? bug 770426 only addresses the cases in rules.mk, without being completely generic and working everywhere in the tree.
(In reply to Mike Hommey [:glandium] from comment #4) > (In reply to Gregory Szorc [:gps] from comment #3) > > Should I just dupe this bug then? > > You can. Or you can make it a dep and add a helper on top of bug 770426 How would this helper look like? Bug 770426 is now in inbound, and we'd like to figure out what we should do in bug 756542 to install the addon-sdk modules in a subdirectory (so that they map to "resource://gre/modules/commonjs/").
Blocks: 756542
(In reply to Paolo Amadini [:paolo] from comment #5) > (In reply to Mike Hommey [:glandium] from comment #4) > > (In reply to Gregory Szorc [:gps] from comment #3) > > > Should I just dupe this bug then? > > > > You can. Or you can make it a dep and add a helper on top of bug 770426 > > How would this helper look like? Bug 770426 is now in inbound, and we'd like > to > figure out what we should do in bug 756542 to install the addon-sdk modules > in a > subdirectory (so that they map to "resource://gre/modules/commonjs/"). At this point, just use JS_MODULES_PATH := $(FINAL_TARGET)/modules/commonjs, like browser/components/sessionstore/src/Makefile.in does.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → DUPLICATE
(In reply to Mike Hommey [:glandium] from comment #6) > At this point, just use JS_MODULES_PATH := $(FINAL_TARGET)/modules/commonjs, > like browser/components/sessionstore/src/Makefile.in does. Thanks!
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: