Bug 150796 - Qmake manager bugs when using .pro files as subprojects
Summary: Qmake manager bugs when using .pro files as subprojects
Status: RESOLVED FIXED
Alias: None
Product: kdevelop
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-13 18:56 UTC by Jeroen Dierckx
Modified: 2007-10-18 00:21 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jeroen Dierckx 2007-10-13 18:56:11 UTC
Version:           3.5.0.1 (using KDE 3.5.8, Kubuntu (gutsy) 4:3.5.8-0ubuntu1)
Compiler:          Target: i486-linux-gnu
OS:                Linux (i686) release 2.6.22-14-generic

As main target, we use a .pro file using the SUBDIRS template. We don't use actual subdirectories for the sub-projects, but .pro files in the same directory. There are a couple of problems in kdevelop using this approach:
- You can't select a .pro file with the file browser, as it is set up to only show directories.
- When adding for example MyLib.pro as subproject, the empty file "MyLib.pro.pro" is created
- When choosing "run qmake recursively", the Makefiles are messed up. Our Makefiles are set up as "Makefile.$${TARGET}", but when we have for example a "MyLib" project, the Makefile that is created is "Makefile.MyLib.MyLib". This isn't a problem for me though, as I don't use the "run qmake recursively" feature.
Comment 1 Andreas Pakulat 2007-10-17 00:02:30 UTC
SVN commit 726036 by apaku:

Allow to select .pro files for a subproject and fix creation of .pro files as new subproject.
BUG:150796

 M  +7 -4      trollprojectwidget.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=726036
Comment 2 Andreas Pakulat 2007-10-17 00:04:22 UTC
As you can see your first two points have just been solved. The third point is not a kdevelop bug, but a qmake/Qt4 bug (QMake from qt3 doesn't work with Makefile.$${TARGET} at all unless you explicitly set TARGET as well). It can be seen by just running qmake -recursive in your project dir. Please report that to Trolltech (still visible in Qt4.3.2)
Comment 3 Jeroen Dierckx 2007-10-17 02:32:15 UTC
Thanks man! I'll try this as soon as possible.
Comment 4 Jeroen Dierckx 2007-10-17 16:18:34 UTC
Allright, this works perfectly now, apart from one little issue. When you choose to remove a subproject (a .pro file in my case) and accept to remove the subproject from disk, kdevelop
- asks about deleting the "directory", which is not correct in the case of .pro file subproject
- doesn't delete the .pro file
Comment 5 Andreas Pakulat 2007-10-18 00:21:59 UTC
SVN commit 726526 by apaku:

Actually remove the .pro file when removing a subproject and the user wanted to delete the file/dir.
CCBUG:150796

 M  +5 -0      scope.cpp  
 M  +1 -1      trollprojectwidget.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=726526