Closed Bug 1063414 Opened 10 years ago Closed 10 years ago

Make DIRS relative to the file they were added from, instead of from the main moz.build in case of includes

Categories

(Firefox Build System :: General, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla35

People

(Reporter: glandium, Assigned: glandium)

References

Details

Attachments

(3 files, 1 obsolete file)

I think it's not entirely obvious, when one looks at included mozbuild files that the DIRS that are in them are relative to wherever the mozbuild was included from, as opposed to relative to the included mozbuild. More generally, this should be true for other variables than DIRS, but baby steps. With bug 1062221, DIRS is the only variable that has automatic handling of this.
Depends on: 1062221
Attachment #8484855 - Flags: review?(gps)
Assignee: nobody → mh+mozilla
Status: NEW → ASSIGNED
Attachment #8484855 - Attachment is obsolete: true
Attachment #8484855 - Flags: review?(gps)
Blocks: 1063437
Comment on attachment 8484857 [details] [diff] [review]
Add infrastructure to follow what the current file being processed is in a Context

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

::: python/mozbuild/mozbuild/test/frontend/test_context.py
@@ +100,5 @@
> +        test = Context()
> +
> +        # Newly created context has no paths.
> +        self.assertEqual(test.main_path, None)
> +        self.assertEqual(test.current_path, None)

I believe there is an self.assertIsNone()
Attachment #8484857 - Flags: review?(gps) → review+
Attachment #8484859 - Flags: review?(gps) → review+
Comment on attachment 8484860 [details] [diff] [review]
Make DIRS relative to the file they were added from

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

I love how app.mozbuild and toolkit.mozbuild are much clearer now. The inclusion of these files and the weird semantics that brought with always bothered me.
Attachment #8484860 - Flags: review?(gps) → review+
https://hg.mozilla.org/mozilla-central/rev/4ac3369095af
https://hg.mozilla.org/mozilla-central/rev/8ed602393f8d
https://hg.mozilla.org/mozilla-central/rev/6986ab0f163e
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla35
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: