Closed Bug 550846 Opened 14 years ago Closed 14 years ago

Restructure layers for multiple directories

Categories

(Core :: Graphics, defect)

x86
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: bas.schouten, Assigned: bas.schouten)

References

Details

Attachments

(1 file, 1 obsolete file)

I just talked to Ted, if we want to have D3D in its own directory and the build work properly, we need to move the building of layers into their own directory as well. Since we cannot have subdirectories processed before the build actions in the directory itsself. Therefor I cannot currently build direct3d before linking, and I need to make gfx twice to pick up changes.
I see, we need a gfx/layers/build directory that actually links everything? OK.
(In reply to comment #1)
> I see, we need a gfx/layers/build directory that actually links everything? OK.

There's an alternative of just structuring the files into directories, and then combining all in a single Makefile using VPATH. I believe Ted suggested this was a better way. I'm cool with this...?
I would prefer that, as it involves less recursive invocations of make. Your files will be separated into dirs, just not the build logic.
Attached patch Restructure layers (obsolete) — Splinter Review
I suggest this as a patch.
Assignee: nobody → bas.schouten
Status: NEW → ASSIGNED
Attachment #431202 - Flags: superreview?
Attachment #431202 - Flags: review?(roc)
Attachment #431202 - Flags: superreview? → review?(ted.mielczarek)
Use "hg rename". The basic plan is OK with me, get Ted to review the build system changes.
I learned a new hg command!
Attachment #431202 - Attachment is obsolete: true
Attachment #431202 - Flags: review?(ted.mielczarek)
Attachment #431202 - Flags: review?(roc)
Attachment #431212 - Flags: review?(ted.mielczarek)
Attachment #431212 - Flags: review?(roc)
Comment on attachment 431212 [details] [diff] [review]
Restructure layers v2

>diff --git a/gfx/layers/Makefile.in b/gfx/layers/Makefile.in
>--- a/gfx/layers/Makefile.in
>+++ b/gfx/layers/Makefile.in
>@@ -33,17 +33,20 @@
> # the provisions above, a recipient may use your version of this file under
> # the terms of any one of the MPL, the GPL or the LGPL.
> #
> # ***** END LICENSE BLOCK *****
> 
> DEPTH       = ../..
> topsrcdir   = @top_srcdir@
> srcdir      = @srcdir@
>-VPATH       = @srcdir@
>+VPATH       = \
>+            $(srcdir) \
>+            $(srcdir)/basic \
>+            $(NULL)

Please use a two-space indent on the continuation lines.
Attachment #431212 - Flags: review?(ted.mielczarek) → review+
Is this fixed?
It is.
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: