Bug 135142

Summary: pro file corrupted: scopes moved on bottom
Product: [Applications] kdevelop Reporter: Gianni <grm.trash>
Component: Build tools: QMakeAssignee: kdevelop-bugs-null
Status: RESOLVED FIXED    
Severity: normal CC: dev
Priority: NOR    
Version: 3.3.2   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Gianni 2006-10-05 12:26:59 UTC
Version:           3.3.2 (using KDE KDE 3.5.2)
Installed from:    Ubuntu Packages
Compiler:          i486-linux-gnu 
OS:                Linux

Modifications of .pro file done by Kdevelop interfacecorrupts the .pro file when it contains scopes. In facts scope section is moved down.

Example of .pro file:

macx{
  SOQTLIB += $$system(soqt-config --ldflags)
}
win32{
  SOQTLIB += X:\Coin3D\lib\soqt1.lib \
             X:\Coin3D\lib\coin2.lib
}
unix{
  SOQTLIB += -L/usr/local/lib -lSoQt \
             -L/usr/lib -lCoin
}

LIBS += $$SOQTLIB

HEADERS += ...
SOURCES += ...

After adding a class with "Project-> New Class..." the .pro file is corrupted because the platform dependent part (scopes) is pushed down:

HEADERS += ...
SOURCES += ...

LIBS += $$SOQTLIB

macx{
  SOQTLIB += $$system(soqt-config --ldflags)
}
win32{
  SOQTLIB += X:\Coin3D\lib\soqt1.lib \
             X:\Coin3D\lib\coin2.lib
}
unix{
  SOQTLIB += -L/usr/local/lib -lSoQt \
             -L/usr/lib -lCoin
}

Thanks for suggesting at least a work around.
Comment 1 Amilcar do Carmo Lucas 2006-10-05 19:02:51 UTC
This is a know issue and as far as I know it has been solved in the kdevelop/3.4 SVN branch.

To get the source do:
http://www.kdevelop.org/index.html?filename=3.4/branches_compiling.html
Comment 2 Andreas Pakulat 2006-11-20 21:54:39 UTC
Fixed for KDevelop3.4
Comment 3 Andreas Pakulat 2006-11-20 21:57:37 UTC
*** Bug 78148 has been marked as a duplicate of this bug. ***