qDesktopSearch on github
-
Started qDesktopSearch, an app using the JVM and CLucene to index & search the files of the local machine:
https://github.com/privet56/qDesktopSearch
I would love to get help & improvement hints! -
Hi,
One thing you can do to make thing cleaner is to create a .pri file per dependencies you have and include them in your main .pro file. That way you keep thing clearly separated and you avoid having 200 files listed there.
-
-
In the absolute, I would have split also the content per 3rd party.
so that qDesktopSearch_3rdparty.pri would look like:
include(zlib/zlib.pri) include(boost/boost.pri) etc.
That way each 3rd party is responsible for providing its own informations.
-
@SGaist
Yeah, I see your point... now I implemented this way:include(qDesktopSearch_3rdparty_clucene.pri)
include(qDesktopSearch_3rdparty_qt-solutions.pri)because:
-
the referenced zlib & boost are part of the CLucene distri, that's why I put them in one pri (see https://sourceforge.net/p/clucene/code/ci/e8e3d20f20da5ee3e37d347207b01890829a5475/tree/src/ext/ )
-
now I also need QtSingleApplication, and I put the lib for that in an extra pri
Thanks for the hint!
-
-
Doesn't QtSingleApplication come with it's own .pri ?
-
@SGaist Very good remark!
Yes, you're right: there is a pri to be included;
however, I decided for the moment to include the necessary files explicitly
without the 'magic' of 'qtsingleapplication.pri'
(I'm still playing around with the best settings...)