Makefile.am 2.62 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13
include $(top_srcdir)/Makefile.shared

lib_LTLIBRARIES=libnautilus-extension.la

INCLUDES=\
	-I$(top_srcdir) \
	-I$(top_builddir) \
	$(LIBNAUTILUS_EXTENSION_CFLAGS) \
	$(DISABLE_DEPRECATED_CFLAGS) \
	-DDATADIR=\""$(datadir)"\" \
	$(NULL)

libnautilus_extension_la_LDFLAGS=\
14
	-version-info @NAUTILUS_EXTENSION_VERSION_INFO@ \
15 16 17
	-no-undefined \
	$(NULL)

18 19
libnautilus_extension_la_LIBADD = $(LIBNAUTILUS_EXTENSION_LIBS)

20 21 22 23
libnautilus_extension_includedir=$(includedir)/nautilus/libnautilus-extension

libnautilus_extension_include_HEADERS=		\
	nautilus-column-provider.h              \
24
	nautilus-column.h                       \
25 26
	nautilus-extension-types.h              \
	nautilus-file-info.h                    \
27 28
	nautilus-info-provider.h                \
	nautilus-location-widget-provider.h     \
29 30 31
	nautilus-menu-item.h                    \
	nautilus-menu-provider.h                \
	nautilus-property-page-provider.h       \
32
	nautilus-property-page.h                \
33
	nautilus-menu.h                         \
34 35 36 37
	$(NULL)

libnautilus_extension_la_SOURCES=			\
	nautilus-column-provider.c                      \
38
	nautilus-column.c                               \
39
	nautilus-extension-i18n.h                       \
40
	nautilus-extension-types.c                      \
41
	nautilus-extension-private.h			\
42
	nautilus-file-info.c                            \
43 44
	nautilus-info-provider.c                        \
	nautilus-location-widget-provider.c             \
45 46 47
	nautilus-menu-item.c                            \
	nautilus-menu-provider.c                        \
	nautilus-property-page-provider.c               \
48
	nautilus-property-page.c                        \
49
	nautilus-menu.c                                 \
50 51 52 53 54 55 56 57
	$(NULL)

pkgconfigdir=$(libdir)/pkgconfig
pkgconfig_DATA=libnautilus-extension.pc

EXTRA_DIST = \
	libnautilus-extension.pc.in \
	$(NULL)
58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91

if HAVE_INTROSPECTION

BUILT_SOURCES = Nautilus-2.0.gir Nautilus-2.0.typelib

girdir = $(datadir)/gir-1.0
gir_DATA = Nautilus-2.0.gir

typelibsdir = $(libdir)/girepository-1.0/
typelibs_DATA = Nautilus-2.0.typelib

Nautilus-2.0.gir: libnautilus-extension.la
	$(INTROSPECTION_SCANNER) -v \
	--namespace Nautilus --nsversion=2.0 \
	--add-include-path=$(srcdir) \
	--add-include-path=. \
	--include=Gio-2.0 \
	--include=GLib-2.0 \
	--library=nautilus-extension \
	--pkg gio-2.0 \
	--pkg glib-2.0 \
	--output $@ \
	-I$(top_srcdir) \
	$(libnautilus_extension_include_HEADERS) \
	$(libnautilus_extension_la_SOURCES)

Nautilus-2.0.typelib: Nautilus-2.0.gir
	LD_LIBRARY_PATH=.libs$${LD_LIBRARY_PATH:+:$$LD_LIBRARY_PATH} \
	$(INTROSPECTION_COMPILER) \
	--includedir=$(srcdir) \
	--includedir=. \
	$(INTROSPECTION_COMPILER_OPTS) $< -o $(@F)

endif