Closed
Bug 1253431
Opened 9 years ago
Closed 9 years ago
Port SDK related install targets to moz.build
Categories
(Firefox Build System :: General, defect)
Firefox Build System
General
Tracking
(firefox48 fixed)
RESOLVED
FIXED
mozilla48
Tracking | Status | |
---|---|---|
firefox48 | --- | fixed |
People
(Reporter: mshal, Assigned: mshal)
References
(Blocks 1 open bug)
Details
Attachments
(7 files)
58 bytes,
text/x-review-board-request
|
gps
:
review+
|
Details |
58 bytes,
text/x-review-board-request
|
gps
:
review+
|
Details |
58 bytes,
text/x-review-board-request
|
gps
:
review+
|
Details |
58 bytes,
text/x-review-board-request
|
gps
:
review+
|
Details |
58 bytes,
text/x-review-board-request
|
gps
:
review+
|
Details |
58 bytes,
text/x-review-board-request
|
gps
:
review+
|
Details |
58 bytes,
text/x-review-board-request
|
gps
:
review+
|
Details |
I think this requires a new SdkFiles object derived from FinalTargetFiles in order to install things into dist/sdk. Some of the INSTALL_TARGETS also install things generated during the compile tier, so we depend on bug 1253430.
Assignee | ||
Comment 1•9 years ago
|
||
This adds support for an SDK_FILES variable in moz.build, which creates
a FinalTargetFiles object to install files into dist/sdk/
Review commit: https://reviewboard.mozilla.org/r/38307/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/38307/
Attachment #8726911 -
Flags: review?(gps)
Assignee | ||
Comment 2•9 years ago
|
||
Review commit: https://reviewboard.mozilla.org/r/38309/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/38309/
Attachment #8726912 -
Flags: review?(gps)
Assignee | ||
Comment 3•9 years ago
|
||
We can just generate xpidllex.py/xpidlyacc.py in the current directory
rather than one directory higher, and specify this directory as an
include path to xpidl-process.py
Review commit: https://reviewboard.mozilla.org/r/38311/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/38311/
Attachment #8726913 -
Flags: review?(gps)
Assignee | ||
Comment 4•9 years ago
|
||
We only ever execute this in one place, so we can just have the main
action do the --regen --cachedir=. mode of operation.
Review commit: https://reviewboard.mozilla.org/r/38313/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/38313/
Attachment #8726914 -
Flags: review?(gps)
Assignee | ||
Comment 5•9 years ago
|
||
Review commit: https://reviewboard.mozilla.org/r/38315/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/38315/
Attachment #8726915 -
Flags: review?(gps)
Assignee | ||
Comment 6•9 years ago
|
||
It has no effect anyway, since it is set after including config/rules.mk
Review commit: https://reviewboard.mozilla.org/r/38317/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/38317/
Attachment #8726916 -
Flags: review?(gps)
Assignee | ||
Comment 7•9 years ago
|
||
Review commit: https://reviewboard.mozilla.org/r/38319/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/38319/
Attachment #8726917 -
Flags: review?(gps)
Assignee | ||
Comment 8•9 years ago
|
||
try: https://treeherder.mozilla.org/#/jobs?repo=try&revision=e92169592069
(Note this patchset requires bug 1253430 to build successfully)
Updated•9 years ago
|
Attachment #8726911 -
Flags: review?(gps) → review+
Comment 9•9 years ago
|
||
Comment on attachment 8726911 [details]
MozReview Request: Bug 1253431 part 1 - Add SDK_FILES to moz.build; r?gps
https://reviewboard.mozilla.org/r/38307/#review35079
Nit: you don't need to write "part N" in commit messages in MozReview because MozReview preserves the commit ordering in the UI since it is basing things off version control.
Updated•9 years ago
|
Attachment #8726912 -
Flags: review?(gps) → review+
Comment 10•9 years ago
|
||
Comment on attachment 8726912 [details]
MozReview Request: Bug 1253431 part 2 - Use SDK_FILES instead of INSTALL_TARGETS; r?gps
https://reviewboard.mozilla.org/r/38309/#review35083
The patch reminds me how much I hate xpcom/idl-parser/xpidl/Makefile.in.
Updated•9 years ago
|
Attachment #8726913 -
Flags: review?(gps) → review+
Comment 11•9 years ago
|
||
Comment on attachment 8726913 [details]
MozReview Request: Bug 1253431 part 3 - Move SDK_BINARY files in xpcom/idl-parser/xpidl to moz.build; r?gps
https://reviewboard.mozilla.org/r/38311/#review35093
Very nice.
Updated•9 years ago
|
Attachment #8726914 -
Flags: review?(gps)
Comment 12•9 years ago
|
||
Comment on attachment 8726914 [details]
MozReview Request: Bug 1253431 part 4 - Convert header.py to a GENERATED_FILES script; r?gps
https://reviewboard.mozilla.org/r/38313/#review35097
::: xpcom/idl-parser/xpidl/header.py
(Diff revision 1)
> - idl = p.parse(open(file).read(), filename=file)
> - idl.resolve(options.incdirs, p)
> - print_header(idl, outfd, file)
> -
> - if closeoutfd:
> - outfd.close()
> -
> - if options.depfile is not None:
> - dirname = os.path.dirname(options.depfile)
> - if dirname:
> - try:
> - os.makedirs(dirname)
> - except:
> - pass
> - depfd = open(options.depfile, 'w')
> - deps = [dep.replace('\\', '/') for dep in idl.deps]
> -
> - print >>depfd, "%s: %s" % (options.outfile, " ".join(deps))
> - for dep in deps:
> - print >>depfd, "%s:" % dep
Is all this code really dead?! I guess we have mozbuild.action.xpidl_process, so I guess so!
Comment 13•9 years ago
|
||
Comment on attachment 8726914 [details]
MozReview Request: Bug 1253431 part 4 - Convert header.py to a GENERATED_FILES script; r?gps
https://reviewboard.mozilla.org/r/38313/#review35099
Attachment #8726914 -
Flags: review+
Comment 14•9 years ago
|
||
Comment on attachment 8726915 [details]
MozReview Request: Bug 1253431 part 5 - Remove build/unix/Makefile.in; r?gps
https://reviewboard.mozilla.org/r/38315/#review35101
Attachment #8726915 -
Flags: review?(gps) → review+
Comment 15•9 years ago
|
||
Comment on attachment 8726916 [details]
MozReview Request: Bug 1253431 part 6 - Remove SDK_BINARY from js/src; r?gps
https://reviewboard.mozilla.org/r/38317/#review35103
Wow.
Attachment #8726916 -
Flags: review?(gps) → review+
Updated•9 years ago
|
Attachment #8726917 -
Flags: review?(gps) → review+
Comment 16•9 years ago
|
||
Comment on attachment 8726917 [details]
MozReview Request: Bug 1253431 part 7 - Remove SDK_BINARY; r?gps
https://reviewboard.mozilla.org/r/38319/#review35105
Awesome series.
::: python/mozbuild/mozbuild/frontend/emitter.py:833
(Diff revision 1)
> + generated_files.update(['%s%s' % (k, self.config.substs.get('BIN_SUFFIX', '')) for k in self._binaries.keys()])
I'm kinda surprised this doesn't invalidate any tests!
Assignee | ||
Comment 17•9 years ago
|
||
(In reply to Gregory Szorc [:gps] from comment #9)
> Nit: you don't need to write "part N" in commit messages in MozReview
> because MozReview preserves the commit ordering in the UI since it is basing
> things off version control.
Thanks for the heads up! I'll do that from now on.
Assignee | ||
Comment 18•9 years ago
|
||
(In reply to Gregory Szorc [:gps] from comment #12)
> Is all this code really dead?! I guess we have
> mozbuild.action.xpidl_process, so I guess so!
Apparently so - we only run header.py once in the whole build.
Comment 19•9 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/dab431efeb01
https://hg.mozilla.org/integration/mozilla-inbound/rev/63e1cbf27de9
https://hg.mozilla.org/integration/mozilla-inbound/rev/e11026ba0b4a
https://hg.mozilla.org/integration/mozilla-inbound/rev/e78e4cf27dc8
https://hg.mozilla.org/integration/mozilla-inbound/rev/5f87a0086c0f
https://hg.mozilla.org/integration/mozilla-inbound/rev/54c8a7c98f30
https://hg.mozilla.org/integration/mozilla-inbound/rev/647ab3b76705
Comment 20•9 years ago
|
||
Comment 21•9 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/dab431efeb01
https://hg.mozilla.org/mozilla-central/rev/63e1cbf27de9
https://hg.mozilla.org/mozilla-central/rev/e11026ba0b4a
https://hg.mozilla.org/mozilla-central/rev/e78e4cf27dc8
https://hg.mozilla.org/mozilla-central/rev/5f87a0086c0f
https://hg.mozilla.org/mozilla-central/rev/54c8a7c98f30
https://hg.mozilla.org/mozilla-central/rev/647ab3b76705
https://hg.mozilla.org/mozilla-central/rev/ac43f8ec3958
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox48:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla48
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
•