<div class="gmail_quote">On Sun, Jul 11, 2010 at 2:02 PM, Valentin Pavlyuchenko <span dir="ltr"><<a href="mailto:thevalik@gmail.com">thevalik@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I want to fix absolute CMake paths in .kdev4/<projname>.kdev4<br>
It now causes problems when moving project to the different path.<br>
<br>
The idea is to use relative paths. I think it's better to store<br>
relative paths in the new variables near to old absolute paths for<br>
compatibility of new projects with older KDevelop4 versions (4.0).<br>
Automatic old project file conversion on open is also required.<br>
<br>
Example:<br>
<br>
Old project .kdev4/test.kdev4 (project is stored in<br>
/home/valentine/projects/test):<br>
<br>
[Buildset]<br>
BuildItems=@Variant(\x00\x00\x00\t\x00\x00\x00\x00\x01\x00\x00\x00\x0b\x00\x00\x00\x00\x01\x00\x00\x00\x08\x00t\x00e\x00s\x00t)<br>
<br>
[CMake]<br>
BuildDirs[$e]=/home/valentine/projects/test/build<br>
CMakeDir=/usr/share/cmake-2.8/Modules<br>
Current CMake Binary=file:///usr/bin/cmake<br>
CurrentBuildDir=/home/valentine/projects/test/build<br>
CurrentBuildType=Release<br>
CurrentInstallDir=file:///usr/local<br>
Extra Arguments=<br>
ProjectRootRelative=./<br>
<br>
[MakeBuilder]<br>
Number Of Jobs=1<br>
<br>
<br>
Proposition for new format:<br>
<br>
[Buildset]<br>
BuildItems=@Variant(\x00\x00\x00\t\x00\x00\x00\x00\x01\x00\x00\x00\x0b\x00\x00\x00\x00\x01\x00\x00\x00\x08\x00t\x00e\x00s\x00t)<br>
<br>
[CMake]<br>
BuildDirs[$e]=/home/valentine/projects/test/build<br>
BuildDirsRelative[$e]=build<br>
CMakeDir=/usr/share/cmake-2.8/Modules<br>
Current CMake Binary=file:///usr/bin/cmake<br>
CurrentBuildDir=/home/valentine/projects/test/build<br>
CurrentBuildDirRelative=build<br>
CurrentBuildType=Release<br>
CurrentInstallDir=file:///usr/local<br>
Extra Arguments=<br>
ProjectRootRelative=./<br>
<br>
[MakeBuilder]<br>
Number Of Jobs=1<br>
<br>
<br>
This gives compatibility with older versions. New KDevelop should read<br>
BuildDirsRelative instead of BuildDirs and CurrentBuildDirRelative<br>
instead of CurrentBuildDir.<br>
<font color="#888888"><br>
--<br>
Best regards,<br>
Valentin Pavlyuchenko<br>
<br>
<br>
<br>
2010/7/10 Aleix Pol <<a href="mailto:aleixpol@kde.org">aleixpol@kde.org</a>>:<br>
</font><div><div></div><div class="h5">> let's rephrase.<br>
> what do you want to fix?<br>
><br>
> On Sat, Jul 10, 2010 at 1:30 PM, Milian Wolff <<a href="mailto:mail@milianw.de">mail@milianw.de</a>> wrote:<br>
>><br>
>> On Saturday 10 July 2010 13:12:05 Aleix Pol wrote:<br>
>> > What do you want to fix with that?<br>
>> > To me it makes perfect sense to have the relative source path, actually<br>
>> > I<br>
>> > think this should move to the project file and with absolute project<br>
>> > files<br>
>> > that's not possible.<br>
>><br>
>> exactly, but currently only absolute paths are stored :)<br>
>> --<br>
>> Milian Wolff<br>
>> <a href="mailto:mail@milianw.de">mail@milianw.de</a><br>
>> <a href="http://milianw.de" target="_blank">http://milianw.de</a><br>
>><br>
>> --<br>
>> KDevelop-devel mailing list<br>
>> <a href="mailto:KDevelop-devel@kdevelop.org">KDevelop-devel@kdevelop.org</a><br>
>> <a href="https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel" target="_blank">https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel</a><br>
>><br>
><br>
><br>
> --<br>
> KDevelop-devel mailing list<br>
> <a href="mailto:KDevelop-devel@kdevelop.org">KDevelop-devel@kdevelop.org</a><br>
> <a href="https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel" target="_blank">https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel</a><br>
><br>
><br>
<br>
</div></div>--<br>
<div><div></div><div class="h5">KDevelop-devel mailing list<br>
<a href="mailto:KDevelop-devel@kdevelop.org">KDevelop-devel@kdevelop.org</a><br>
<a href="https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel" target="_blank">https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel</a><br>
</div></div></blockquote></div><br><div>I think that using relative paths might be not the best solution.</div><div>If the project was moved then we can remove the current configuration and ask for it again. Relative paths sound workaround-ish to me.</div>