2019-01-29 18:18:42 +03:00
|
|
|
|
Building
|
|
|
|
|
========
|
|
|
|
|
|
2019-12-02 18:39:51 +03:00
|
|
|
|
The remote agent is included in the default Firefox build, but only
|
|
|
|
|
ships on the Firefox Nightly release channel:
|
2019-01-29 18:18:42 +03:00
|
|
|
|
|
2019-12-02 18:39:51 +03:00
|
|
|
|
% ./mach run --remote-debugger
|
2019-01-29 18:18:42 +03:00
|
|
|
|
|
2019-12-02 18:39:51 +03:00
|
|
|
|
The source code can be found under [remote/ in central].
|
|
|
|
|
|
|
|
|
|
There are two build modes to choose from:
|
2019-01-29 18:18:42 +03:00
|
|
|
|
|
2019-04-24 20:18:22 +03:00
|
|
|
|
Full build mode
|
|
|
|
|
---------------
|
|
|
|
|
|
|
|
|
|
The remote agent supports only Firefox, and is included when you
|
|
|
|
|
build in the usual way:
|
2019-04-24 18:18:09 +03:00
|
|
|
|
|
2019-04-24 20:18:22 +03:00
|
|
|
|
% ./mach build
|
|
|
|
|
|
|
|
|
|
When you make changes to XPCOM component files you need to rebuild
|
2019-01-29 18:18:42 +03:00
|
|
|
|
in order for the changes to take effect. The most efficient way to
|
|
|
|
|
do this, provided you haven’t touched any compiled code (C++ or Rust):
|
|
|
|
|
|
|
|
|
|
% ./mach build faster
|
|
|
|
|
|
2019-11-28 22:42:58 +03:00
|
|
|
|
Component files include the likes of components.conf,
|
2019-08-14 02:49:39 +03:00
|
|
|
|
RemoteAgent.manifest, moz.build files, and jar.mn.
|
2019-04-24 20:18:22 +03:00
|
|
|
|
All the JS modules (files ending with `.jsm`) are symlinked into
|
|
|
|
|
the build and can be changed without rebuilding.
|
2019-11-28 22:42:58 +03:00
|
|
|
|
The remote agent’s startup code found under remote/startup/
|
|
|
|
|
is written in Rust and requires rebuilds when changed.
|
2019-04-24 20:18:22 +03:00
|
|
|
|
|
|
|
|
|
You may also opt out of building the remote agent entirely by setting
|
|
|
|
|
the `--disable-cdp` build flag in your [mozconfig]:
|
|
|
|
|
|
|
|
|
|
ac_add_options --disable-cdp
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Artifact mode
|
|
|
|
|
-------------
|
|
|
|
|
|
|
|
|
|
You may also use [artifact builds] when working on the remote agent.
|
|
|
|
|
This fast build mode downloads pre-built components from the Mozilla
|
|
|
|
|
build servers, rendering local compilation unnecessary. To use
|
|
|
|
|
them, place this in your [mozconfig]:
|
|
|
|
|
|
|
|
|
|
ac_add_options --enable-artifact-builds
|
|
|
|
|
|
2019-01-29 18:18:42 +03:00
|
|
|
|
|
2019-12-02 18:39:51 +03:00
|
|
|
|
[remote/ in central]: https://searchfox.org/mozilla-central/source/remote
|
2019-01-29 18:18:42 +03:00
|
|
|
|
[mozconfig]: ../build/buildsystem/mozconfigs.html
|
2019-04-24 20:18:22 +03:00
|
|
|
|
[artifact builds]: https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Build_Instructions/Artifact_builds
|