Closed
Bug 940407
Opened 11 years ago
Closed 11 years ago
Kill GTEST_SOURCES
Categories
(Firefox Build System :: General, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla28
People
(Reporter: BenWa, Assigned: glandium)
References
Details
Attachments
(1 file, 2 obsolete files)
12.62 KB,
patch
|
gps
:
review+
|
Details | Diff | Splinter Review |
Currently we can't port gfx/test/gtest because we don't support UNIFIED_GTEST_SOURCES.
Comment 1•11 years ago
|
||
To see how we do this for WebIDL and IPDL generated code, see the usages of _add_unified_build_rules in python/mozbuild/mozbuild/backend/recursivemake.py.
Assignee | ||
Comment 2•11 years ago
|
||
webidl and ipdl are not the best examples.
Assignee | ||
Comment 3•11 years ago
|
||
Note i'm considering killing GTESTS_SOURCES shortly-ish.
Comment 4•11 years ago
|
||
(In reply to comment #2) > webidl and ipdl are not the best examples. Can you please add some information on how BenWa should attack this then?
Reporter | ||
Comment 5•11 years ago
|
||
(In reply to Mike Hommey [:glandium] from comment #3) > Note i'm considering killing GTESTS_SOURCES shortly-ish. Can you elaborate?
Assignee | ||
Comment 6•11 years ago
|
||
GTEST_SOURCES doesn't provide much added value over SOURCES, besides avoiding a check for MOZ_ENABLE_GTEST. And there are exactly three directories using GTEST_SOURCES. Sure there can be more in the future, but there's no reason the directory they're in can't be conditioned on MOZ_ENABLE_GTEST
Assignee | ||
Comment 7•11 years ago
|
||
even better... MOZ_ENABLE_GTEST is just a synonym for ENABLE_TESTS (considering what configure.in does)
Reporter | ||
Comment 8•11 years ago
|
||
(In reply to Mike Hommey [:glandium] from comment #7) > even better... MOZ_ENABLE_GTEST is just a synonym for ENABLE_TESTS > (considering what configure.in does) Ohh well I was hoping we could keep GTEST_SOURCES and have them live along side normal sources instead of requiring a separate directory. Ideally moz.build would do away with this limitation. But if that's not planed then it's sound fine to me. Yes ENABLE_TESTS should be enough. However it may be worth considering compiling gtest sources after a normal build similarly to how we lazy link xul.
Assignee | ||
Comment 9•11 years ago
|
||
(In reply to Benoit Girard (:BenWa) from comment #8) > (In reply to Mike Hommey [:glandium] from comment #7) > > even better... MOZ_ENABLE_GTEST is just a synonym for ENABLE_TESTS > > (considering what configure.in does) > > Ohh well I was hoping we could keep GTEST_SOURCES and have them live along > side normal sources instead of requiring a separate directory. That's currently not possible anyways, because of how things are built. You'd always end up with gtest stuff in the normal libxul. > Ideally moz.build would do away with this limitation. But if that's not planed then > it's sound fine to me. It is, but not quite right now. > Yes ENABLE_TESTS should be enough. > > However it may be worth considering compiling gtest sources after a normal > build similarly to how we lazy link xul. We're not lazy compiling currently. That will change in due time, but let's not worry about this now. So, I'll just kill GTEST_SOURCES now.
Assignee | ||
Updated•11 years ago
|
Summary: Add support for UNIFIED_GTEST_SOURCES → Kill GTEST_SOURCES
Assignee | ||
Comment 10•11 years ago
|
||
Attachment #8336724 -
Flags: review?(gps)
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → mh+mozilla
Status: NEW → ASSIGNED
Assignee | ||
Comment 11•11 years ago
|
||
Forgot to cleanup config/rules.mk and configure.in.
Attachment #8336725 -
Flags: review?(gps)
Assignee | ||
Updated•11 years ago
|
Attachment #8336724 -
Attachment is obsolete: true
Attachment #8336724 -
Flags: review?(gps)
Assignee | ||
Comment 12•11 years ago
|
||
With the python tests updated.
Attachment #8336746 -
Flags: review?(gps)
Assignee | ||
Updated•11 years ago
|
Attachment #8336725 -
Attachment is obsolete: true
Attachment #8336725 -
Flags: review?(gps)
Updated•11 years ago
|
Attachment #8336746 -
Flags: review?(gps) → review+
Assignee | ||
Comment 13•11 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/07884241d31f
Comment 14•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/07884241d31f
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla28
Updated•6 years ago
|
Product: Core → Firefox Build System
You need to log in
before you can comment on or make changes to this bug.
Description
•