Closed
Bug 1134633
Opened 10 years ago
Closed 10 years ago
convert makefile rules with props2arrays.py to use moz.build GENERATED_FILES
Categories
(Firefox Build System :: General, defect)
Firefox Build System
General
Tracking
(firefox38 fixed)
RESOLVED
FIXED
mozilla38
Tracking | Status | |
---|---|---|
firefox38 | --- | fixed |
People
(Reporter: froydnj, Assigned: froydnj)
References
(Blocks 2 open bugs)
Details
Attachments
(1 file, 1 obsolete file)
7.44 KB,
patch
|
mshal
:
review+
|
Details | Diff | Splinter Review |
Now that GENERATED_FILES can generate makefile rules for generating
files, we can start moving rules from Makefile.in's into moz.build.
![]() |
Assignee | |
Comment 1•10 years ago
|
||
These are pretty straightforward; I converted things to a loop in
dom/encoding/, but I can be convinced to write it all out longhand if you think
that's clearer.
Attachment #8566528 -
Flags: review?(mshal)
![]() |
Assignee | |
Comment 2•10 years ago
|
||
Now that GENERATED_FILES can generate makefile rules for generating
files, we can start moving rules from Makefile.in's into moz.build.
Sigh, it works better when we update props2arrays.py to conform to the new
moz.build world.
Attachment #8566528 -
Attachment is obsolete: true
Attachment #8566528 -
Flags: review?(mshal)
Attachment #8566537 -
Flags: review?(mshal)
Comment 3•10 years ago
|
||
Comment on attachment 8566537 [details] [diff] [review]
convert makefile rules with props2arrays.py to use moz.build GENERATED_FILES
>-GENERATED_FILES += [
>- 'domainsfallbacks.properties.h',
>- 'encodingsgroups.properties.h',
>- 'labelsencodings.properties.h',
>- 'localesfallbacks.properties.h',
>- 'nonparticipatingdomains.properties.h',
>-]
>+
>+for prefix in ('domainsfallbacks', 'encodingsgroups', 'labelsencodings',
>+ 'localesfallbacks', 'nonparticipatingdomains'):
Do we expect this list to change much going forward? If so I'd recommend a one-per-line style, similar to the removed GENERATED_FILES variable above for easier diffing when they're added/removed. (Maybe use a local "prefixes" variable if it's too ugly in the for statement).
>+ GENERATED_FILES += [header]
>+ props = GENERATED_FILES[header]
Is there some python magic we could do to skip the seemingly redundant GENERATED_FILES += [header] step? Ie: just have the header get automatically added to GENERATED_FILES in __getitem__ or whatever. I don't want to block on this, though. Or if it's a bad idea for other reasons, that's fine too.
>+wincharset = GENERATED_FILES['wincharset.properties.h'
I expect you'll need a ] here :)
Attachment #8566537 -
Flags: review?(mshal) → review+
![]() |
Assignee | |
Comment 4•10 years ago
|
||
(In reply to Michael Shal [:mshal] from comment #3)
> >+for prefix in ('domainsfallbacks', 'encodingsgroups', 'labelsencodings',
> >+ 'localesfallbacks', 'nonparticipatingdomains'):
>
> Do we expect this list to change much going forward? If so I'd recommend a
> one-per-line style, similar to the removed GENERATED_FILES variable above
> for easier diffing when they're added/removed. (Maybe use a local "prefixes"
> variable if it's too ugly in the for statement).
I don't know how much we expect this to change, but the separate |prefixes| variable is a good idea regardless.
> >+ GENERATED_FILES += [header]
> >+ props = GENERATED_FILES[header]
>
> Is there some python magic we could do to skip the seemingly redundant
> GENERATED_FILES += [header] step? Ie: just have the header get automatically
> added to GENERATED_FILES in __getitem__ or whatever. I don't want to block
> on this, though. Or if it's a bad idea for other reasons, that's fine too.
That seems reasonable; I'll file a followup bug for brainstorming. I think I'd avoid __getitem__ magic and instead want |GENERATED_FILES.add('x')|.
> >+wincharset = GENERATED_FILES['wincharset.properties.h'
>
> I expect you'll need a ] here :)
Indeed. :)
![]() |
Assignee | |
Updated•10 years ago
|
Blocks: nomakerules, nomakefiles
Status: NEW → RESOLVED
Closed: 10 years ago
status-firefox38:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla38
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
•