qDesktopSearch on github
-
wrote on 15 Apr 2016, 18:21 last edited by
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.
-
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.
wrote on 22 Apr 2016, 07:30 last edited by@SGaist Cool idea! Thanks!
I did it this way:
https://github.com/privet56/qDesktopSearch/blob/master/qDesktopSearch_3rdparty.priwith the result, that
- the .pro file is much more clear
AND - the folder structure within Qt Creator is more clear
- the .pro file is much more clear
-
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.
-
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.
wrote on 25 Apr 2016, 09:43 last edited by@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 ?
-
wrote on 2 May 2016, 17:00 last edited by
@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...)
4/7