Closed Bug 910253 Opened 11 years ago Closed 11 years ago

Move LOCAL_INCLUDES to moz.build in accessible/

Categories

(Firefox Build System :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla26

People

(Reporter: Ms2ger, Assigned: Ms2ger)

References

Details

Attachments

(2 files)

No description provided.
Attachment #796676 - Flags: review?(mshal)
Attachment #796677 - Flags: review?(mshal)
Comment on attachment 796676 [details] [diff] [review] Part a: automatic moves >diff --git a/accessible/src/base/moz.build b/accessible/src/base/moz.build >--- a/accessible/src/base/moz.build >+++ b/accessible/src/base/moz.build >+LOCAL_INCLUDES += [ >+ '../../../ipc/chromium/src', >+ '../../../layout/generic', >+ '../../../layout/style', >+ '../../../layout/svg', >+ '../../../layout/xul/base/src', >+ '../../../layout/xul/tree/', why not use /foo/bar here as you did in the first file? >+++ b/accessible/src/generic/moz.build > LIBXUL_LIBRARY = True > >+LOCAL_INCLUDES += [ >+ '../../../layout/generic', >+ '../../../layout/xul/base/src', same +++ b/accessible/src/html/moz.build >+LOCAL_INCLUDES += [ >+ '../../../layout/generic', >+ '../../../layout/tables', >+ '../../../layout/xul/base/src', I suspect I don't want to know why we need to include xul stuff here > >+LOCAL_INCLUDES += [ >+ '../base', >+ '../generic', >+ '../html', >+ '../xul', >+ '/layout/generic', >+ '/layout/xul/base/src', same on both parts (not that I expect you to try removing it when you'd need to push to try)
Comment on attachment 796677 [details] [diff] [review] Part b: manual moves I'd prefer single element additions where done as LOCAL_INCLUDES += ["../foo"] but whatever also these patch demonstrate why building all this stuff in one monolithic moz.build file would be nice
(In reply to Trevor Saunders (:tbsaunde) from comment #3) > Comment on attachment 796676 [details] [diff] [review] > Part a: automatic moves > > >diff --git a/accessible/src/base/moz.build b/accessible/src/base/moz.build > >--- a/accessible/src/base/moz.build > >+++ b/accessible/src/base/moz.build > >+LOCAL_INCLUDES += [ > >+ '../../../ipc/chromium/src', > >+ '../../../layout/generic', > >+ '../../../layout/style', > >+ '../../../layout/svg', > >+ '../../../layout/xul/base/src', > >+ '../../../layout/xul/tree/', > > why not use /foo/bar here as you did in the first file? Because the first file used topsrcdir in the makefile, and this one used srcdir
Comment on attachment 796676 [details] [diff] [review] Part a: automatic moves Are we sure using a string ordering for LOCAL_INCLUDES is a good idea? I guess we can always use multiple assignments if we need a non-sorted ordering to pickup the right .h files. >diff --git a/accessible/src/base/moz.build b/accessible/src/base/moz.build >--- a/accessible/src/base/moz.build >+++ b/accessible/src/base/moz.build >@@ -60,8 +60,21 @@ > CPP_SOURCES += [ > 'Logging.cpp', > ] > > LIBRARY_NAME = 'accessibility_base_s' > > LIBXUL_LIBRARY = True > >+LOCAL_INCLUDES += [ >+ '../../../ipc/chromium/src', >+ '../../../layout/generic', >+ '../../../layout/style', >+ '../../../layout/svg', >+ '../../../layout/xul/base/src', >+ '../../../layout/xul/tree/', nit: Trailing '/' in layout/xul/tree/ >diff --git a/accessible/src/xul/moz.build b/accessible/src/xul/moz.build >--- a/accessible/src/xul/moz.build >+++ b/accessible/src/xul/moz.build >@@ -20,8 +20,18 @@ > 'XULTreeAccessible.cpp', > 'XULTreeGridAccessible.cpp', > ] > > LIBRARY_NAME = 'accessibility_xul_s' > > LIBXUL_LIBRARY = True > >+LOCAL_INCLUDES += [ >+ '../../../layout/generic', >+ '../../../layout/xul/base/src', >+ '../../../layout/xul/tree//', nit: Trailing '//' in layout/xul/tree//
Attachment #796676 - Flags: review?(mshal) → review+
Comment on attachment 796677 [details] [diff] [review] Part b: manual moves Would it work if we moved the LOCAL_INCLUDES to accessible/src/shared.mozbuild, and just include that file from all of these moz.build files? The only difference between them seems to be that some have windows/ia2 and others don't, but I doubt adding it for all of them would break things.
Comment on attachment 796677 [details] [diff] [review] Part b: manual moves Ok, we can always pull it out later.
Attachment #796677 - Flags: review?(mshal) → review+
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Flags: in-testsuite-
Resolution: --- → FIXED
Target Milestone: --- → mozilla26
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: