<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Dear Andreas,<br>
<br>
thanks for your answer.<br>
<blockquote cite="mid20070529175747.GA27811@morpheus.apaku.dnsalias.org"
type="cite">
<pre wrap="">On 29.05.07 18:46:24, Kovacs Peter Tamas wrote:
</pre>
<blockquote type="cite">
<pre wrap="">My problem is that I have to supply the CXXFLAGS and the LDFLAGS
manually, however they are already in the .kdevelop file.
Is there a one-liner automatic build option for KDevelop, which thakes
the .kdevelop file and the configuration (debug or optimized) and
compiles the project exactly as when I pressed 'Build' in KDevelop?
</pre>
</blockquote>
<pre wrap=""><!---->
No, you could start kdevelop with the .kdevelop file and then issue
"build" via dcop, however I don't think changing the configuration is
possible via dcop.
</pre>
</blockquote>
I feel this solution a bit overkill :)<br>
It reminds me some automatic testing environment, which approach seems
to be strange for me here.<br>
<blockquote cite="mid20070529175747.GA27811@morpheus.apaku.dnsalias.org"
type="cite">
<pre wrap=""></pre>
<blockquote type="cite">
<pre wrap="">The trick done by KDevelop is that it supplies the flags when running
configure. But how can I do the same from the command line? (I mean,
without parsing the kdevelop file and supplying the parameters with a
script).
</pre>
</blockquote>
<pre wrap=""><!---->
Well, if the flags are fixed for debug and optimized you could
"hardcode" them and supply them also on the commandline via
CXXFLAGS="foo" LD_FLAGS="bar" ../configure
</pre>
</blockquote>
This is exactly what I've done until this time, but since we have
multiple projects, I use the same autobuild script for all of them (for
easy maintainability, I just supply SVN repository name, target dir on
the server, email of developers to warn on error, etc..), and they use
different compiler switches, this is not enough.<br>
<br>
What I would like to have is something like I do with visual studio, I
just say this in my script:<br>
devenv project.sln /build configurationName /out build.log<br>
and everything is build exactly as I pressed the build button.<br>
I thought the command line way of doing this must be just as easy on
Linux :)<br>
I just cannot find the proper command line after several hours of
googling.<br>
<br>
Is there any other way?<br>
<br>
Thanks,<br>
Peter<br>
<br>
<br>
<br>
<br>
<br>
</body>
</html>