Commit 419cb97b authored by Vittorio Giovara's avatar Vittorio Giovara Committed by Tristan Matthews

client: split the dbus Makefile into generic parts

Change-Id: Ic5ffa4329bb86e1a2208ab0e7e9d842e5d591c47
Refs: #46447
parent fd2dffb0
......@@ -41,7 +41,7 @@ libsflphone_la_LIBADD = \
$(IAX_LIB) \
./sip/libsiplink.la \
./audio/libaudio.la \
./client/dbus/libclient.la \
./client/libclient.la \
./config/libconfig.la \
./hooks/libhooks.la \
./history/libhistory.la $(SFL_VIDEO_LIB) $(IM_LIB)
......
include $(top_srcdir)/globals.mak
noinst_LTLIBRARIES = libclient.la
noinst_HEADERS = callmanager.h \
configurationmanager.h \
client.h
if SFL_PRESENCE
PRESENCE_SRC = presencemanager.cpp
noinst_HEADERS += presencemanager.h
endif
if SFL_VIDEO
noinst_HEADERS += video_controls.h
endif
SUBDIRS=dbus
libclient_la_LIBADD = dbus/libclient_dbus.la
libclient_la_SOURCES = callmanager.cpp \
configurationmanager.cpp \
$(PRESENCE_SRC)
libclient_la_CXXFLAGS = -I./ \
-DPREFIX=\"$(prefix)\" \
-DPROGSHAREDIR=\"${datadir}/sflphone\"
include $(top_srcdir)/globals.mak
noinst_LTLIBRARIES = libclient.la
noinst_LTLIBRARIES = libclient_dbus.la
BUILT_SOURCES= \
callmanager-glue.h \
......@@ -31,51 +31,38 @@ configurationmanager-glue.h: configurationmanager-introspec.xml Makefile.am
instance-glue.h: instance-introspec.xml Makefile.am
dbusxx-xml2cpp $< --adaptor=$@
libclient_la_SOURCES = \
libclient_dbus_la_SOURCES = \
callmanager_dbus.cpp \
../callmanager.cpp \
configurationmanager_dbus.cpp \
../configurationmanager.cpp \
instance.cpp \
client.cpp
if SFL_PRESENCE
libclient_la_SOURCES+=../presencemanager.cpp presencemanager_dbus.cpp
libclient_dbus_la_SOURCES += presencemanager_dbus.cpp
endif
if SFL_VIDEO
libclient_la_SOURCES+=video_controls.cpp
libclient_dbus_la_SOURCES += video_controls.cpp
endif
if USE_NETWORKMANAGER
libclient_la_SOURCES += networkmanager.cpp
libclient_dbus_la_SOURCES += networkmanager.cpp
NETWORKMANAGER=-DUSE_NETWORKMANAGER
endif
libclient_la_CXXFLAGS = -I../ \
libclient_dbus_la_CXXFLAGS = -I../ \
-DPREFIX=\"$(prefix)\" \
-DPROGSHAREDIR=\"${datadir}/sflphone\" \
$(NETWORKMANAGER) \
$(DBUSCPP_CFLAGS)
noinst_HEADERS = \
../callmanager.h \
../configurationmanager.h \
instance.h \
../client.h \
networkmanager_proxy.h \
networkmanager.h \
dbus_cpp.h \
$(BUILT_SOURCES)
if SFL_PRESENCE
noinst_HEADERS+=../presencemanager.h
endif
if SFL_VIDEO
noinst_HEADERS+=../video_controls.h
endif
# Dbus service file
servicedir = $(datadir)/dbus-1/services
service_in_files = org.sflphone.SFLphone.service.in
......
Markdown is supported
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