Skip to content

Commit

Permalink
wip: Create plugins/qtvoicecall and export it
Browse files Browse the repository at this point in the history
This exports most of the functionality from the plugins/declarative
code, but without the QML code as a library with pkgconfig, so that we
can interface with voicecall-manager from Qt
  • Loading branch information
MerlijnWajer committed Jan 21, 2023
1 parent a45901f commit 69314e7
Show file tree
Hide file tree
Showing 13 changed files with 2,230 additions and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/plugins.pro
@@ -1,5 +1,5 @@
TEMPLATE = subdirs
SUBDIRS = declarative providers playback-manager mce
SUBDIRS = declarative providers playback-manager mce qtvoicecall

enable-ngf {
SUBDIRS += ngf
Expand Down
2 changes: 2 additions & 0 deletions plugins/qtvoicecall/qtvoicecall.pro
@@ -0,0 +1,2 @@
TEMPLATE = subdirs
SUBDIRS = src
49 changes: 49 additions & 0 deletions plugins/qtvoicecall/src/src.pro
@@ -0,0 +1,49 @@
TEMPLATE = lib
TARGET = qtvoicecall

QT = core dbus multimedia

CONFIG += c++11
CONFIG += compile_libtool create_libtool
CONFIG += create_pc create_prl no_install_prl
CONFIG += link_pkgconfig
# This disables making a .la file
#CONFIG += plugin

# just for common.h
INCLUDEPATH += $$PWD/../../../lib/src

HEADERS += \
voicecallaudiorecorder.h \
voicecallhandler.h \
voicecallmanager.h \
voicecallmodel.h \
voicecallprovidermodel.h

SOURCES += \
voicecallaudiorecorder.cpp \
voicecallhandler.cpp \
voicecallmanager.cpp \
voicecallmodel.cpp \
voicecallprovidermodel.cpp \
../../../lib/src/common.cpp

headers.path = /usr/include/qtvoicecall
headers.files = $${HEADERS}
headers.target = qtvoicecall


target.path = $$[QT_INSTALL_LIBS]

INSTALLS += target headers

QMAKE_PKGCONFIG_FILE = $${TARGET}
# This fills in the Name property
QMAKE_PKGCONFIG_NAME = $${TARGET}
# This fills in the Description property
QMAKE_PKGCONFIG_DESCRIPTION = libqtvoicecall pkgconfig
QMAKE_PKGCONFIG_LIBDIR = $$target.path
QMAKE_PKGCONFIG_INCDIR = $$headers.path
QMAKE_PKGCONFIG_DESTDIR = pkgconfig
QMAKE_PKGCONFIG_PREFIX = $${PREFIX}

0 comments on commit 69314e7

Please sign in to comment.