Thread overview
[Issue 8808] New: Header generation must recreate folder structure if -Hd is used
Oct 13, 2012
Andrej Mitrovic
Oct 13, 2012
Andrej Mitrovic
Nov 02, 2012
Andrej Mitrovic
October 13, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8808

           Summary: Header generation must recreate folder structure if
                    -Hd is used
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: coffimplib
        AssignedTo: nobody@puremagic.com
        ReportedBy: andrej.mitrovich@gmail.com


--- Comment #0 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2012-10-12 17:24:33 PDT ---
Currently regardless of the -Hd switch the compiler will output all header files as flat files in a single folder:

$ dmd -H -o- atk/Action.d gio/DBusProxy.d -Hdinclude

Expected result:

include/atk/Action.d
include/gio/DBusProxy.d

Actual result:

include/Action.d
include/DBusProxy.d

These files are completely unusable like this, they must be stored in the original folder layout or they can't be imported.

Using a build script to compile them one by one and using -Hf is *NOT* an option because this considerably slows down header generation (for example GtkD header generation can take almost 10 minutes by doing it on a file-by-file basis).

To avoid accidentally storing the .di files in the same place as the D files I propose that folder layout recreation should only occur if the -Hd flag is set.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
October 13, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8808


Andrej Mitrovic <andrej.mitrovich@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID


--- Comment #1 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2012-10-13 06:50:11 PDT ---
It turns out -op does this. It's not very well documented though, I'll file a different bug for that.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
November 02, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8808


Andrej Mitrovic <andrej.mitrovich@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jaysistar@yahoo.com


--- Comment #2 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2012-11-02 05:59:22 PDT ---
*** Issue 4495 has been marked as a duplicate of this issue. ***

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------