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)
Firefox Build System
General
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 773933
People
(Reporter: gps, Unassigned)
References
Details
Attachments
(1 file)
|
9.76 KB,
patch
|
glandium
:
review-
|
Details | Diff | Splinter Review |
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
| Reporter | ||
Comment 1•14 years ago
|
||
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 2•14 years ago
|
||
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-
| Reporter | ||
Comment 3•14 years ago
|
||
Should I just dupe this bug then? How is bug 770426 different from bug 701393?
Comment 4•14 years ago
|
||
(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.
Comment 5•14 years ago
|
||
(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
Comment 6•14 years ago
|
||
(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.
Updated•14 years ago
|
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → DUPLICATE
Comment 8•14 years ago
|
||
(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!
Updated•8 years ago
|
Product: Core → Firefox Build System
You need to log in
before you can comment on or make changes to this bug.
Description
•