Closed Bug 1224165 Opened 9 years ago Closed 9 years ago

Remove some Makefiles in js/xpconnect/tests/

Categories

(Firefox Build System :: General, defect)

defect
Not set
normal

Tracking

(firefox45 fixed)

RESOLVED FIXED
mozilla45
Tracking Status
firefox45 --- fixed

People

(Reporter: ted, Assigned: ted)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

I was looking at uses of INSTALL_TARGETS, and found these two:
https://dxr.mozilla.org/mozilla-central/source/js/xpconnect/tests/components/js/Makefile.in
https://dxr.mozilla.org/mozilla-central/source/js/xpconnect/tests/components/native/Makefile.in

I was able to replace those Makefiles with a combination of FINAL_TARGET + EXTRA_COMPONENTS in moz.build + adding a new xpcshell.ini with just a support-files section to copy files into the test dir.

I did have to tweak paths in some xpcshell tests, as letting the build system install the xpcom component means it winds up in `_tests/xpcshell/js/xpconnect/tests/components/native/components/` instead of just `.../native/`.
bug 1224165 - Remove some Makefiles in js/xpconnect/tests/. r?glandium
Attachment #8686563 - Flags: review?(mh+mozilla)
Comment on attachment 8686563 [details]
MozReview Request: bug 1224165 - Remove some Makefiles in js/xpconnect/tests/. r?glandium

https://reviewboard.mozilla.org/r/25003/#review22597

::: js/xpconnect/tests/components/native/moz.build:7
(Diff revision 1)
> -DIST_INSTALL = False
> +FINAL_TARGET = '_tests/xpcshell/js/xpconnect/tests/components/native/'

That's gnarly, but it does the job.

::: js/xpconnect/tests/idl/moz.build:20
(Diff revision 1)
>      '!/dist/bin/components/xpctest.xpt',

Wouldn't setting FINAL_TARGETS here too work?
Attachment #8686563 - Flags: review?(mh+mozilla) → review+
https://reviewboard.mozilla.org/r/25003/#review22597

> That's gnarly, but it does the job.

I was wondering if it was worth inventing a special case for this. I think this same pattern reoccurs in a couple of places.

> Wouldn't setting FINAL_TARGETS here too work?

I will have to try that.
I went to try that suggested change and realized that it won't work, because the tests want that same xpt file copied to two places. :-/
https://hg.mozilla.org/mozilla-central/rev/068571096137
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla45
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: