Closed Bug 1053071 Opened 10 years ago Closed 10 years ago

Simplify EXTERNAL_SOURCE_DIR handling

Categories

(Firefox Build System :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla34

People

(Reporter: glandium, Assigned: glandium)

References

Details

Attachments

(1 file)

      No description provided.
As handled in configure.in, EXTERNAL_SOURCE_DIR is a single directory for
external sources, and more specifically, comm-central. There is no need
to handle it as a list in the moz.build emitter.

At the same time, avoid checking the external sources for every moz.build,
and bind it to a config environment.
Attachment #8472166 - Flags: review?(gps)
Blocks: 1053085
Blocks: 1053140
Comment on attachment 8472166 [details] [diff] [review]
Simplify EXTERNAL_SOURCE_DIR handling

Review of attachment 8472166 [details] [diff] [review]:
-----------------------------------------------------------------

::: python/mozbuild/mozbuild/frontend/reader.py
@@ +181,5 @@
>              if filesystem_absolute:
>                  return path
> +            roots = [self.topsrcdir]
> +            if self.config.external_source_dir:
> +                roots += [self.config.external_source_dir]

Nit: The convention is |l.append(x)|, since += forces the creation of extra garbage.
Attachment #8472166 - Flags: review?(gps) → review+
Landed with a fixup in python/mozbuild/mozbuild/test/common.py for Windows tests.
https://hg.mozilla.org/integration/fx-team/rev/0ae7262449d8
Whiteboard: [fixed-in-fx-team]
https://hg.mozilla.org/mozilla-central/rev/0ae7262449d8
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → mozilla34
QA Whiteboard: [qa-]
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: