Skip to content
Snippets Groups Projects
Commit 9991de9c authored by Giacomo Strangolino's avatar Giacomo Strangolino
Browse files

added Makefiles and renamed .pro

parent ef7a9df7
No related branches found
No related tags found
No related merge requests found
# Makefile
# Get the current working directory
CURRENT_DIR := $(shell pwd)
TMP_INSTALL_DIR=$(CURRENT_DIR)/tmp-install-dir
PREFIX ?= /runtime
CUMBIA_ROOT ?= /runtime
MKF_OUT=Makefile.qmake
export MAKE := $(MAKE)
# The default target when you run 'make'
all:
@qmake INSTALL_ROOT=$(TMP_INSTALL_DIR) prefix=$(PREFIX) -o $(MKF_OUT) && $(MAKE) -f $(MKF_OUT) \
&& $(MAKE) -f $(MKF_OUT) install
# The target when you run 'make install'
install:
@echo "[ Makefile ] installing from $(TMP_INSTALL_DIR) to $(PREFIX)"
@mkdir -p $(PREFIX)
@cp -rv $(TMP_INSTALL_DIR)/* $(PREFIX)
clean:
@rm -rf objs obj moc $(MKF_OUT) lib*.so.*
isEmpty(INSTALL_ROOT) {
INSTALL_ROOT = /usr/local/cumbia-libs
}
isEmpty(prefix) {
prefix = $${INSTALL_ROOT}
}
isEmpty(CUMBIA_ROOT) {
CUMBIA_ROOT = $${prefix}
}
include($${CUMBIA_ROOT}/include/cumbia-qtcontrols/cumbia-qtcontrols.pri)
QUMBIA_PLUGINS_LIBDIR=$${INSTALL_ROOT}/lib/qumbia-plugins
QT += core gui datavisualization
MAKEFILE=Makefile.qmake
TARGET = cumbia-viewtrend-context-menu-actions-plugin
TEMPLATE = lib
CONFIG += plugin
MOC_DIR=moc
OBJECTS_DIR=objs
isEmpty(buildtype) {
buildtype = release
} else {
equals(buildtype, debug) {
message("")
message("debug build")
message("")
}
}
CONFIG += $${buildtype}
# The following define makes your compiler emit warnings if you use
# any feature of Qt which has been marked as deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS
# You can also make your code fail to compile if you use deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
SOURCES += \
cumbia-viewtrend-ctx-menu-action.cpp \
qutrendwidget.cpp
HEADERS += \
cumbia-viewtrend-ctx-menu-action.h \
qutrendwidget.h
DISTFILES += cumbia-viewtrend-context-menu-action.json \
README.md
unix {
target.path = $${QUMBIA_PLUGINS_LIBDIR}
INSTALLS += target
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment