[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    moc-problem / introduction
From:       Thomas Baumgart <ipwizard () users ! sourceforge ! net>
Date:       2005-04-25 19:18:13
Message-ID: 200504252118.18219 () net-bembel ! de
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


Hi all,

since I am new to this list, here a little intro (skip it if you like): I 
am a core developer and administrator of the KMyMoney personal finance 
manager for KDE. See http://kmymoney2.sourceforge.net for details.

Within our project, we try to stay as close as possible to the admin 
directory of kdelibs (am_edit & Co).  During the last weeks, we noticed 
some pecularities in our build system such that moc files are not being 
re-compiled when necessary.  When scanning the archives of this list, I 
noticed that some more people have problems with moc-files so I became 
convinced it's a good idea to contact you.

I traced our problem down and developed the attached patch, but don't want 
to commit it to our repository before I don't have some comment from the 
people who know more about it and can tell me what else I brake when I use 
this patch. Your input is very welcome.

Thanks in advance.


--- am_edit.1.416       2005-04-24 19:50:38.586271952 +0200
+++ am_edit     2005-04-24 19:50:27.938890600 +0200
@@ -1125,7 +1125,7 @@
         $realObjs{$program} .= "\034" . join ($ext, @newObs) . $ext;
         $dependmocs{$program} = join (".moc.$cxxsuffix " , @newObs) . 
".moc.$cxxsuffix";
         foreach $file (@newObs) {
-            $dep_files .= " \$(DEPDIR)/$file.moc.P" 
if($dep_files !~/$file.moc.P/);
+            $dep_files .= " \$(DEPDIR)/$file.moc.Po" 
if($dep_files !~/$file.moc.Po/);
         }
     }
     if (@depend) {
@@ -2250,6 +2250,7 @@
         }
         else
         {
+           appendLines ("include ./\$(DEPDIR)/$mocFile.moc.Po\n");
             appendLines ("$mocFile$mocExt: $dir/$hFile\n\t\$(MOC) 
$dir/$hFile -o $mocFile$mocExt\n");
             $cleanMoc .= " $mocFile$mocExt";
            appendLines ("mocs: $mocFile$mocExt\n");

-- 

Regards

Thomas Baumgart

thb@net-bembel.de               Check the KMyMoney open source
http://www.net-bembel.de/       project at http://kmymoney2.sf.net/

public key available under thb@net-bembel.de  at  http://www.keyserver.net
GPG-FP: E55E D592 F45F 116B 8429   4F99 9C59 DB40 B75D D3BA
-------------------------------------------------------------
I'd like to buy Windows. Are you crazy? Is this part of the licence
agreement? Not really, but it might support the usage ...
-------------------------------------------------------------

[Attachment #5 (application/pgp-signature)]

>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic