Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cumbia-dbus-plugin
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cs
lib
cumbia
cumbia-dbus-plugin
Commits
8c541fc9
Commit
8c541fc9
authored
5 months ago
by
Giacomo Strangolino
Browse files
Options
Downloads
Patches
Plain Diff
added Makefiles. .pro with CUMBIA_ROOT support
parent
c6073af7
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
Makefile
+24
-0
24 additions, 0 deletions
Makefile
Makefile.INAU
+24
-0
24 additions, 0 deletions
Makefile.INAU
Makefile.cmake
+31
-0
31 additions, 0 deletions
Makefile.cmake
cumbia-dbus-plugin.pro
+63
-17
63 additions, 17 deletions
cumbia-dbus-plugin.pro
with
142 additions
and
17 deletions
Makefile
0 → 100644
+
24
−
0
View file @
8c541fc9
# 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.
*
This diff is collapsed.
Click to expand it.
Makefile.INAU
0 → 100644
+
24
−
0
View file @
8c541fc9
# 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.
*
This diff is collapsed.
Click to expand it.
Makefile.cmake
0 → 100644
+
31
−
0
View file @
8c541fc9
# Makefile
# Get the current working directory
CURRENT_DIR := $
(
shell pwd
)
# Set default values for build_dir and install_prefix
BUILD_DIR := $
(
CURRENT_DIR
)
/build
TMP_INSTALL_DIR=$
(
CURRENT_DIR
)
/tmp-install-dir
PREFIX ?= /runtime
export MAKE := $
(
MAKE
)
# The default target when you run 'make'
all:
@echo
"[ Makefile ] build_dir=$(BUILD_DIR) install_prefix=$(PREFIX) jobs $(JOBS)"
mkdir -p $
(
BUILD_DIR
)
; \
cd $
(
BUILD_DIR
)
&& cmake .. -DCMAKE_INSTALL_PREFIX=$
(
TMP_INSTALL_DIR
)
-DCMAKE_PREFIX_PATH=$
(
PREFIX
)
/lib -DCMAKE_MODULE_PATH=$
(
PREFIX
)
/lib/cmake && $
(
MAKE
)
&& $
(
MAKE
)
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
)
# Set the build_dir and install_prefix from the command line if provided
# Example: make build_dir=/custom/build install_prefix=/custom/install install
build:
@echo
"[ Makefile ] build_dir=$(BUILD_DIR) and install_prefix=$(PREFIX)"
mkdir -p $
(
BUILD_DIR
)
; \
cd $
(
BUILD_DIR
)
&& cmake .. -DCMAKE_INSTALL_PREFIX=$
(
TMP_INSTALL_DIR
)
&& $
(
MAKE
)
&& $
(
MAKE
)
install
This diff is collapsed.
Click to expand it.
cumbia-dbus-plugin.pro
+
63
−
17
View file @
8c541fc9
# $Id: dbus.pro,v 1.9 2014-08-28 13:23:45 giacomo Exp $
#
$
Name
$
isEmpty
(
INSTALL_ROOT
)
{
INSTALL_ROOT
=
/
usr
/
local
/
cumbia
-
libs
}
exists
(..
/
qumbia
-
plugins
.
pri
/
qumbia
-
plugins
.
pri
)
{
include
(..
/
qumbia
-
plugins
.
pri
/
qumbia
-
plugins
.
pri
)
}
else
{
message
(
"*"
)
message
(
"* download qumbia-plugins.pri project into parent directory"
)
message
(
"*"
)
message
(
"> git clone https://gitlab.elettra.eu/cs/lib/cumbia/qumbia-plugins.pri ../qumbia-plugins.pri"
)
message
(
"*"
)
error
(
"* missing ../qumbia-plugins.pri/qumbia-plugins.pri file"
)
isEmpty
(
prefix
)
{
prefix
=
$$
{
INSTALL_ROOT
}
}
include
(
$$
{
INSTALL_ROOT
}
/
include
/
cumbia
-
qtcontrols
/
cumbia
-
qtcontrols
.
pri
)
isEmpty
(
CUMBIA_ROOT
)
{
CUMBIA_ROOT
=
$$
{
prefix
}
}
include
(
$$
{
CUMBIA_ROOT
}
/
include
/
cumbia
-
qtcontrols
/
cumbia
-
qtcontrols
.
pri
)
isEmpty
(
INSTALL_ROOT
)
{
INSTALL_ROOT
=
/
usr
/
local
/
cumbia
-
libs
}
MAKEFILE
=
Makefile
.
qmake
TEMPLATE
=
lib
CONFIG
+=
plugin
QT
+=
core
gui
QUMBIA_PLUGINS_INCLUDES
=
$$
{
INSTALL_ROOT
}
/
include
/
qumbia
-
plugins
QUMBIA_PLUGINS_SHARE
=
$$
{
INSTALL_ROOT
}
/
share
/
qumbia
-
plugins
QUMBIA_PLUGINS_LIBDIR
=
$$
{
INSTALL_ROOT
}
/
lib
/
qumbia
-
plugins
QUMBIA_PLUGINS_DOCDIR
=
$$
{
INSTALL_ROOT
}
/
share
/
doc
/
qumbia
-
plugins
INC_DIR
=
$$
{
QUMBIA_PLUGINS_INCLUDES
}
SHAREDIR
=
$$
{
QUMBIA_PLUGINS_SHARE
}
PLUGIN_LIB_DIR
=
$$
{
QUMBIA_PLUGINS_LIBDIR
}
DESTDIR
=
plugins
unix
:
!
android
-
g
++
{
DEFINES
+=
CUMBIAQTCONTROLS_HAS_QWT
=
1
}
DOC_DIR
=
$$
{
QUMBIA_PLUGINS_DOCDIR
}
!
isEmpty
(
docs
)
{
doc
.
commands
=
\
doxygen
\
Doxyfile
;
doc
.
files
=
doc
/*
doc.path = $${DOC_DIR}
QMAKE_EXTRA_TARGETS += doc
INSTALLS += doc
}
else {
message("call qmake docs=1 to generate and install docs")
}
target.path = $${PLUGIN_LIB_DIR}
inc.path = $${INC_DIR}
INSTALLS += target inc
DEFINES_QUMBIA_PLUGINS_LIBDIR = $${prefix}/lib/qumbia-plugins
# added by cumbia-qtcontrols.pri, not included by this file
#
DEFINES += \
CUMBIA_QTCONTROLS_PLUGIN_DIR=\"\\\"$${DEFINES_QUMBIA_PLUGINS_LIBDIR}\\\"\" \
isEmpty(buildtype) {
buildtype = release
...
...
@@ -27,7 +75,9 @@ isEmpty(buildtype) {
message("")
}
}
CONFIG
+=
$$
{
buildtype
}
CONFIG += $${buildtype} plugin
QT += dbus xml
...
...
@@ -56,7 +106,3 @@ inc.files += $${HEADERS} cumbiadbus_interface.h
DISTFILES += \
quapplication.xml
#
qumbia
-
plugins
.
pri
defines
default
INSTALLS
for
target
inc
and
doc
#
doc
commands
,
target
.
path
and
inc
.
path
are
defined
there
as
well
.
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment