summaryrefslogtreecommitdiffstats
path: root/kioslave/media/Makefile.am
blob: e727fc4a3113afeba56e1c3c7ce42938ba827566 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
if include_media_halbackend
PROPSDLGPLUGINDIR = propsdlgplugin
endif

SUBDIRS = libmediacommon . mediamanager medianotifier mounthelper \
          kfile-plugin kcmodule mimetypes services $(PROPSDLGPLUGINDIR)

INCLUDES = -I$(srcdir)/libmediacommon $(all_includes)
METASOURCES = AUTO

kde_module_LTLIBRARIES = kio_media.la

kio_media_la_SOURCES = dummy.cpp
kio_media_la_LIBADD  = libkiomedia.la libmediacommon/libmediacommon.la $(LIB_KIO)
kio_media_la_LDFLAGS = $(all_libraries) -module $(KDE_PLUGIN) -no-undefined

dummy.cpp:
	echo > dummy.cpp

kde_services_DATA = media.protocol

noinst_LTLIBRARIES = libkiomedia.la
libkiomedia_la_SOURCES = kio_media.cpp mediaimpl.cpp mediaimpl.skel

check_PROGRAMS = testmedia
testmedia_SOURCES = testmedia.cpp
testmedia_LDADD = libkiomedia.la $(LIB_KIO)
testmedia_LDFLAGS = $(all_libraries)

## TODO in unsermake: TESTS = testmedia
check: testmedia
	./testmedia

messages: rc.cpp
	$(EXTRACTRC) propsdlgplugin/propertiespagegui.ui >> rc.cpp
	$(XGETTEXT) *.cpp *.h kfile-plugin/*.cpp libmediacommon/*.cpp mediamanager/*.cpp mounthelper/*.cpp propsdlgplugin/*.cpp -o $(podir)/kio_media.pot