Hi Pritpal, > I am almost done with QScintilla wrappers which completely > isolate the need to host QScintilla sources into our repository, > but still wrappers be genrated from .qth files and placed in > hbqt/qscintilla. > > This folder contents are isolated from the main build system of > hbqt. The only reference needed for them to work is to include > hbqt.h. A qscintilla.hbp file is there to build the library via > hbMK2. This folder only contains wrapper classes to QScintilla. > Everything is working fine except the moc_*.cpp files which > I have to create manually. Is there a chance this can be done > in hbMK2 ? It will greatly simplyfy the build process plus > will open the way to build contrib Qt based libs with similar > fluency as per current Harbour make system. All other aspects > are already in hbMK2.
Maybe the only generic way to integrate such needs with hbmk2, is to create an separate external tool (non-hbmk2) and call it as part of of 'preprocessing'. So what needs to be done in hbmk2 is to allow to run external tools at specific stages of the process, f.e. 'preflight', 'postflight', 'prelink'. I hope to hear ideas on the specifics of such implementation. Though until this is implemented I'd suggest to do the 'moc' creation as part of the generator tool. > -incpath=${QT_WITH_SCINTILLA}/qt // where QScintilla headers are In the context of Harbour, QT_WITH_SCINTILLA should be named HB_WITH_QSCINTILLA. > hbqtgen.prg is tuned to spread sources in the folder its > <Class> Folder = qscintilla </Class> section defines. The clean solution would be to store QSCINTILLA related sources inside another .qtp file, instead of adding more to the existing qt45.qtp file. Pls make it that way. Then the generator can parse all existing .qtp files, so there is no change in usage. Another (maybe obvious) rule is to strictly avoid any qscintilla references in HBQT generated sources. Viktor _______________________________________________ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour