Abdelrazak Younes a écrit :
Bo Peng a écrit :
> 2. qt4 adding "#include file_moc.cpp" to file.C. Abdel, I will give
> you a patch to test. If you see a clear advantage, I will complete the
> patch with autotools support.

That sounds like a good plan. Please note that the moc files are named
xxx_moc.C with autotools but I guess it's easy to change in
moc/Makefile.am :

- %_moc.C: $(srcdir)/../%.h
+ %_moc.cpp: $(srcdir)/../%.h

Attached. Note that I do not know how to make automake work since
MOCEDFILES are handled *after* source, so _moc.cpp is not found for .C
files.


MOCEDFILES = $(MOCFILES:.C=_moc.cpp)

%_moc.cpp: %.h
    $(MOC4) -o $@ $<

libqt4_la_DEPENDENCIES = $(MOCEDFILES)

Someone could help us here?

Never mind, I solved it out by moving some stuff at the beginning in "frontends/qt4/Makefile.am". Compiling, right now, I'll send the patch soon.

Abdel.

Reply via email to