TOPOUT_REL=../..
include($$PWD/$$TOPOUT_REL/kst.pri)

TEMPLATE = lib
CONFIG += dll
DEFINES += BUILD_KSTMATH
TARGET = $$kstlib(kst2math)
DESTDIR = $$OUTPUT_DIR/lib

!isEmpty(INSTALL_PREFIX) {
  target.path = $$INSTALL_PREFIX/$$INSTALL_LIBDIR
  INSTALLS += target
}

INCLUDEPATH += \
    tmp \
    $$TOPLEVELDIR/src/libkst \
    $$OUTPUT_DIR/src/libkstmath/tmp

macx {
	CONFIG += lib_bundle
	LIBS += -F$$OUTPUT_DIR/lib
	qtAddLibrary(kst2lib)
} else {
	LIBS += \
		-L$$OUTPUT_DIR/lib \
		-l$$kstlib(kst2lib)
}

#Don't trigger qmake's lex/yacc handling by default.
#Rather we want to use the files that are pre-generated and checked in.
QMAKE_EXT_LEX = .lex
QMAKE_EXT_YACC = .yacc

SOURCES += \
    basicplugin.cpp \
    basicpluginfactory.cpp \
    builtinobjects.cpp \
    builtinrelations.cpp \
    colorsequence.cpp \
    csd.cpp \
    csdfactory.cpp \
    curve.cpp \
    curvefactory.cpp \
    curvehint.cpp \
    curvepointsymbol.cpp \
    dataobject.cpp \
    dialoglauncher.cpp \
    emailthread.cpp \
    eparse.cpp \
    eparse-eh.cpp \
    enodes.cpp \
    enodefactory.cpp \
    escan.cpp \
    equation.cpp \
    equationfactory.cpp \
    eventmonitorentry.cpp \
    eventmonitorfactory.cpp \
    fftsg_h.c \
    histogram.cpp \
    histogramfactory.cpp \
    image.cpp \
    imagefactory.cpp \
    labelparser.cpp \
    linestyle.cpp \
    objectfactory.cpp \
    painter.cpp \
    palette.cpp \
    psd.cpp \
    psdcalculator.cpp \
    psdfactory.cpp \
    plottickcalculator.cpp \
    relation.cpp \
    relationfactory.cpp

HEADERS += \
    basicplugin.h \
    basicpluginfactory.h \
    builtinobjects.h \
    builtinrelations.h \
    builtinpalettes.h \
    colorsequence.h \
    csd.h \
    csdfactory.h \
    curve.h \
    curvefactory.h \
    curvehint.h \
    curvepointsymbol.h \
    dialoglauncher.h \
    enodefactory.h \
    enodes.h \
    eparse-eh.h \
    eparse.h \
    dataobject.h \
    dataobjectplugin.h \
    emailthread.h \
    equation.h \
    equationfactory.h \
    eventmonitorentry.h \
    eventmonitorfactory.h \
    histogram.h \
    histogramfactory.h \
    image.h \
    imagefactory.h \
    labelparser.h \
    linestyle.h \
    objectfactory.h \
    painter.h \
    palette.h \
    plotdefines.h \
    psd.h \
    psdcalculator.h \
    plottickcalculator.h \
    relation.h \
    relationfactory.h

#LEXSOURCES += escan.l
#YACCSOURCES += eparse.y
