Closed Bug 892861 Opened 11 years ago Closed 11 years ago

Remove useless -D flags 'IMPL_THEBES,_IMPL_NS_GFX,...'

Categories

(Firefox Build System :: General, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla25

People

(Reporter: BenWa, Assigned: BenWa)

Details

Attachments

(1 file, 2 obsolete files)

Some (all?) of these are now useless and they clutter our build arguments. Should be an easy clean up:

http://mxr.mozilla.org/mozilla-central/source/config/config.mk#338
Off that list, only _IMPL_NS_COM, IMPL_XREAPI and IMPL_NS_NET are used in m-c.
Those three could be replaced by a single IMPL_LIBXUL or something.
Attached patch patch (obsolete) — Splinter Review
Since you've already looked at this I'm tentatively asking you to review bug feel free to delegate.
Assignee: nobody → bgirard
Status: NEW → ASSIGNED
Attachment #774500 - Flags: review?(mh+mozilla)
Comment on attachment 774500 [details] [diff] [review]
patch

Review of attachment 774500 [details] [diff] [review]:
-----------------------------------------------------------------

Most of the files where you're adding DEFINES += -DIMPL_LIBXUL would most probably be fine without it, but with LIBXUL_LIBRARY = 1 in the Makefile instead.

::: netwerk/mime/Makefile.in
@@ +17,5 @@
>  FORCE_STATIC_LIB = 1
>  
>  include $(topsrcdir)/config/rules.mk
>  
> +DEFINES += -DIMPL_LIBXUL

This file contains LIBXUL_LIBRARY=1, no need for this.

::: widget/windows/Makefile.in
@@ +17,5 @@
>  RESFILE		= widget.res
>  MODULE_NAME	= nsWidgetWinModule
>  LIBXUL_LIBRARY = 1
>  
> +DEFINES		+= -DMOZ_UNICODE 

Remove the trailing whitespace while you're here.

::: xpcom/build/Makefile.in
@@ +74,5 @@
>  include $(topsrcdir)/ipc/chromium/chromium-config.mk
>  include $(topsrcdir)/config/rules.mk
>  
>  DEFINES		+= \
> +		-DIMPL_LIBXUL \

This file contains LIBXUL_LIBRARY=1, no need for this.

::: xpcom/io/Makefile.in
@@ +39,5 @@
>  
>  include $(topsrcdir)/config/rules.mk
>  include $(topsrcdir)/ipc/chromium/chromium-config.mk
>  
> +DEFINES		+= -DIMPL_LIBXUL

Likewise.

::: xpcom/threads/Makefile.in
@@ +21,5 @@
>  
>  
>  include $(topsrcdir)/config/rules.mk
>  
> +DEFINES		+= -DIMPL_LIBXUL

Likewise.
Attachment #774500 - Flags: review?(mh+mozilla) → review+
Attached patch patch (obsolete) — Splinter Review
Attachment #774500 - Attachment is obsolete: true
Attachment #774602 - Flags: review+
Fixed 16 conflicts
Attachment #774602 - Attachment is obsolete: true
Attachment #774604 - Flags: review+
Attachment #774604 - Attachment is patch: true
https://hg.mozilla.org/mozilla-central/rev/e6ebdb6069c7
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla25
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: