diff --git a/src/qtgui/recoll.pro b/src/qtgui/recoll.pro index 10d5b313..02448379 100644 --- a/src/qtgui/recoll.pro +++ b/src/qtgui/recoll.pro @@ -1,10 +1,10 @@ +# Note this is generated by configure on Linux (see recoll.pro.in). +# recoll.pro is under version control anyway and used on Windows + TEMPLATE = app LANGUAGE = C++ -DEFINES += BUILDING_RECOLL - - QT += webkit -# QMAKE_CXXFLAGS += -DRESLIST_TEXTBROWSER -DSNIPPETS_TEXTBROWSER +QT += webkit # QT += dbus # QMAKE_CXXFLAGS += -DUSE_ZEITGEIST @@ -12,7 +12,7 @@ DEFINES += BUILDING_RECOLL QT += xml greaterThan(QT_MAJOR_VERSION, 4): QT += widgets webkitwidgets printsupport -CONFIG += qt warn_on thread release +CONFIG += qt warn_on thread debug HEADERS += \ advsearch_w.h \ @@ -94,39 +94,19 @@ FORMS = \ RESOURCES = recoll.qrc -unix { - UI_DIR = .ui - MOC_DIR = .moc - OBJECTS_DIR = .obj - LIBS += -L../.libs -lrecoll - - !macx { - # Note: libdir may be substituted with sthing like $(exec_prefix)/lib - # at this point and will go as such in the Makefile. Expansion will be - # completed at make time. - LIBS += -Wl,-rpath=${exec_prefix}/lib/recoll - } - - LIBS += -lxapian $(LIBXAPIANSTATICEXTRA) \ - -L${exec_prefix}/lib $(BDYNAMIC) -lz - - INCLUDEPATH += ../common ../index ../internfile ../query ../unac \ +INCLUDEPATH += ../common ../index ../internfile ../query ../unac \ ../utils ../aspell ../rcldb ../qtgui ../xaposix \ confgui - DEPENDPATH += $$INCLUDEPATH -} - -UNAME = $$system(uname -s) -contains( UNAME, [lL]inux ) { - LIBS += -ldl -lX11 -} - -contains( UNAME, SunOS ) { - LIBS += -ldl -} - -macx { +windows { ICON = images/recoll.icns + contains(QMAKE_CC, gcc){ + # MingW + QMAKE_CXXFLAGS += -std=c++11 -Wno-unused-parameter + } + contains(QMAKE_CC, cl){ + # Visual Studio + } + LIBS += C:/recoll/src/build-librecoll-Desktop_Qt_5_5_0_MinGW_32bit-Debug/debug/librecoll.dll } TRANSLATIONS = \ @@ -144,33 +124,3 @@ TRANSLATIONS = \ i18n/recoll_xx.ts \ i18n/recoll_zh_CN.ts \ i18n/recoll_zh.ts \ - -unix { - isEmpty(PREFIX) { - PREFIX = /usr/local - } - message("Prefix is $$PREFIX") - DEFINES += PREFIX=\\\"$$PREFIX\\\" - - # Installation stuff - target.path = "$$PREFIX/bin" - - imdata.files = mtpics/*.png - imdata.path = $$PREFIX/share/recoll/images - trdata.files = i18n/*.qm - trdata.path = $$PREFIX/share/recoll/translations - desktop.files += ../desktop/recoll-searchgui.desktop - desktop.path = $$PREFIX/share/applications/ - icona.files += ../desktop/recoll.png - icona.path = $$PREFIX/share/icons/hicolor/48x48/apps/ - iconb.files += ../desktop/recoll.png - iconb.path = $$PREFIX/share/pixmaps/ - appdata.files = ../desktop/recoll.appdata.xml - appdata.path = $$PREFIX/share/appdata/ - INSTALLS += target imdata trdata desktop icona iconb appdata - - # The recollinstall script used to do the following to install zh_CN as - # zh. Is this still needed? - #${INSTALL} -m 0444 ${I18N}/recoll_zh_CN.qm \ - # ${datadir}/recoll/translations/recoll_zh.qm || exit 1 -}