NO

Author Topic: Custom Project Folders/Filters  (Read 3185 times)

Jeffrey

  • Guest
Custom Project Folders/Filters
« on: April 09, 2008, 01:49:19 am »
I think it would be useful if we were able to either add folders/filters to the project hierarchy like you can do in MSVS, Code::Blocks, and pretty much all other IDEs. I personally would like the option to create either a virtual directory (one that is mapped to another directory) or a physical directory (either an new or existing folder).

The functionality of the feature could also be used to define the scope of the projects include, library, and binary paths.

For example:

+ Project
|
+---+ \Include (Maps to ${PellesC}\Include)
|     |
|     +---+ \sys (Maps to ${PellesC}\Include\sys)
|     +---+ \win (Maps to ${PellesC}\Include\win)
+---+ \inc (Maps to ${Project}\inc)
+---+ \lib (Maps to ${Project}\lib)
+---+ \thirdparty (Maps to ${Project}\..\ThirdParty)

Well, tell me what you think.


Offline Pelle

  • Administrator
  • Member
  • *****
  • Posts: 2001
    • http://www.smorgasbordet.com
Re: Custom Project Folders/Filters
« Reply #1 on: April 15, 2008, 06:20:12 pm »
This would mean a major internal change, so it better be worth it...

I have seen this feature in other IDEs, but never really understood it's usefulness. Is it just to make it easier to locate files in a large project, or are there other aspects of it too? The better I understand the current problem, and so on...
/Pelle

Romashka

  • Guest
Re: Custom Project Folders/Filters
« Reply #2 on: April 15, 2008, 09:15:02 pm »
I'm not sure if I understood the oriignal request correctly,
but I have to say that I'm forced to manually modify .ppj files generated by IDE to change paths to reflect my preferred project folders structure.
It would be nice to be able to set custom paths for sources and output.

Offline Pelle

  • Administrator
  • Member
  • *****
  • Posts: 2001
    • http://www.smorgasbordet.com
Re: Custom Project Folders/Filters
« Reply #3 on: April 15, 2008, 10:50:23 pm »
Changing the output directory I can understand, but not really the source folder (not yet, at least). If we are talking about different groups of source files, creating a project for each group and a workspace for all projects at least solves some of the problems - but possibly causing new ones. I am probably missing something here...

A more detailed explanation would help, I think...
/Pelle

Romashka

  • Guest
Re: Custom Project Folders/Filters
« Reply #4 on: April 23, 2008, 09:24:20 am »
I have the following structure now:
myproject/
-> output/
-> sources/
-> sources/tests/
-> myproject.ppj
-> test1.ppj

to get output on the same level as sources I had to modify *.ppj manually
(that's wish #1, that you understood)

now wish #2 that needs more explanation:
I'd like to move *.ppj to myproject/project/*.ppj
but the problem is that when I then add ../sources/main.c to myproject.ppj - it will be added with full path (at least last time I checked) so it's not portable (I mean moving the whole tree to another directory) unless I edit *.ppj manually again.
Same with include files IIRC.
So basically my wish about sources path should be reformulated correctly as "use relative paths".

And wish #3 is only slightly related, but still... - it would be nice if output could be separated so .exe/.dll go to one dir and .obj to another (so that there could be clean 'release' dir).

Romashka

  • Guest
Re: Custom Project Folders/Filters
« Reply #5 on: May 02, 2009, 01:44:24 pm »
Many thanks for implementing my requests in 6.00 RC1!  :)

Offline Pelle

  • Administrator
  • Member
  • *****
  • Posts: 2001
    • http://www.smorgasbordet.com
Re: Custom Project Folders/Filters
« Reply #6 on: May 02, 2009, 02:19:37 pm »
OK - thanks.
/Pelle