Closed Bug 899868 Opened 12 years ago Closed 12 years ago

Support compiling files from other source directories

Categories

(Firefox Build System :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: glandium, Assigned: mshal)

References

Details

Bug 888016 only addressed .cpp files. We should also take care of other compilation units (c, objc, etc.). This is going to be necessary for bug 891541, which adds a C file compiled with VPATH.
Bug 888016 should work with anything that goes in CSRCS, SSRCS, CPPSRCS, CMSRCS, CMMSRCS, and ASFILES. I tried with CSRCS and I believe it works: moz.build: CSRCS += ['foo/ok.c'] Behaves the same as: Makefile.in: VPATH += $(srcdir)/foo moz.build: CSRCS += ['ok.c'] However, the HOST_* variables weren't converted in 888016 - is that was is needed for bug 891541?
Ah, i don't know what i was smoking, i missed the $(notdir) in rules.mk.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → INVALID
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.