Closed Bug 1407403 Opened 7 years ago Closed 7 years ago

Handle IPDL generation in the tup backend

Categories

(Firefox Build System :: General, enhancement)

enhancement
Not set
normal

Tracking

(firefox58 fixed)

RESOLVED FIXED
mozilla58
Tracking Status
firefox58 --- fixed

People

(Reporter: mshal, Assigned: mshal)

References

Details

Attachments

(1 file)

We need to implement the _handle_ipdl_sources function in the tup backend, and do something similar to ipc/ipdl/Makefile.in. I think this is made slightly tricky for tup since the outputs aren't known ahead of time.
Assignee: nobody → mshal
Attachment #8922100 - Flags: review?(core-build-config-reviews)
Comment on attachment 8922100 [details]
Bug 1407403 - Handle IPDL code generation in the tup backend;

https://reviewboard.mozilla.org/r/193102/#review198380

Another unfortunate build system hack :/

But I don't see an obvious easy way around this. Given that perfect is very much the enemy for Tup support at this juncture, let's land this and optimize/improve it later.

::: python/mozbuild/mozbuild/backend/tup.py:452
(Diff revision 1)
> +        sys.path.append(mozpath.join(self.environment.topsrcdir, 'ipc', 'ipdl'))
> +        import ipdl

We shouldn't need to do this. But I don't want to scope bloat you.
Attachment #8922100 - Flags: review+
Attachment #8922100 - Flags: review?(core-build-config-reviews)
I don't think anybody would complain too loudly if the ipdl namespacing of headers went away, FWIW.  Put them under mozilla/ipdl/ if necessary.
Comment on attachment 8922100 [details]
Bug 1407403 - Handle IPDL code generation in the tup backend;

https://reviewboard.mozilla.org/r/193102/#review198386

::: python/mozbuild/mozbuild/backend/tup.py:473
(Diff revision 1)
> +	    (filepath, ext) = os.path.splitext(filename)
> +	    (dirname, basename) = os.path.split(filepath)

nit: parens around these tuples aren't necessary
(In reply to Nathan Froyd [:froydnj] from comment #3)
> I don't think anybody would complain too loudly if the ipdl namespacing of
> headers went away, FWIW.  Put them under mozilla/ipdl/ if necessary.

I mentioned this yesterday, but this was annoying for my "upload generated sources" patch as well. Let's file a followup for that since mshal already has this working.
(In reply to Ted Mielczarek [:ted.mielczarek] from comment #5)
> (In reply to Nathan Froyd [:froydnj] from comment #3)
> > I don't think anybody would complain too loudly if the ipdl namespacing of
> > headers went away, FWIW.  Put them under mozilla/ipdl/ if necessary.
> 
> I mentioned this yesterday, but this was annoying for my "upload generated
> sources" patch as well. Let's file a followup for that since mshal already
> has this working.

Done, filed bug 1411969.
Comment on attachment 8922100 [details]
Bug 1407403 - Handle IPDL code generation in the tup backend;

https://reviewboard.mozilla.org/r/193102/#review198588

::: python/mozbuild/mozbuild/backend/tup.py:473
(Diff revision 1)
> +	    (filepath, ext) = os.path.splitext(filename)
> +	    (dirname, basename) = os.path.split(filepath)

Fixed, thanks!
Pushed by mshal@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/26c1d50db1c1
Handle IPDL code generation in the tup backend; r=gps
Backed out for py-compat failure: python/mozbuild/mozbuild/backend/tup.py:470:124 | inconsistent use of tabs and spaces in indentation:

https://hg.mozilla.org/integration/autoland/rev/99c40288511ac903e786ea0cb3fa74c1d2324fed

Failure log: https://treeherder.mozilla.org/logviewer.html#?job_id=139868325&repo=autoland
Flags: needinfo?(mshal)
Hmm, no idea how those got in there. Editor settings seem fine...
Flags: needinfo?(mshal)
Pushed by mshal@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/bcb6adf5707c
Handle IPDL code generation in the tup backend; r=gps
https://hg.mozilla.org/mozilla-central/rev/bcb6adf5707c
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla58
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: