[Bug 78148] New: adding new class break existing qmake project file

dev at gioelebarabucci.com dev at gioelebarabucci.com
Sun Mar 21 15:56:04 UTC 2004


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
      
http://bugs.kde.org/show_bug.cgi?id=78148      
           Summary: adding new class break existing qmake project file
           Product: kdevelop
           Version: 3.0.2
          Platform: unspecified
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: kdevelop-devel kdevelop org
        ReportedBy: dev gioelebarabucci com


Version:           3.0.2 (using KDE 3.2.0, Gentoo)
Compiler:          gcc version 3.2.3 20030422 (Gentoo Linux 1.4 3.2.3-r4, propolice)
OS:          Linux (ppc) release 2.4.24-ben1

I imported a qmake project with just one class in kdevelop.
Later I added a second class using the class wizard, and this updated the .pro file.
Now the .pro file is broke because the new file appears in SOURCES and INCLUDE sections with a leading "/".

Example:

Before:
  proj/
    main.cpp
    a.cpp
    a.h
    proj.pro
  proj.pro contained
   TEMPLATE = app
   CONFIG += qt opengl debug threads
   SOURCES = main.cpp a.cpp
   HEADERS = a.h

After:
  proj/
    main.cpp
    a.cpp
    a.h
    b.cpp <-- new class
    b.h
    proj.pro
  proj.pro contains
   TEMPLATE = app
   CONFIG += qt debug threads <-- opengl has been removed!!!
   SOURCES += main.cpp a.cpp /b.cpp
   HEADERS += a.h /b.h <-- should be "b.h" not "/b.h"




More information about the KDevelop-devel mailing list