TEMPLATE	= app
LANGUAGE	= C++

CONFIG	+= qt warn_on thread release debug

HEADERS	+= \
	advsearch_w.h \
	preview_w.h \
	rclmain_w.h \
	reslist.h \
	sort_w.h \
	ssearch_w.h \
	uiprefs_w.h


SOURCES	+= \
	guiutils.cpp \
	idxthread.cpp \
	main.cpp \
	plaintorich.cpp \
	rclmain_w.cpp \
	reslist.cpp \
        advsearch_w.cpp \
        preview_w.cpp \
        sort_w.cpp \
        ssearch_w.cpp \
        uiprefs_w.cpp

FORMS	= \
	advsearch.ui \
	preview.ui \
	rclmain.ui \
	sort.ui \
	ssearchb.ui \
	uiprefs.ui 

IMAGES	= images/asearch.png \
	images/history.png \
	images/d_nextpage.png \
	images/nextpage.png \
	images/d_prevpage.png \
	images/prevpage.png \
	images/sortparms.png

unix {
  UI_DIR = .ui
  MOC_DIR = .moc
  OBJECTS_DIR = .obj

  DEFINES += RECOLL_DATADIR=\"@QTRECOLL_DATADIR@\"
  LIBS += ../lib/librcl.a ../bincimapmime/libmime.a \
            $(BSTATIC) @LIBXAPIAN@ @LIBICONV@ $(BDYNAMIC) \
           -lz

  INCLUDEPATH += ../common ../index ../query ../unac ../utils 
  POST_TARGETDEPS = ../lib/librcl.a
}

UNAME = $$system(uname -s)
contains( UNAME, [lL]inux ) {
          LIBS -= -liconv
}

TRANSLATIONS = recoll_fr.ts recoll_ru.ts recoll_uk.ts
