forked from sailfishos/voicecall
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wip: Create plugins/qtvoicecall and export it
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
1 parent
a45901f
commit 69314e7
Showing
13 changed files
with
2,230 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
TEMPLATE = subdirs | ||
SUBDIRS = src |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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} | ||
|
Oops, something went wrong.