Closed
Bug 1269787
Opened 9 years ago
Closed 9 years ago
Move appini_header.py invocation to moz.build
Categories
(Firefox Build System :: General, defect)
Firefox Build System
General
Tracking
(firefox49 fixed)
RESOLVED
FIXED
mozilla49
| Tracking | Status | |
|---|---|---|
| firefox49 | --- | fixed |
People
(Reporter: mshal, Assigned: mshal)
References
(Blocks 1 open bug)
Details
Attachments
(3 files)
We can use GENERATED_FILES.script to run it, but there are some slight complications. First, this script depends on a generated file (dist/bin/application.ini), which currently means that it will run in the misc tier. So, I've changed the misc vs. export tier logic for generated files to instead go based on file extension.
Second, even though the application.ini rule generated by moz.build specifies the 'misc' tier, make actually builds it during export since it is a dependency of application.ini.h. In order for that to continue to work when moving the application.ini.h script to moz.build, we have to make sure the paths match.
| Assignee | ||
Comment 1•9 years ago
|
||
Some generated files will depend on other generated files, but still
need to be in the export tier because they are C++ headers.
Review commit: https://reviewboard.mozilla.org/r/50187/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/50187/
Attachment #8748245 -
Flags: review?(mh+mozilla)
Attachment #8748246 -
Flags: review?(mh+mozilla)
Attachment #8748247 -
Flags: review?(mh+mozilla)
| Assignee | ||
Comment 2•9 years ago
|
||
We use _pretty_path when specifying the targets of generated files, so
we need to use _pretty_path for the inputs as well. Otherwise make won't
know that they refer to the same file, and result in "No rule to make
target" errors.
Review commit: https://reviewboard.mozilla.org/r/50189/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/50189/
| Assignee | ||
Comment 3•9 years ago
|
||
Review commit: https://reviewboard.mozilla.org/r/50191/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/50191/
Comment 4•9 years ago
|
||
Comment on attachment 8748245 [details]
MozReview Request: Bug 1269787 - Choose tier for GENERATED_FILES based on extension; r?glandium
https://reviewboard.mozilla.org/r/50187/#review47455
meh
Attachment #8748245 -
Flags: review?(mh+mozilla) → review+
Comment 5•9 years ago
|
||
Comment on attachment 8748246 [details]
MozReview Request: Bug 1269787 - Use _pretty_path instead of full path for inputs; r?glandium
https://reviewboard.mozilla.org/r/50189/#review47457
::: layout/style/test/gen-css-properties.py:12
(Diff revision 1)
> - data = subprocess.check_output([exe])
> + run_exe = exe if os.path.isabs(exe) else './%s' % exe
> + data = subprocess.check_output([run_exe])
You should probably add a comment why this is needed.
Attachment #8748246 -
Flags: review?(mh+mozilla) → review+
Comment 6•9 years ago
|
||
Comment on attachment 8748247 [details]
MozReview Request: Bug 1269787 - Move appini_header.py rule to moz.build; r?glandium
https://reviewboard.mozilla.org/r/50191/#review47459
Attachment #8748247 -
Flags: review?(mh+mozilla) → review+
| Assignee | ||
Comment 7•9 years ago
|
||
(In reply to Mike Hommey [:glandium] from comment #5)
> Comment on attachment 8748246 [details]
> MozReview Request: Bug 1269787 - Use _pretty_path instead of full path for
> inputs; r?glandium
>
> https://reviewboard.mozilla.org/r/50189/#review47457
>
> ::: layout/style/test/gen-css-properties.py:12
> (Diff revision 1)
> > - data = subprocess.check_output([exe])
> > + run_exe = exe if os.path.isabs(exe) else './%s' % exe
> > + data = subprocess.check_output([run_exe])
>
> You should probably add a comment why this is needed.
Done.
Comment 9•9 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/5022b4e0ae89
https://hg.mozilla.org/mozilla-central/rev/436ce820c291
https://hg.mozilla.org/mozilla-central/rev/5c0ca5b6fd41
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox49:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla49
Updated•9 years ago
|
Blocks: nomakefiles
Updated•8 years ago
|
Product: Core → Firefox Build System
You need to log in
before you can comment on or make changes to this bug.
Description
•