Closed Bug 1273579 Opened 8 years ago Closed 8 years ago

Move GenerateCSS2PropertiesWebIDL.py invocation to moz.build

Categories

(Firefox Build System :: General, defect)

defect
Not set
normal

Tracking

(firefox50 fixed)

RESOLVED FIXED
mozilla50
Tracking Status
firefox50 --- fixed

People

(Reporter: mshal, Assigned: mshal)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

This is similar to bug 1272488 - we just have to reconfigure the python script to put things in functions and invoke CPP from there.
Comment on attachment 8753429 [details]
MozReview Request: Bug 1273579 - Create main() function in GenerateCSS2PropertiesWebIDL.py; r?ted

https://reviewboard.mozilla.org/r/53258/#review55832
Attachment #8753429 - Flags: review?(ted) → review+
Attachment #8753430 - Flags: review?(ted) → review+
Comment on attachment 8753430 [details]
MozReview Request: Bug 1273579 - Move GenerateCSS2PropertiesWebIDL.py invocation to moz.build; r?ted

https://reviewboard.mozilla.org/r/53260/#review55834

::: dom/bindings/Makefile.in:13
(Diff revision 1)
>  
>  # Generated by moz.build
>  include webidlsrcs.mk
>  
>  # These come from webidlsrcs.mk.
>  # TODO Write directly into backend.mk.

We should probably turn this TODO into a bug if one is not already filed.

::: dom/bindings/Makefile.in:19
(Diff revision 1)
>  CPPSRCS += $(globalgen_sources) $(unified_binding_cpp_files)
>  
>  include $(topsrcdir)/config/rules.mk
>  
>  # TODO This list should be emitted to a .pp file via
>  # GenerateCSS2PropertiesWebIDL.py.

Just like the other bug, this is doable now, but it'd be fine as a followup. I guess you probably want to write a function to run CPP and extract the filenames from the output, and reuse that in both places?
(In reply to Ted Mielczarek [:ted.mielczarek] from comment #4)
> ::: dom/bindings/Makefile.in:13
> (Diff revision 1)
> >  
> >  # Generated by moz.build
> >  include webidlsrcs.mk
> >  
> >  # These come from webidlsrcs.mk.
> >  # TODO Write directly into backend.mk.
> 
> We should probably turn this TODO into a bug if one is not already filed.

Filed bug 1281618.
Pushed by mshal@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/c51566c47110
Create main() function in GenerateCSS2PropertiesWebIDL.py; r=ted
https://hg.mozilla.org/integration/mozilla-inbound/rev/2c89b1b05a55
Move GenerateCSS2PropertiesWebIDL.py invocation to moz.build; r=ted
https://hg.mozilla.org/mozilla-central/rev/c51566c47110
https://hg.mozilla.org/mozilla-central/rev/2c89b1b05a55
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla50
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: