Closed
Bug 976885
Opened 11 years ago
Closed 11 years ago
Port RCFLAGS to moz.build
Categories
(Firefox Build System :: General, defect)
Firefox Build System
General
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla30
People
(Reporter: ehsan.akhgari, Assigned: ehsan.akhgari)
References
Details
Attachments
(2 files)
(deleted),
patch
|
glandium
:
review-
|
Details | Diff | Splinter Review |
(deleted),
patch
|
glandium
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Assignee | ||
Comment 1•11 years ago
|
||
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → ehsan
Blocks: xulinmozbuild
Assignee | ||
Updated•11 years ago
|
Attachment #8381827 -
Flags: review?(mshal)
Attachment #8381827 -
Flags: review?(mh+mozilla)
Attachment #8381827 -
Flags: review?(gps)
Comment 2•11 years ago
|
||
Comment on attachment 8381827 [details] [diff] [review]
Port RCFLAGS to moz.build
Review of attachment 8381827 [details] [diff] [review]:
-----------------------------------------------------------------
::: browser/app/moz.build
@@ +58,5 @@
> + RCFLAGS += ['-DMOZ_PHOENIX']
> + if CONFIG['GNU_CC']:
> + RCFLAGS += ['--include-dir ' + SRCDIR]
> + else:
> + RCFLAGS += ['-I' + SRCDIR]
The --include-dir/-I business sounds like it should just be part of the command by default, instead of adding the same snippet over and over.
As for the remaining RCFLAGS, which are all -D flags, can't we just use DEFINES?
Attachment #8381827 -
Flags: review?(mshal)
Attachment #8381827 -
Flags: review?(mh+mozilla)
Attachment #8381827 -
Flags: review?(gps)
Attachment #8381827 -
Flags: review-
Comment 3•11 years ago
|
||
In fact, the command already uses INCLUDES and DEFINES... (although that filter-out should probably be on both ends)
ifdef GNU_CC
$(RC) $(RCFLAGS) $(filter-out -U%,$(DEFINES)) $(INCLUDES:-I%=--include-dir %) $(OUTOPTION)$@ $(_VPATH_SRCS)
else
$(RC) $(RCFLAGS) -r $(DEFINES) $(INCLUDES) $(OUTOPTION)$@ $(_VPATH_SRCS)
endif
Comment 4•11 years ago
|
||
(and INCLUDES should already have -I$(srcdir) in it)
Assignee | ||
Comment 5•11 years ago
|
||
So are you saying that I should just remove the variable?
Assignee | ||
Updated•11 years ago
|
Flags: needinfo?(mh+mozilla)
Comment 6•11 years ago
|
||
Yes, and replace the few RCFLAGS += -Dsomething with DEFINES[something] = True
And, obviously, check that this works properly.
Flags: needinfo?(mh+mozilla)
Assignee | ||
Comment 7•11 years ago
|
||
Assignee | ||
Updated•11 years ago
|
Attachment #8381901 -
Flags: review?(mshal)
Attachment #8381901 -
Flags: review?(mh+mozilla)
Attachment #8381901 -
Flags: review?(gps)
Comment 8•11 years ago
|
||
Comment on attachment 8381901 [details] [diff] [review]
Port RCFLAGS to moz.build
Review of attachment 8381901 [details] [diff] [review]:
-----------------------------------------------------------------
r+ provided the answer to the question below is yes.
::: webapprt/win/Makefile.in
@@ -36,5 @@
> -else
> -RCFLAGS += --include-dir $(srcdir)
> -endif
> -ifdef DEBUG
> -RCFLAGS += -DDEBUG
Do we really have -DDEBUG in DEFINES on debug builds?
Attachment #8381901 -
Flags: review?(mshal)
Attachment #8381901 -
Flags: review?(mh+mozilla)
Attachment #8381901 -
Flags: review?(gps)
Attachment #8381901 -
Flags: review+
Assignee | ||
Comment 9•11 years ago
|
||
(In reply to Mike Hommey [:glandium] from comment #8)
> Comment on attachment 8381901 [details] [diff] [review]
> Port RCFLAGS to moz.build
>
> Review of attachment 8381901 [details] [diff] [review]:
> -----------------------------------------------------------------
>
> r+ provided the answer to the question below is yes.
>
> ::: webapprt/win/Makefile.in
> @@ -36,5 @@
> > -else
> > -RCFLAGS += --include-dir $(srcdir)
> > -endif
> > -ifdef DEBUG
> > -RCFLAGS += -DDEBUG
>
> Do we really have -DDEBUG in DEFINES on debug builds?
Hmm, I thought we did, but it seems like we don't. I'll fix this when landing.
Assignee | ||
Comment 10•11 years ago
|
||
Comment 11•11 years ago
|
||
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla30
Updated•7 years ago
|
Product: Core → Firefox Build System
You need to log in
before you can comment on or make changes to this bug.
Description
•