eql5/src/eql_lib.pro
2021-03-28 09:41:28 +02:00

100 lines
2.5 KiB
Prolog

QT += widgets printsupport uitools qml
TEMPLATE = lib
CONFIG += dll no_keywords release $$(SAILFISH)
DEFINES += EQL_LIBRARY
INCLUDEPATH += /usr/local/include
LIBS += -lecl -L. -lini_eql5 -L/usr/local/lib
TARGET = eql5
DESTDIR = ../
OBJECTS_DIR = ./tmp/
MOC_DIR = ./tmp/
VERSION = $$(EQL_VERSION)
# static modules (optional) *** warning: only use them if you know what you are doing! ***
#DEFINES += STATIC_MODULES
#QT += network quick quickwidgets qml # (base for iOS)
#LIBS += -L.. -leql5_network -leql5_quick # (base for iOS)
#QT += help multimedia multimediawidgets sql svg webengine webenginewidgets # webkit webkitwidgets
#LIBS += -L.. -leql5_help -leql5_multimedia -leql5_sql -leql5_svg -leql5_webengine # -leql5_webkit
include.files = eql5/*
linux {
include.path = /usr/include/eql5
target.path = $$[QT_INSTALL_LIBS]
}
osx {
include.path = /usr/local/include/eql5
target.path = /usr/local/lib
}
INSTALLS = include target
msvc {
PRE_TARGETDEPS += ini_eql5.lib
}
!msvc {
PRE_TARGETDEPS += libini_eql5.a
}
win32 {
include(windows.pri)
}
sailfish {
# on Sailfish run this prior to run qmake:
# $ export SAILFISH=sailfish
QT -= printsupport uitools
CONFIG -= dll
CONFIG += shared_and_static build_all
DEFINES += OS_SAILFISH
message("*** Building for SailfishOS ***")
}
static {
CONFIG += create_prl
DEFINES += STATIC_MODULES
QT += qml multimedia network quick sql
LIBS -= -lecl -L. -lini_eql5 -L/usr/local/lib
OBJECTS_DIR = ./tmp/static/
MOC_DIR = ./tmp/static/
combinedlib.extra = ecl -shell make-static.lisp
combinedlib.path = $$[QT_INSTALL_LIBS]
INSTALLS = combinedlib target
}
HEADERS += gen/_lobjects.h \
gen/_main_q_classes.h \
gen/_main_n_classes.h \
gen/_main_q_methods.h \
gen/_main_n_methods.h \
eql5/eql.h \
eql5/eql_fun.h \
eql5/eql_global.h \
eql5/dyn_object.h \
module_interface.h \
qt_eql.h \
ui_loader.h \
single_shot.h \
ecl_fun.h \
extras.h
SOURCES += gen/_lobjects.cpp \
module_interface.cpp \
qt_eql.cpp \
dyn_object.cpp \
ecl_fun.cpp \
extras.cpp \
eql.cpp
gcc {
QMAKE_CXXFLAGS_WARN_ON += -Wno-clobbered -Wno-unknown-warning-option
}
clang {
QMAKE_CXXFLAGS += -std=c++11
}