Compare commits

...

39 Commits

Author SHA1 Message Date
c9dac30378 debian files 2025-10-18 00:29:07 +08:00
c65cba538d debian files 2025-10-17 23:52:27 +08:00
4cdf674699 debian files 2025-10-17 23:05:13 +08:00
Simo Piiroinen
5af012a1ac Bump mce-dev version to 1.29.0
Signed-off-by: Simo Piiroinen <simo.piiroinen@jolla.com>
2021-10-25 18:12:57 +03:00
Simo Piiroinen
11e0cb820a Merge pull request #1 from spiiroin/jb55731_mouse_availability
[mce] Add mouse availability state D-Bus constants. JB#55866
2021-10-25 18:08:17 +03:00
Simo Piiroinen
c537983848 [mce] Add mouse availability state D-Bus constants. JB#55866
Constants related to exposing mouse availablity state on D-Bus.

Signed-off-by: Simo Piiroinen <simo.piiroinen@jollamobile.com>
2021-10-13 15:39:26 +03:00
Simo Piiroinen
9d2cb2a039 Bump mce-dev version to 1.28.3
[mce-dev] Set rpm build arch to noarch. JB#49548

Signed-off-by: Simo Piiroinen <simo.piiroinen@jollamobile.com>
2020-09-01 11:45:32 +03:00
spiiroin
0ffea0bfce Merge branch 'noarch' into 'master'
Set rpm build arch to noarch

See merge request mer-core/mce-dev!15
2020-09-01 08:41:52 +00:00
Rinigus
3a14b1da00 [mce-dev] Set rpm build arch to noarch
Signed-off-by: Rinigus <rinigus.git@gmail.com>
2020-08-31 18:16:06 +03:00
Simo Piiroinen
d79b26d86c Bump mce-dev version to 1.28.2 2020-05-25 16:45:16 +03:00
spiiroin
93b92f9b2b Merge branch 'jb49681' into 'master'
[aarch64] Specify pcdir with use of libdir. Contributes to JB#49681

See merge request mer-core/mce-dev!14
2020-05-25 13:42:09 +00:00
Niels Breet
2f21adad01 [aarch64] Specify pcdir with use of libdir. Contributes to JB#49681 2020-05-25 13:42:09 +00:00
Simo Piiroinen
a50532c2d7 Bump mce-dev version to 1.28.1
[mce-dev] Make the makefile compatible with Busybox. JB#49548
2020-04-07 09:28:40 +03:00
pvuorela
f803d51e0e Merge branch 'makefile-busybox' into 'master'
Make the makefile compatible with Busybox

See merge request mer-core/mce-dev!13
2020-04-02 14:02:15 +00:00
Bart Ribbers
5b816ac676 Make the makefile compatible with Busybox
Busybox follows stricter POSIX standards, and doesn't support the --mode
and --directory arguments, but rather uses the shorthand variants -m and
-d
2020-03-25 12:35:09 +01:00
Simo Piiroinen
4156ad426d Bump mce-dev version to 1.28.0 2019-10-08 13:01:09 +03:00
spiiroin
4990e6331c Merge branch 'jb44852_battery_state' into 'master'
Add charger state D-Bus constants

See merge request mer-core/mce-dev!12
2019-10-08 09:58:46 +00:00
Simo Piiroinen
b1bad1c065 [mce] Add charger state D-Bus constants. JB#44852
Constants related to exposing charger state on D-Bus.

Signed-off-by: Simo Piiroinen <simo.piiroinen@jollamobile.com>
2019-10-07 12:57:10 +03:00
Simo Piiroinen
64c420aa28 Bump mce-dev version to 1.27.0 2019-08-26 09:38:03 +03:00
spiiroin
74b1d5e065 Merge branch 'jb38667_charger_type' into 'master'
Add charger type D-Bus constants

See merge request mer-core/mce-dev!11
2019-08-26 06:36:09 +00:00
Simo Piiroinen
5ee3ef6125 [mce] Add charger type D-Bus constants. JB#38667
Constants related to exposing charger type on D-Bus.

Signed-off-by: Simo Piiroinen <simo.piiroinen@jollamobile.com>
2019-08-23 14:29:37 +03:00
Simo Piiroinen
03a4de12e5 Bump mce-dev version to 1.26.1 2019-06-25 10:13:10 +03:00
pvuorela
26c6abec6a Merge branch 'jb33684' into 'master'
[mce-dev] fix license and website. Contributes to JB#33684

See merge request mer-core/mce-dev!10
2019-06-24 14:17:25 +00:00
MikeSalmela
3a043c11ce [mce-dev] fix url. Contributes to JB#33684 2019-06-17 09:45:46 +03:00
spiiroin
5cbcf356be Merge branch 'jb42094_button_backlight_override' into 'master'
Add D-Bus constants for button backlight mode

See merge request mer-core/mce-dev!9
2018-11-21 06:28:57 +00:00
Simo Piiroinen
7ff2bfbe8c Bump mce-dev version to 1.26.0 2018-11-20 12:43:47 +02:00
Simo Piiroinen
2fea21d391 [mce] Add missing Doxygen group name tag
Signed-off-by: Simo Piiroinen <simo.piiroinen@jollamobile.com>
2018-11-20 12:40:55 +02:00
Simo Piiroinen
41bbc89b27 [mce] Add D-Bus constants for button backlight mode. JB#42094
Available in mce >= 1.98.0

Signed-off-by: Simo Piiroinen <simo.piiroinen@jollamobile.com>
2018-11-20 12:40:16 +02:00
Simo Piiroinen
e8f71174c9 Bump mce-dev version to 1.25.0 2018-03-20 10:09:03 +02:00
spiiroin
92c7aeea13 Merge branch 'jb41340_blanking_pause' into 'master'
[mce] Add blanking pause related D-Bus constants

See merge request !8
2018-03-20 08:06:50 +00:00
Simo Piiroinen
d56854bc87 [mce] Add blanking pause related D-Bus constants. JB#41340
Also update documentation for MCE_PREVENT_BLANK_REQ.

Signed-off-by: Simo Piiroinen <simo.piiroinen@jollamobile.com>
2018-03-19 12:47:17 +02:00
Simo Piiroinen
2789748227 Bump mce-dev version to 1.24.0 2017-11-24 12:09:38 +02:00
spiiroin
c0a97915db Merge branch 'mer1854_do_not_hardcode' into 'master'
Add missing D-Bus method call and signal names

See merge request !7
2017-11-24 10:06:45 +00:00
Simo Piiroinen
c1f3964d19 [mce] Add missing methods and signals. MER#1854
Some methods and signals belonging to mce D-Bus interface are
not declared in mce-dev package. And what is declared is not
grouped in a manner that would make the context of constants
clear.

Add missing method/signal/argument constants.

Group constants by context.

Add references from methods/signals to relevant argument
constants.

Do not refer to glib types when explaining a D-Bus interfaces.

Where needed update the explanatory comments.

Signed-off-by: Simo Piiroinen <simo.piiroinen@jollamobile.com>
2017-11-18 18:25:50 +02:00
Simo Piiroinen
255289d291 [doxygen] Do not scan the whole source tree
Doxygen is rather verbose and scanning .git subdirectory produces a
lot of noise.

Limit scanning only to to subdirectories that have data for doxygen.

Signed-off-by: Simo Piiroinen <simo.piiroinen@jollamobile.com>
2017-11-18 18:16:03 +02:00
Simo Piiroinen
89eac9fffc [doxygen] Do not sort member docs
Things are grouped by association within source files. Sorting by
name effectively breaks the grouping in the resulting documentation.

Signed-off-by: Simo Piiroinen <simo.piiroinen@jollamobile.com>
2017-11-18 18:16:03 +02:00
Simo Piiroinen
d279de8fc9 [doxygen] Remove obsolete settings that cause warnings
Signed-off-by: Simo Piiroinen <simo.piiroinen@jollamobile.com>
2017-11-18 18:16:03 +02:00
Simo Piiroinen
b40c427c43 [makefile] Do not silence doxygen warnings
Doxygen is noisy and can't be asked to be less verbose, but
hiding all output from it to a log file hides any real issues
it is facing.

Redirect only stdout which is where doxygen writes progress
noise, let warnings and such output to stderr stay visible.

Also follow makefile conventions by adding standard make
targets and using DESTDIR macro only in install rule.

Signed-off-by: Simo Piiroinen <simo.piiroinen@jollamobile.com>
2017-11-18 18:14:59 +02:00
Simo Piiroinen
f22c9e2467 [rpmbuild] Use _smp_mflags instead of jobs macro
The "jobs" macro is non-standard and won't use multiple cores when
building under mb2.

Signed-off-by: Simo Piiroinen <simo.piiroinen@jollamobile.com>
2017-10-10 15:31:15 +03:00
13 changed files with 2230 additions and 896 deletions

View File

@@ -272,22 +272,6 @@ SUBGROUPING = YES
TYPEDEF_HIDES_STRUCT = NO
# The SYMBOL_CACHE_SIZE determines the size of the internal cache use to
# determine which symbols to keep in memory and which to flush to disk.
# When the cache is full, less often used symbols will be written to disk.
# For small to medium size projects (<1000 input files) the default value is
# probably good enough. For larger projects a too small cache size can cause
# doxygen to be busy swapping symbols to and from disk most of the time
# causing a significant performance penality.
# If the system has enough physical memory increasing the cache will improve the
# performance by keeping more symbols in memory. Note that the value works on
# a logarithmic scale so increasing the size by one will rougly double the
# memory usage. The cache size is given by this formula:
# 2^(16+SYMBOL_CACHE_SIZE). The valid range is 0..9, the default is 0,
# corresponding to a cache size of 2^16 = 65536 symbols
SYMBOL_CACHE_SIZE = 0
#---------------------------------------------------------------------------
# Build related configuration options
#---------------------------------------------------------------------------
@@ -396,7 +380,7 @@ INLINE_INFO = YES
# alphabetically by member name. If set to NO the members will appear in
# declaration order.
SORT_MEMBER_DOCS = YES
SORT_MEMBER_DOCS = NO
# If the SORT_BRIEF_DOCS tag is set to YES then doxygen will sort the
# brief documentation of file, namespace and class members alphabetically
@@ -466,12 +450,6 @@ MAX_INITIALIZER_LINES = 30
SHOW_USED_FILES = YES
# If the sources in your project are distributed over multiple directories
# then setting the SHOW_DIRECTORIES tag to YES will show the directory hierarchy
# in the documentation. The default is NO.
SHOW_DIRECTORIES = NO
# Set the SHOW_FILES tag to NO to disable the generation of the Files page.
# This will remove the Files entry from the Quick Index and from the
# Folder Tree View (if specified). The default is YES.
@@ -564,7 +542,7 @@ WARN_LOGFILE =
# directories like "/usr/src/myproject". Separate the files or directories
# with spaces.
INPUT =
INPUT = include/mce
# This tag can be used to specify the character encoding of the source files
# that doxygen parses. Internally doxygen uses the UTF-8 encoding, which is
@@ -792,12 +770,6 @@ HTML_FOOTER =
HTML_STYLESHEET =
# If the HTML_ALIGN_MEMBERS tag is set to YES, the members of classes,
# files or namespaces will be aligned in HTML using tables. If set to
# NO a bullet list will be used.
HTML_ALIGN_MEMBERS = YES
# If the HTML_DYNAMIC_SECTIONS tag is set to YES then the generated HTML
# documentation will contain sections that can be hidden and shown after the
# page has loaded. For this to work a browser that supports
@@ -1133,18 +1105,6 @@ GENERATE_XML = NO
XML_OUTPUT = xml
# The XML_SCHEMA tag can be used to specify an XML schema,
# which can be used by a validating XML parser to check the
# syntax of the XML files.
XML_SCHEMA =
# The XML_DTD tag can be used to specify an XML DTD,
# which can be used by a validating XML parser to check the
# syntax of the XML files.
XML_DTD =
# If the XML_PROGRAMLISTING tag is set to YES Doxygen will
# dump the program listings (including syntax highlighting
# and cross-referencing information) to the XML output. Note that
@@ -1354,7 +1314,7 @@ HAVE_DOT = NO
# DOTFONTPATH environment variable or by setting DOT_FONTPATH to the directory
# containing the font.
DOT_FONTNAME = FreeSans
DOT_FONTNAME =
# The DOT_FONTSIZE tag can be used to set the size of the font of dot graphs.
# The default size is 10pt.

View File

@@ -5,38 +5,68 @@
# Author: David Weinehall <david.weinehall@nokia.com>
# Modified by: Ilya Dogolazky, Tuomo Tanskanen
INSTALL_DIR := install -d
INSTALL_DATA := install --mode=644
# ----------------------------------------------------------------------------
# TOP LEVEL TARGETS
# ----------------------------------------------------------------------------
DOXYGEN := doxygen
.PHONY: build doc install clean distclean mostlyclean
PCDIR := $(DESTDIR)/usr/lib/pkgconfig
INCLUDEDIR := $(DESTDIR)/usr/include/mce
build::
TOPDIR := $(shell /bin/pwd)
INCDIR := $(TOPDIR)/include/mce
DOCDIR := $(TOPDIR)/doc
doc::
PCFILE := mce.pc
INCLUDE_FILES := $(INCDIR)/dbus-names.h $(INCDIR)/mode-names.h
install::
.PHONY: doc
doc: doc/warnings
mostlyclean::
$(RM) *.bak *~
$(RM) mce/include/*.bak mce/include/*~
doc/warnings: $(INCLUDE_FILES) Doxyfile
@if [ ! -d "$(DOCDIR)" ]; then mkdir "$(DOCDIR)"; fi
@$(DOXYGEN) 2> $(TOPDIR)/doc/warnings > /dev/null
clean:: mostlyclean
clean:
@if [ x"$(DOCDIR)" != x"" ]; then \
rm -rf "$(DOCDIR)"; \
fi
distclean:: clean
.PHONY: install
install: doc
$(INSTALL_DIR) $(PCDIR) $(INCLUDEDIR) &&\
$(INSTALL_DATA) $(PCFILE) $(PCDIR) &&\
$(INSTALL_DATA) $(INCLUDE_FILES) $(INCLUDEDIR)
# ----------------------------------------------------------------------------
# INSTALL CONFIG
# ----------------------------------------------------------------------------
.PHONY: distclean
distclean: clean
DESTDIR ?= /tmp/test-mce-dev
PCDIR ?= /usr/lib/pkgconfig
INCLUDEDIR := /usr/include/mce
INSTALL_DIR := install -m 755 -d
INSTALL_DATA := install -m 644
# ----------------------------------------------------------------------------
# FILES TO BUILD / INSTALL
# ----------------------------------------------------------------------------
PCFILE += mce.pc
INCLUDE_FILES += include/mce/dbus-names.h
INCLUDE_FILES += include/mce/mode-names.h
# ----------------------------------------------------------------------------
# DOCUMENTATION RULES
# ----------------------------------------------------------------------------
doc:: doc/doxygen.log
doc/doxygen.log: $(INCLUDE_FILES) Doxyfile
mkdir -p doc
doxygen 1> $@ # stdout=noise stderr=warnings
clean::
$(RM) -rf doc
# ----------------------------------------------------------------------------
# INSTALL RULES
# ----------------------------------------------------------------------------
install::
# package config files
$(INSTALL_DIR) $(DESTDIR)$(PCDIR)
$(INSTALL_DATA) $(PCFILE) $(DESTDIR)$(PCDIR)/
# header files
$(INSTALL_DIR) $(DESTDIR)$(INCLUDEDIR)
$(INSTALL_DATA) $(INCLUDE_FILES) $(DESTDIR)$(INCLUDEDIR)

10
debian/Jenkinsfile vendored Normal file
View File

@@ -0,0 +1,10 @@
@Library('ubports-build-tools') _
buildAndProvideDebianPackage()
// Or if the package consists entirely of arch-independent packages:
// (optional optimization, will confuse BlueOcean's live view at build stage)
// buildAndProvideDebianPackage(/* isArchIndependent */ true)
// Optionally, to skip building on some architectures (amd64 is always built):
// buildAndProvideDebianPackage(false, /* ignoredArchs */ ['arm64'])

75
debian/changelog vendored
View File

@@ -1,3 +1,78 @@
mce-dev (1.29.0-1ubports1) focal; urgency=medium
* Port to focal
* Update to dh version 12
* Remove obsolete files
* Install architecture independent mce.pc in /usr/share/pkgconfig
-- Guido Berhoerster <guido+gitlab.com@berhoerster.name> Thu, 09 Dec 2021 11:20:24 +0100
mce-dev (1.29.0) unstable; urgency=low
* [mce] Add mouse availability state D-Bus constants. JB#55866
-- Simo Piiroinen <simo.piiroinen@jolla.com> Mon, 25 Oct 2021 18:09:15 +0300
mce-dev (1.28.3) unstable; urgency=low
* [mce-dev] Set rpm build arch to noarch
-- Simo Piiroinen <simo.piiroinen@jollamobile.com> Tue, 01 Sep 2020 11:42:42 +0300
mce-dev (1.28.2) unstable; urgency=low
* [aarch64] Specify pcdir with use of libdir. Contributes to JB#49681
-- Simo Piiroinen <simo.piiroinen@jollamobile.com> Mon, 25 May 2020 16:43:30 +0300
mce-dev (1.28.1) unstable; urgency=low
* [mce-dev] Make the makefile compatible with Busybox
-- Simo Piiroinen <simo.piiroinen@jollamobile.com> Tue, 07 Apr 2020 09:20:57 +0300
mce-dev (1.28.0) unstable; urgency=low
* [mce] Add charger state D-Bus constants. JB#44852
-- Simo Piiroinen <simo.piiroinen@jollamobile.com> Tue, 08 Oct 2019 12:59:35 +0300
mce-dev (1.27.0) unstable; urgency=low
* [mce] Add charger type D-Bus constants. JB#38667
-- Simo Piiroinen <simo.piiroinen@jollamobile.com> Mon, 26 Aug 2019 09:36:42 +0300
mce-dev (1.26.1) unstable; urgency=low
* [mce-dev] fix url. Contributes to JB#33684
-- Simo Piiroinen <simo.piiroinen@jollamobile.com> Tue, 25 Jun 2019 10:11:01 +0300
mce-dev (1.26.0) unstable; urgency=low
* [mce] Add D-Bus constants for button backlight mode. JB#42094
* [mce] Add missing Doxygen group name tag
-- Simo Piiroinen <simo.piiroinen@jollamobile.com> Tue, 20 Nov 2018 12:42:26 +0200
mce-dev (1.25.0) unstable; urgency=low
* [mce] Add blanking pause related D-Bus constants. JB#41340
-- Simo Piiroinen <simo.piiroinen@jollamobile.com> Tue, 20 Mar 2018 10:07:37 +0200
mce-dev (1.24.0) unstable; urgency=low
* [rpmbuild] Use _smp_mflags instead of jobs macro
* [makefile] Do not silence doxygen warnings
* [doxygen] Remove obsolete settings that cause warnings
* [doxygen] Do not sort member docs
* [doxygen] Do not scan the whole source tree
* [mce] Add missing methods and signals. MER#1854
-- Simo Piiroinen <simo.piiroinen@jollamobile.com> Fri, 24 Nov 2017 12:08:00 +0200
mce-dev (1.23.0) unstable; urgency=low
* [mce] Add button backlight policy related D-Bus constants. JB#39838

1
debian/compat vendored
View File

@@ -1 +0,0 @@
5

5
debian/control vendored
View File

@@ -1,9 +1,8 @@
Source: mce-dev
Section: devel
Priority: optional
Maintainer: Santtu Lakkala <ext-santtu.1.lakkala@nokia.com>
Uploaders: Tuomo Tanskanen <ext-tuomo.1.tanskanen@nokia.com>, Jukka Turunen <ext-jukka.t.turunen@nokia.com>
Build-Depends: debhelper (>= 5.0.0)
Maintainer: UBports developers <devs@ubports.com>
Build-Depends: debhelper-compat (= 12)
Build-Depends-Indep: doxygen
Standards-Version: 3.7.3

View File

@@ -1,2 +1,2 @@
debian/tmp/usr/lib/pkgconfig/*
debian/tmp/usr/include/mce/*
mce.pc usr/share/pkgconfig/
usr/include/mce/*

73
debian/rules vendored
View File

@@ -1,64 +1,17 @@
#!/usr/bin/make -f
# debian/rules for mce-dev using debhelper.
# Copyright © 2004-2009 Nokia Corporation. All rights reserved.
# You must remove unused comment lines for the released package.
#export DH_VERBOSE = 1
#export DEB_BUILD_MAINT_OPTIONS = hardening=+all
#export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
override_dh_auto_build:
dh_auto_build -- doc
# This has to be exported to make some magic below work.
export DH_OPTIONS
override_dh_auto_install:
dh_auto_install
# mce.pc is installed manually in usr/share/pkgconfig
rm -rf debian/tmp/usr/lib/pkgconfig
pkgdir = $(CURDIR)/debian/tmp
pcfileversion := $$(grep -m1 '^Version' mce.pc | sed -e 's/Version: *//')
changelogversion := $$(grep -m1 'mce-dev (' debian/changelog | sed -e 's/mce-dev (\(.*\)).*/\1/;s/\(^'$(pcfileversion)'\).*/\1/')
.PHONY: clean
clean:
dh_testdir
dh_testroot
$(MAKE) distclean
dh_clean
.PHONY: check
check:
@if [ x"$(pcfileversion)" != x"$(changelogversion)" ]; then \
printf "error: version-number mismatch\n"; \
printf "changelog version: $(changelogversion)\n"; \
printf ".pc-file version: $(pcfileversion)\n"; \
exit 1; \
fi
.PHONY: build
build: check
dh_testdir
$(MAKE) doc
.PHONY: install
install:
$(MAKE) install DESTDIR="$(pkgdir)"
.PHONY: binary-indep
binary-indep: build install
dh_testdir
dh_testroot
dh_installdocs
dh_installchangelogs
dh_install -i
dh_link
dh_compress
dh_fixperms
dh_installdeb
dh_gencontrol
dh_md5sums
dh_builddeb
.PHONY: binary-arch
binary-arch: build install
# nothing to see here, move along
.PHONY: binary
binary: binary-indep binary-arch
%:
dh $@

1
debian/source/format vendored Normal file
View File

@@ -0,0 +1 @@
3.0 (native)

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

2
mce.pc
View File

@@ -3,7 +3,7 @@ includedir=${prefix}/include
Name: mce
Description: Mode Control Entity
Version: 1.23.0
Version: 1.29.0
Requires:
Libs:
Cflags: -I${includedir}

View File

@@ -1,11 +1,12 @@
Name: mce-headers
Summary: Development files for mce
Version: 1.23.0
Version: 1.29.0
Release: 1
Group: Development/Libraries
License: LGPLv2
URL: https://github.com/nemomobile/mce-dev
URL: https://git.sailfishos.org/mer-core/mce-dev
Source0: %{name}-%{version}.tar.bz2
BuildArch: noarch
BuildRequires: doxygen
%description
@@ -26,12 +27,12 @@ provided by the Mode Control Entity, and the signals emitted by it.
%build
./verify_version
make %{?jobs:-j%jobs}
make %{?_smp_mflags}
make doc
%install
rm -rf %{buildroot}
%make_install
make install PCDIR=%{_libdir}/pkgconfig DESTDIR=%{?buildroot}
install -d %{buildroot}/%{_docdir}/mce-doc/html/
install -m 644 doc/html/* %{buildroot}/%{_docdir}/mce-doc/html/