Opened 18 years ago

Last modified 17 years ago

#83 new enhancement

add support for specifying files with same name but different subdirectories

Reported by: ryan.gallagher@… Owned by: somebody
Priority: major Milestone: M13
Component: component1 Version: 2.0
Keywords: grist Cc:

Description

It seems advantageous for usability to allow users to specify multiple files in different subdirectories as targets for creating a library. This request is to considering changing the grist so that dir1/foo.cpp and dir2/foo.cpp have different target names.

I've done some work on this a while back on a solution to add support. A description of this is available here: http://tinyurl.com/q96y2 My limited testing seemed to indicate that this worked as I'd hoped and didn't seem to break anything else. Still, I'd advise further testing on this solution as I don't claim to fully understand what other effects these small changes might have.

Change History (6)

comment:1 by anonymous, 18 years ago

Priority: minormajor

comment:2 by ghost, 18 years ago

Milestone: M12

Oft-requested feature.

comment:3 by ghost, 18 years ago

Have a patch that mostly works, except for this case:

exe test1 : test1/test1.cpp ;

This tries to both:

  • Put 'test1' binary to the test directory
  • Put 'test1/test1.o' to the test directory.

comment:4 by hunold@…, 18 years ago

The change breaks the Qt Toolsets. if you have a file named include/a.h , the moc generator will now create a the path ending with "moc_include/a.cpp" instead of "include/moc_a.cpp" which would be correct. Further, the implicit include paths are not updated, so that headers generated from .ui files are not found. Example: I have forms/x.ui -> $SOMEDIR/forms/x.h but only $SOMEDIR is added to the includes.

comment:5 by ghost, 17 years ago

Milestone: M12

Clearing the milestone. Last time I tried, some Boost tests were broken, and I'm not going to touch those until 1.34 is released, for sure.

comment:6 by ghost, 17 years ago

Milestone: M13
Note: See TracTickets for help on using tickets.